听力原文: I found myself facing a dry-cleaning store which has once been one of the best restaurants in New York. On Sundays the old man would take my mother and me for dinner. There had been a balcony where a baker in a tall white hat baked fresh rolls and whenever a customer entered, the baker would look down and put in a fresh batch. I could smell the rolls through the odor of cleaning fluid on Lenox Avenue. I could see the manager who always sat down will4 us while we ate. He had some disease, I suppose, because the right side of his face was swollen out like a balloon, but he always wore a hard wing collar and a white tie, and never seemed sick. A Negro with a moustache was looking through the store window at me. For a moment I had the urge to go and tell him what I remembered, to describe this avenue when no garbage cans were on the street, when the Daimlers and Minervas and Fords had cruised by, and the cop on the corner threw back the ball when it got through the outfield on 114th street. I did not go into the store, nor even toward our house. Any claim I had to anything had lapsed. I went downtown instead and sat in my room, trying to read.
According to the speaker, the dry-cleaning store used to be a ______.
A.hote
B.restaurant
C.bakery
D.garage
第1题
下列程序执行后的结果是______。 package ch1; import java.io.*; public class ex22 { static, String filename = "ch1\kfile22.txt"; public static void main(String[] args) { try { FileWriter fr = new FileWriter(filename); PrintWriter pr = new PrintWriter(fr); String name = "xiaoming"; String phone = "123456"; String age = "12"; pr.println(name + ',' + phone + ',' + age); pr.close(); fr.close(); } catch(IOException ioe) { ioe.printStackTrace() } } }
A.在包ch1 中新建一个文件file22.txt, 并且在其中写入一行字符串“xiaomingl2345612”
B.在包ch1中新建一个文件file22.txt,并且在其中写入一行字符串“xiaoming, 123456,12”
C.在包chi中新建一个文件file22.txt,并且在其中写入一行字符串“xiaoming'’
D.抛出IOException
第2题
下列程序实现对ZIP文件filel4.zip的检索,在横线处填入正确的语句。 package ch1; import java.io.*; import java.util.*; import java.util.zip.*; public class exl4 { publio static void main(String[] args} { try { FileInputStream fis = new FileInputStream("chl/filel4.zip"); ZipInputStream zis = new zipInputStream(fis); ZipEntry en; while((______) ! = null) { en.getName(); zis.clcseEntry(); } zis.close(); } catch(Exception e) { e.printStackTrace(); } } }
A.en = zis.getNexTEnTRY()
B.en = zis.getEntry()
C.en=zis.getNextEntry()
D.zis.getNextEntry()
第3题
在下列程序的横线处填入正确的语句,实现RandomAccessFile类使用。 package ch1; import java. io. *; public class ex27 { public static void main(String args[] ) { try { RandomAccessFile in = new in.close (); } catch (Exception e) { e.printStackTrace (); } } }
A.RandomAccessFileC"ch1/file.dat", "read")
B.RandomAccessFile("r", "ch1/file.dat")
C.RandomAccessFile("ch1/file.dat" , "r")
D.RandomAecessFile("read", "ch1/file.dat")
第5题
第6题
A.1.0 2.1 3.2
B.1.0
C.2.1 3.2
D.显示异常信息
第7题
下列程序实现对ZIP文件file.zip的检索,在横线处填入正确的语句 package test; import java.io.*; import java.util.*; import java.util.zip.*; public class Exam { public static void main(String[] args){ try{ FileInputStream fis=new FileInputStream("test/file.zip"); ZipInputStream zis=new ZipInputStream(fis); ZipEntry en; while((______)!=null){ en.getName(); zis.closeEntry(); } zis.close(); } catch(Exception e){ e.printStackTrace(); } } }
A.en=zis.getNextEntry()
B.en==zis.getNextEntry()
C.en=zis.getEntry()
D.zis.getNextEntry()
第8题
下列程序实现对ZIP文件file.zip的检索,在横线处填入正确的语句 package test; import java.io.*: import java.util.*; import java.util.zip.*; public class Exam { public static void main(String[])args){ try{ FileInputStream fis=new FileInputStream("test/file.zip"); ZipInputStreamzis=new ZipInputStream(fis); ZipEntry en; while ((_____)!=null){ en.getName(); zis.closeEntry(); } zis.close(); } catch(Exception e) { e.printStackTrace(); } } }
A.en = zis.getNextEntry()
B.en = zis.getNextEntry()
C.en = zis.getEntry()
D.zis.getNextEntry()
第9题
A.package t;public class A{}
B.import java.io.*;package t;public class A{}
C.import java.io.*;class A{}public class B{}
D.import java.io.*;import java.awt.*;public class A{}
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!