Which key should be pressed on an ASCII terminalduring the system initialization to force the system to read from the default bootlist?()A.1B.3C.5D.9

题目
Which key should be pressed on an ASCII terminalduring the system initialization to force the system to read from the default bootlist?()

A.1

B.3

C.5

D.9


相似考题
更多“Which key should be pressed on an ASCII terminalduring the system initialization to force the system to read from the default bootlist?() ”相关问题
  • 第1题:

    给出下列的程序段,m为何值时将会输出default? ( ) switch(m) { case 0: System.out.println("case 0"); case 1:System.out.println("case 1");break; case 2:System.out.println("case 2");break; default:System.out.println("default"); }

    A.0

    B.1

    C.2

    D.3


    正确答案:D

  • 第2题:

    下列程序从标准输入设备—键盘诗篇一个字符,然后再输出到屏幕。要想完成此功能,画线处应该填入的语句为( )。 impoajava.io.*; publicclassTest { publicstaticvoidmain(Stringargs[]) { charch; try { ______, System.out.println(Ch); } catch(IOExceptione) { e.printStackTrace(); } } }

    A.ch=System.in.read();

    B.ch=(char)System.in.read();

    C.ch=(char)System.in.readln();

    D.ch=(int)System.in.read();


    正确答案:B
    解析: 此题程序通过调用系统的系准输入流Sysmm.in的read()方法,从键盘读入一个字符,由于read()方法的返回值是int类型,而变量ch是字符类型,不能直接转换,因此需要进行强制类型转换,应该填入的正确语句是 ch=(char)System.in.read()。

  • 第3题:

    下列程序使用系统标准输入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)


    正确答案:A

  • 第4题:

    下列程序从标准输入设备--键盘读入-个字符,然后输出到屏幕。要想完成此功能,画线处应该填入的语句为( )。

    A.ch=System.in.read( );

    B.ch=(char)System.in.read( );

    C.ch=(char)System.in.readln( );

    D.ch=(int)System.in.read( );


    正确答案:B
    此题程序通过调用系统的标准输入流System.in的read()方法,从键盘读入-个字符,由于read()方法的返回值是int类型,而变量ch是字符类型,不能直接转换,因此需要进行强制类型转换,应该填入的正确语句是ch=(char)System.In.read()。

  • 第5题:

    下列程序从标准输入设备——键盘读入一个字符,然后输出到屏幕。要想完成此功能,画线处应该填人的语句为( )。 importjava.iO.*; public class Test { public static void main(String argsE]) { charch: try { ___; System.out.println(eh); } catch(IOException e) { e.printStackTrace: } } }

    A. ch=System.in.read:

    B.ch=(char)System.in.read:

    C.ch=(char)System.in.readln:

    D.ch=(int)System.in.read;


    正确答案:B
    B【解析】此题程序通过调用系统的标准输入流System.in的read方法,从键盘读入一个字符,由于read方法的返回值是int类型,而变量ch是字符类型,不能直接转换,因此需要进行强制类型转换,应该填入的正确语句是ch=(char)System.In.read。

  • 第6题:

    对于下面的代码片段,m的哪个值将引起"default"的输出? switch(m){ case 0: System.out.println("case 0"); case 1: System.out.println("case 1"); break; case 2: System.out.println("case 2"); break; default: System.out.println("default"); }

    A.0

    B.1

    C.2

    D.3


    thwas was a test this is a test