下面的程序是列出目录C:\Test中所有的.txt文件,请将程序补充完整。 impo

题型:填空题

问题:

下面的程序是列出目录C:\Test中所有的.txt文件,请将程序补充完整。 import java.io.*;//引入java.io包中所有的类 public class FileFilterTest{ public static void main(String args[]{ File dir=new File(“C://Test”); Filter filter=new Filter(“txt”); System.out.println(”list java files in directory”+dir); String files[]=dir.list(filter); for(int i=0;i<files.length;i++){ File f= 【15】 ;//为目录dir下的文件或目录创建一个File对象 if(f.isFile()) System.out.println(”file”+f; else System.out.println(”sub directory”+f); } } } class Filter implements FilenameFilter{ String extent; Filter(String extent){ this.extent=extent; } public boolean accept(File dir,String name){return name.endsWith(”."+extent);//返回文件的后缀名 } }

考点:计算机等级考试JAVA二级JAVA笔试73
题型:填空题

阅读理解。

      Here are two pictures.

     A man and a boy are in one picture. Who are they? Let me tell you. The man is Mr White, and the boy's

name is Bill. He's the man's son. Now they're in Bill's bedroom. We can see some Chinese books on the desk.

And on the bed is a shirt. It's Bill's. His pants are on it, under his shirt, too.

     Now let's look at the other picture. You can see a woman and a girl in it. The woman is Bill's mother and

she's in her daughter, Ann's room. You can see a photo of the Whites on the white wall. Between the windows

is a desk. A clock is on the desk. It's eleven. What's that on the floor? Oh, it's Ann's hat, but it looks like a

black cat.

1. In the two pictures, we can see __________.

A. three people

B. four people

C. five people

2. Mr White is __________.

A. Ann's brother

B. Ann's father

C. Bill's teacher

3. Bill's pants are __________.

A. on the bed

B. on the desk

C. on the floor

4. What color is Ann's hat?

A. White.

B. Red.

C. Black.

5. In Ann's bedroom, we can see a __________.

A. ball

B. shirt

C. clock

题型:填空题

关于德干高原的正确叙述是(  )

A.位于印度半岛的中部

B.海拔高,多高山

C.分布着肥沃的黑土,适宜种棉花

D.分布大面积的沙漠

题型:填空题

某企业采用毛利率法计算发出存货成本。该企业11月份实际毛利率为20%,12月1日的库存商品成本为1 000万元,12月份购入库存商品成本为2 000万元,销售收入为2 000万元,销售退回为200万元。该企业12月末库存商品成本为( )。

A.1200万元

B.1 400万元

C.1 560万元

D.1 600万元

题型:填空题

上市公司出现以下情形之一的,证券交易所对其股票交易实行退市风险警示( )。

A.最近半年连续亏损

B.最近1年连续亏损

C.最近2年连续亏损

D.最近3年连续亏损

题型:填空题

国际上对于一个国家或地区经济发展阶段的划分通常是通过( )来评价经济的总体发展程度。

A.城市化的测度
B.剩余劳动力的测度
C.农业化的测度
D.工业化的测度

更多题库