【单选题】【消耗次数:1】
下列哪一个是Java系统的标准输入流对象( )。
System.out
System.in
System.exit
System.err
参考答案:
复制
纠错
相关题目
【判断题】 4.Java系统的标准输入对象是System.in,标准输出对象有两个,分别是标准输出System.out和标准错误输出System.err。( )
①  正确
②  错误
【单选题】 Java系统标准输出对象System.out使用的输出流是( )。
①  PrintStream
②  PrintWriter
③  DataOutputStream
④  FileReader
【判断题】 java.util.Scanner(System.in)可以接收用户从键盘输入的简单数据。
①  正确
②  错误
【单选题】 以下程序的运行结果是:( ) public class Increment{ public static void main(String args[]){ int c; c = 2; System.out.println(@@; System.out.println(c++); System.out.println(@@; } }
①  2 2 2
②  2 3 3
③  2 2 3
④  3 4 4
【单选题】 getCustomerInfo()方法如下,try中可以捕获三种类型的异常,如果在该方法运行中产生了一个IOException,将会输出什么结果( ) public void getCustomerInfo() { try { // do something that may cause an Exception } catch (java.io.FileNotFoundException ex){ System.out.print(FileNotFoundException!); } catch (java.io.IOException ex){ System.out.print(IOException!); } catch (java.lang.Exception ex){ System.out.print(Exception!); } }
①  IOException!
②  IOException!Exception!
③  FileNotFoundException!IOException!
④  FileNotFoundException!IOException!Exception!
【单选题】 System.out.println(5 + 2);的输出结果应该是( )。
①  52
②  7
③  2
④  5
【单选题】 The thieves _____ the possibility of the alarm system sounding
①  overtook
②  overcame
③  overlooked
④  overworked
【简答题】 要在一个类中包含System.Data命名空间的语句是[填空1]。
【判断题】 GIS是Geographiclnformation System的简称,即全球卫星定位系统。
①  正确
②  错误
【判断题】 printf()和 format()方法使用指定格式字符串和参数,将格式化字符串写入到PrintStream类型的输出流(System.out对象)中。
①  正确
②  错误
随机题目
【单选题】 若需要把一个字符串aaa赋值到字符数组a中,则需要进行( )的函数调用实现。
①  strlen
②  strcmp
③  strcat
④  strcpy
【单选题】 在下面的do循环语句中,其循环体被执行的次数为( )。 int i=0;do i++;while(i*i
①  4
②  3
③  5
④  2
【单选题】 数组元素a[i]是该数组中的第( )个元素。
①  i
②  i+1
③  i-1
④  i*2
【单选题】 假定对二维数组a[3][4]进行初始化的数据为{{3,5,6},{2,8},{7}},则a[1][1]元素被初始化为( )。
①  6
②  2
③  5
④  8
【单选题】 假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[2][1]的值为( )。
①  0
②  4
③  8
④  6
【单选题】 假定a为一个数组名,则下面的( )表示有错误。
①  a[i]
②  *a++
③  *a
④  *(a+1)
【单选题】 在for语句中,假定循环体共被执行n次,则共被计算( )次。
①  1
②  n-1
③  n
④  n+1
【单选题】 使用“typedef int CC[4][6];”语句之后,再使用“CC a;”语句,则a所占用的存储空间的字节数为( )。
①  10
②  24
③  48
④  96
【单选题】 将两个字符串连接起来组成一个字符串时,选用( )函数。
①  strlen()
②  strcap()
③  strcat()
④  strcmp()
【单选题】 当处理特定问题时的循环次数已知时,通常采用( )循环来解决。
①  for
②  while
③  do-while
④  Switch