A、whole
B、the whole
C、all of
D、all
第1题:
A. haven’t
B. don’t
C. didn’t
D. hadn’t
第2题:
下列程序使用系统标准输入System.in从键盘获得输入字符串,请选择正确的一项填入下列程序的横线处。 import java.io.*; public class ex26 { public static void main(String args[]) { byte buffer[] = new byte[128]; int n; try { n = for(int i = 0; i < n; i++) System.out .print ( (char)buffer [i] ); catch (IOException e) { System.out.print (e); } } }
A.System.in.read(buffer)
B.system.in.read(buffer)
C.System.in.read0
D.System.in(buffer)
第3题:
1、用于二进制读写的I/O流函数包括
A.get()
B.getline()
C.read()
D.write()
第4题:
Java程序中读入用户输入的一个值,要求创建一个自定义的异常,如果输入值大于10,使用throw语句显式地引发异常,异常输出信息为“something’swrong!”,语句为()。
A.if(I>10)throw Exception(“something’swrong!”);
B.if(I>10)throw Exceptione(“something’swrong!”);
C.if(I>10)thrownew Exception(“something’swrong!”);
D.if(I>10)thrownew Exceptione(“something’swrong!”);
第5题:
-- Ann is in hospital.
-- Oh, really? I __ know. I __ go and visit her.
A. didn’t; am going to B. don’t; would
C. don’t; will D. didn't; will
第6题:
用于二进制读写的I/O流函数包括
A.get()
B.getline()
C.read()
D.write()