(判断题) 11: 在类定义体内,只有具有public访问属性的成员间可以相互访问。 A: 错误 B: 正确 ...
(单选题) 18: 对于类定义 class A{ public: virtual void func1( ){ } void func2( ){ } }; class B:public A{ public: void func1( ){cout<<″class B func 1″<
(单选题) 7: 在关键字public后面定义的成员为类的()成员。 A: 公有 B: 保护 C: 私有 D: 任何 ...
(单选题) 1: It's bad ________ for you to smoke in the public places where smoking is not allowed. A: behavior B: action C: manner D: movement ...
(单选题) 17: It's bad ________ for you to smoke in the public places where smoking is not allowed. A: behavior B: action C: manner D: movement ...
(单选题) 9: It's bad ________ for you to smoke in the public places where smoking is not allowed. A: behavior B: action C: manner D: movement ...
(单选题) 10: 下列程序段输出的结果是_______。public class Test{ public static void main(String args[]){ int x=1,a=0,b=0; switch(x){ case 0:b++; case 1:++a; case 2:a++; ++b; } System.out.println( A: a=2,b=1 B: a=1,b=0 C: a=1,b=1 D: a=0,b=...
(单选题) 7: 下面程序段的输出结果是_______。public class NewClass { public static void main(String args[]){ int a[]=new int[11]; int p[]=new int[4]; int k=5; for(int i=1;i<=10;i++) a[i]=i; A: 37 B: 31 C: 33 D: 35 ...
(单选题) 6: 下列程序段输出的结果是_______。public class NewClass { public static void main(String args[]){ int x=0; boolean b1,b2,b3,b4; b1=b2=b3=b4=true; x=(b1|b2&b3^b4)?++x:x--; System.out.printl A: -1 B: 0 C: 1 D: 2 ...