【单选题】【消耗次数:1】
新建一个流对象,下面哪个选项的代码是错误的?( )
new BufferedWriter(new FileWriter(a.txt));
new BufferedReader(new FileInputStream(a.dat));
new GZIPOutputStream(new FileOutputStream(a.zip));
new ObjectInputStream(new FileInputStream(a.dat));
参考答案:
复制
纠错
相关题目
【单选题】 下面的程序段创建了BufferedReader类的对象in,以便读取本机c盘my文件夹下的文件1.txt。File构造函数中正确的路径和文件名的表示是( )。 File f = new File(填代码处); file =new FileReader(f); in=new BufferedReader(file);
①  ./1.txt
②  ../my/1.txt
③  c:\\my\\1.txt
④  c:\ my\1.txt
【单选题】 New businesses ( ) in this area.
①  thrive
②  thrill
③  thrift
④  threat
【多选题】 The new device was _____________ the telephone.
①  pulled
②  decided
③  called
④  named
【单选题】 That is [填空] new car.
①  they
②  them
③  their
④  his
【单选题】 7.--Here is a new schoolbag for you. --Thank you, Mum, but there is no need ______a new one for me.
①  tobuy
②  tohavebought
③  buying
④  bought
【单选题】 There will be a new building here next year, _____ ?
①  will it
②  will there
③  be there
④  won’ t there
【单选题】 Happy New Year to you. ____________
①  The same to you.
②  Yes, I am happy.
③  What about you.
④  Very well, thanks.
【单选题】 A new house ___ at the corner of the road.
①  is building
②  is being built
③  been built
④  be building
【单选题】 A new museum _______in the countryside at the moment.
①  has been built
②  is built
③  is being built
【判断题】 A: Im depressed. I just lost my new car. B: It is always nice to drive a new car.
①  正确
②  错误
随机题目
【单选题】 一条简单语句是以( )字符作为结束符的。
① 
② 
③ 
【单选题】 若x=5,y=10,则计算y*=++x表达式后,y的值为( )。
①  50
②  40
③  60
④  55
【单选题】 程序中的预处理命令是指以( )字符开头的命令。
①  *
②  #
③  $
④  %
【单选题】 在#include命令中不可以包含( )。
①  头文件
②  程序文件
③  用户头文件
④  目标文件
【单选题】 空白符是( )符的统称。
①  空格、制表、回车
②  空格、制表、逗号
③  空格、回车、分号
④  冒号、制表、回车
【单选题】 在for语句中,假定循环体共被执行n次,则表达式2共被计算( )次。
①  1
②  n-1
③  n
④  n+1
【单选题】 实数340.25对应的规格化浮点数为( )。
①  340.25
②  34.025e1
③  3.4025e2
④  0.34025e3
【单选题】 作为语句标号使用的C保留字case和default只能用于( )语句中。
①  if
②  for
③  switch
④  while
【单选题】 在所有结构性语句中,只有( )语句必须是以分号结束的。
①  for
②  while
③  do
④  switch
【单选题】 在for语句中,假定循环体共被执行n次,则表达式3共被计算( )次。
①  1
②  n-1
③  n
④  n+1