已选分类
工学计算机科学与技术
不定项选择题字长为10位机器数所表示的无符号数范围是______。 A.0~1023 B.1~1024 C.0~511 D.1~512
不定项选择题十进制数25用8421 BCD码表示为______。 A.10 101 B.0010 0101 C.11001 D.0101 0010
不定项选择题下列补码相加会产生溢出的有______。 A.00010110+11101110 B.00010110+01101110 C.11010110+11101110 D.10010110+10000001
不定项选择题字母“A”的ASCII码是1000001B,字母“D”的ASCII码是______。 A.1000011B B.1000100B C.1000010B D.1000111B
不定项选择题下列补码相减会产生溢出的有______。 A.01010110-11101110 B.00010110-01101110 C.11010110-11101110 D.01010110-10000001
不定项选择题下列补码中,真值最大的是______。 A.10011100 B.10011010 C.10011000 D.10010110
不定项选择题数字“0”的ASCII码是30H,数字“9”的ASCII码值是______。 A.39H B.39 C.09H D.90
不定项选择题下列移码中,真值最大的是______。 A.11100100 B.11100110 C.11101000 D.11101010
不定项选择题IEEE短浮点数C1CB0000H表示的真值为______。 A.25.375 B.9.375 C.-25.375 D.-9.375
不定项选择题8位二进制数码最多可以表示______个不同的数。 A.128 B.256 C.255 D.127
不定项选择题下列术语______是Java关键字。 A.goto B.null C.FALSE D.native E.const
不定项选择题给出以下关于一个使用适当的字符间距的字体的TextField的表达式。 TextField t = new TextField(they are good,40); 叙述正确的是______。 A.被显示的字符串可以使用多种字体 B.一行中最大的字符数是40 C.显示的宽度正好是40个字符宽 D.用户可以编辑字符
不定项选择题类的设计要求它的某个成员变量不能被外部类直接访问。应该使用下面的______修饰符获得需要的访问控制。 A.public B.no modifier C.protected D.private
不定项选择题Given the following code: if (x>0) { System.out.println(first); } else if (x>-3) { System.out.println(second); } else { System.out.println(third); } Which range of x value would print the string second? A.x>0 B.x>-3 C.x<=-3 D.x<=0x>-3
不定项选择题当Frame的大小被改变时,Frame中的按钮位置可能被改变时,使用的是______布局管理器。 A.BorderLayout B.FlowLayout C.CardLayout D.GridLayout
不定项选择题Given the uncompleted code of a class: class Person { String name, department; int age; public Person(String n) { name = n; } public Person(String n, int a){ name = n; age = a; } public Person(String n, String d, int a) { // doing the same as two arguments version of constructor // including assignment name=n,age=a department = d; } } Which expression can be added at the doing the same as… part of the constructor? A.Person(n,a); B.this(Person(n,a)); C.this(n,a); D.this(name,age);
不定项选择题下面的有关声明的叙述中正确的是______。 A.对原始数据类型例如boolean,byte的变量的声明不会为该变量分配内存空间 B.对原始数据类型例如boolean,byte的变量的声明将为之分配内存空间 C.非原始数据类型例如String,Vector的变量的声明不会为该对象分配内存 D.非原始数据类型例如String,Vector的变量的声明会为该对象分配内存
不定项选择题给出下面的代码: if (x>0) {System.out.println(first); } else if (x>-3) { System.out.println(second);} else{ System.out.println(third);} x的取值在______范围内时将打印字符串second。 A.x>0 B.x>-3 C.x<=-3 D.x<=0x>-3
不定项选择题Given the following code: public class Test { void printValue(int m) { do { System.out.println(The value is+m); } while( --m >10 ) } public static void main(String arg[]) { int i=10; Test t= new Test (); t.printValue(i) ; } } Which will be output? A.The value is 8 B.The value is 9 C.The value is 10 D.The value is 11
不定项选择题给出下面的代码: 1)public class Test { 2)int m, n; 3)public Test() () 4)public Test(int a) {m=a; } 5)public static void main(string arg[]) { 6)Test t1,t2; 7)int j,k; 8)j=O; k=0; 9)t1=rlew Test(); 10)t2=new Test(j,k); 11)} 12)} 在编译时行将导致一个错误。 A.3 B.5 C.6 D.10
