学科分类

已选分类 工学计算机科学与技术
不定项选择题在switch(expression)语句中,expression的数据类型不能是______。 A.double B.char C.byte D.short
进入题库练习
不定项选择题下面的Java源文件代码片断正确的是______。 A.package testpackage; public class Test{//do something…} B.import java.io.*; package testpackage; public class Test{//do something…} C.import java.io.*; class Person{//do something…) public class Test{//do something…} D.importjava.io.*; importjava.awt.*; public class Test{//do something…}
进入题库练习
不定项选择题Which declarations of identifiers are legal? A.$persons B.TwoUsers C.*point D.this E._endline
进入题库练习
不定项选择题Which statements about inheritance are true? A.In Java programming language only allows single inheritance B.In Java programming language allows a class to implement only one interface C.In Java programming language a class cannot extend a class and implement a interfacetogether D.In Java programming language single inheritance makes code more reliable
进入题库练习
不定项选择题使用“<<”和“>>”操作符的陈述正确的是______。 A.0000 0100 0000 0000 0000 0000 0000 0000<<5得到 1000 0000 0000 0000 0000 0000 0000 0000 B.0000 0100 0000 0000 0000 0000 0000 0000<<5得到 1111 1100 0000 0000 0000 0000 0000 0000 C.1100 0000 0000 0000 0000 0000 0000 0000>>5得到 1111 1110 0000 0000 0000 0000 0000 0000 D.1100 0000 0000 0000 0000 0000 0000 0000>>5得到 0000 0110 0000 0000 0000 0000 0000 0000
进入题库练习
不定项选择题给出下面不完整的类代码: 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; } } 下面的表达式可以加到构造方法中的doing the same as…”处的是______。 A.Person(n,a); B.this(Person(n,a));C.this(n,a); D.this(name,age);
进入题库练习
不定项选择题Given the following code fragment: 1)public void create() { 2) Vector myVect; 3) myVect = new Vector() ; 4) } Which of the following statements are true? A.The declaration on line 2 does not allocate memory space for the variable myVect B.The declaration on line 2 allocates memory space for a reference to a Vector object C.The statement on line 2 creates an object of class Vector D.The statement on line 3 creates an object of class Vector E.The statement on line 3 allocates memory space for an object of class Vector
进入题库练习
不定项选择题main()方法的返回类型是什么? A.int B.void C.Boolean D.static
进入题库练习
不定项选择题使窗口在全屏显示模式和常规显示模式间切换,应使用( )。 A.Ctrl+Shift B.Shift+Alt+Enter C.Ctrl+Shift+Alt D.Shift+Enter
进入题库练习
不定项选择题下面的程序片断可能导致错误的是______。 A.String s=Gone with the wind; Stringt=good; String k=s+t; B.String s=Gone with the wind; String t; t=s[3]+one; C.String s=Gone with the wind; String standard=s.toUpperCase(); D.String s=home directory; String t=s-directory;
进入题库练习
不定项选择题( )是SQL Server 2005提供的集成环境,这种工具可以完成访问、配置、控制、管理和开发SQL Server的所有工作。 A.SOL Server Management Studio B.SQL Server配置管理器 C.SQL Server Profiler D.SQL Server Business Intelligence Development Studio
进入题库练习
不定项选择题给出下面的代码: public class Person{ int arr[]=new int[10]; public Static void main(String a[]){ System.out.println(arr[1]); 以下叙述对的是______。 A.编译时出错 B.编译时正确而运行时出错 C.输出0 D.输出null
进入题库练习
不定项选择题Which of the following fragments might cause errors? A.String s = Gone with the wind; String t = good ; String k = s + t; B.String s = Gone with the wind; String t; t = s[3] + one; C.String s = Gone with the wind; String standard = s.toUpperCase(); D.String s = home directory; String t = s - directory;
进入题库练习
不定项选择题下面的赋值语句正确的是______。 A.float f=11.1; B.double d=5.3E12; C.double d=3.14159; D.double d=3.14D;
进入题库练习
不定项选择题Given the following code: 1)class Person { 2) public void printValue(int i, int j) {/*…*/ } 3) public void printValue(int i) {/*…*/ 4) } 5) public class Teacher extends Person { 6) public void printValue() {/*…*/ } 7) public void printValue(int i) {/*…*/} 8) public static void main(String args[]) { 9) Person t = new Teacher(); 10) t.printValue(10) ; 11)} 12)} Which method will the statement on line 10 call? A.on line 2 B.on line 3 C.on line 6 D.on line 7
进入题库练习
不定项选择题默认情况下,Management Studio启动后将显示( )。 A.已注册的服务器窗口 B.对象资源管理器窗口 C.文档窗口 D.查询编辑器窗口
进入题库练习
不定项选择题给出下面的代码: class Person{ String name,department ; public void printValue(){ System.out.println(name is+name); System.out.println(department is +department); } } public class Teacher extends Person{ int salary; public void printValue(){ //doing the same as in the parent method printValue() //including print the value of name and department. System.out.printin(salary is+salary); } } 下面的______表达式可以加入printValue()方法的”doing the same as…”部分. A.printValue(); B.this.printValue(); C.person.printValue();D.super.printValue();
进入题库练习
不定项选择题在容器中使用按钮时,仅按钮的宽度会随容器大小改变,应使用______布局管理器. A.FlowLayout B.GridLayout C.North of BorderLayout D.South of BorderLayout E.East or West Of BorderLayout
进入题库练习
不定项选择题Which is the return type of the method main()? A.int B.void C.Boolean D.static
进入题库练习
不定项选择题下列Java标识符号中,有效的是______。 A.userName B./%passwd C.3d_game D.$charge E.this
进入题库练习