网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
switch (i) { default: System.out.printIn(“Hello”); } What is the acceptable type for the variable i?()
A
Byte
B
Long
C
Float
D
Double
E
Object
F
A and B
G
C and D
参考答案
参考解析
解析:
暂无解析
更多 “单选题switch (i) { default: System.out.printIn(“Hello”); } What is the acceptable type for the variable i?()A ByteB LongC FloatD DoubleE ObjectF A and BG C and D” 相关考题
考题
有以下程序 main( ) { int i; for(i=0;i<3;i++) switch(i) { case 1: printf("%d",i); case 2: printf("%d",i); default: printf("%d",i); } } 执行后输出的结果是A.11122B.12C.12020D.120
考题
以下程序的输出结果是()。includevoid main(){int a(5),b(6),i(0),j(0);switch(a) {
以下程序的输出结果是( )。 #include<iostream.h> void main() { int a(5),b(6),i(0),j(0); switch(a) { case 5:switch(b) { case 5:i++;break; case 6:j++;break; default:i++;j++; } case 6:i++; j++; break; default:i++;j++; } cout<<i<<","<<j<<endl; }A.1,2B.1,3C.2,2D.2,3
考题
有以下程序 main( ) { int a=0,i; for(i=1;i<5; i++) { switch (i) { case 0 case 3:a+ =2; case 1; case 2;a+=3; default, a+=5; } } printf("%d\n",a) ; }A.31B.13C.10D.20
考题
下列程序的运行结果为【】。 include void main(void) {int i=10;switch(i){case 9:i=i
下列程序的运行结果为【 】。include<iostream.h>void main(void){int i=10;switch(i){ case 9:i=i+1;case 10:i=i+1;case 11:i=i+1;default:i=i+1;}cout<<i<<endl;}
考题
switch(i){default:System.out.printIn(Hello”);}Whatistheacceptabletypeforthevariablei?()
A.ByteB.LongC.FloatD.DoubleE.ObjectF.AandBG.CandD
考题
switch(i){default:System.out.printIn(Hello”);)Whatarethetwoacceptabletypesforthevariablei?()
A.CharB.ByteC.FloatD.DoubleE.Object
考题
classsuper(publicintI=0;publicsuper(stringtext)(I=1))publicclasssubextendssuper(publicsub(stringtext)(i=2)publicstaticvoidmain(straingargs[])(subsub=newsub(Hello”);system.out.PrintIn(sub.i);))Whatistheresult?()A.Compilationwillfail.B.Compilationwillsucceedandtheprogramwillprint“0”C.Compilationwillsucceedandtheprogramwillprint“1”D.Compilationwillsucceedandtheprogramwillprint“2”
考题
switch(x){default:System.out.println(“Hello”);}Whichtwoareacceptabletypesforx?()
A.byteB.longC.charD.floatE.ShortF.Long
考题
switch(i){default:310-025LeadingthewayinITtestingandcertificationtools,www.testking.com-27-System.out.printIn(Hello”);}Whatarethetwoacceptabletypesforthevariablei?()
A.CharB.ByteC.FloatD.DoubleE.Object
考题
有以下程序 main() { int i; for(i=0;i<3;i++) switch(i) { case 0: printf("%d",i); case 2: printf("%d",i); default: printf("%d",i); } } 程序运行后的输出结果是______。A.22111B.21021C.122D.12
考题
有以下程序 main() {int i; for(i=0;i<3;i++) switch(i) { case0:printf("%d",i); case2:printf("%d",i); default:printf("%d",i); } } 程序运行后的输出结果是A.22111B.21021C.122D.12
考题
以下程序的输出结果是( )。 main { int i; for(i=0;i3;i++) switch(i){case 0:printf("%d",i); case 2:printf("%d",i); default:printf("%d",i); } }A.000102B.000020C.000122D.000111
考题
有以下程序 main() { int i; for(i=0;<3;i++) switch(i) { csse 1: printf("%d",i); case 2: printf("%d",i); default: printf("%d",i); } } 执行后输出结果是A.11122B.12C.12020D.120
考题
以下程序的输出结果是( )。main(){ int i; for(i=0;i3;i++) switch(i) { case 0:printf(3;i++)switch(i){ case 0:printf(%d,i);case 2:printf(%d,i);default:printf(%d,i); }}A.000102B.000020C.000122D.000111
考题
#includemain(){ char str[ ]=“The C program”,c;int i;for(i=2;(c=str[i])!=‘\0’;i++){ switch(c){ case ‘g’: ++i; break;case ‘o’: continue;default: printf(“%c”,c); continue;}printf(“*”);}printf(“\n”);}
考题
Hello, Peter. What do you do?()A、I am fine.B、I am not sick.C、I am a student from Bonn University.D、I came from Bonn University.
考题
A:Hello,()B:WherecanIbuysomestampsC://Atthestampcounteroverthere.A、Can I help youB、May I help youC、What can I do for youD、Anything I can do for you
考题
switch(x) { default: System.out.println(“Hello”); } Which two are acceptable types for x?() A、 byteB、 longC、 charD、 floatE、 ShortF、 Long
考题
int I=1, j=0 switch(i) { case 2: j+=6; case 4: j+=1; default: j +=2; case 0: j +=4; } What is the value of j at line 16?()A、 0B、 1C、 2D、 4E、 6
考题
switch (i) { default: 310-025 Leading the way in IT testing and certification tools,www.testking.com - 27 - System.out.printIn(“Hello”); } What are the two acceptable types for the variable i? ()A、 CharB、 ByteC、 FloatD、 DoubleE、 Object
考题
int i = 1,j = -1; switch (i) { case 0, 1:j = 1; case 2: j = 2; default; j = 0; } System.out.println(“j=”+j); What is the result?() A、 j = -1B、 j = 0C、 j = 1D、 j = 2E、 Compilation fails.
考题
switch (i) { default: System.out.printIn(“Hello”); ) What are the two acceptable types for the variable i?() A、 CharB、 ByteC、 FloatD、 DoubleE、 Object
考题
switch (i) { default: System.out.printIn(“Hello”); } What is the acceptable type for the variable i?() A、 ByteB、 LongC、 FloatD、 DoubleE、 ObjectF、 A and BG、 C and D
考题
单选题switch (i) { default: System.out.printIn(“Hello”); } What is the acceptable type for the variable i?()A
ByteB
LongC
FloatD
DoubleE
ObjectF
A and BG
C and D
考题
多选题switch (i) { default: 310-025 Leading the way in IT testing and certification tools,www.testking.com - 27 - System.out.printIn(“Hello”); } What are the two acceptable types for the variable i? ()ACharBByteCFloatDDoubleEObject
考题
多选题switch (i) { default: System.out.printIn(“Hello”); ) What are the two acceptable types for the variable i?()ACharBByteCFloatDDoubleEObject
考题
单选题int i = 1,j = -1; switch (i) { case 0, 1:j = 1; case 2: j = 2; default; j = 0; } System.out.println(“j=”+j); What is the result?()A
j = -1B
j = 0C
j = 1D
j = 2E
Compilation fails.
考题
多选题switch(x) { default: System.out.println(“Hello”); } Which two are acceptable types for x?()AbyteBlongCcharDfloatEShortFLong
热门标签
最新试卷