多选题switch (i)  {  default:  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?()
A

Char

B

Byte

C

Float

D

Double

E

Object


参考解析

解析: 暂无解析

相关考题:

运行下面程序时,从键盘输入字母H,则输出结果是#includestdio.hmain(){ char ch;ch=getchar();switch(ch){case ′H′:printf("Hello!\n");case ′G′:printf("Good morning!\n");default:printf("Bye_Bye!\n");}}A.Hello!B.Hello! Good Moring!C.Hello! Good morning! Bye_Bye!D.Hello! Bye_Bye!

有以下程序 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;i3;i++) switch(i){case 0:printf("%d",i); case 2:printf("%d",i); default:printf("%d",i); } }A.000102B.000020C.000122D.000111

运行下面程序时,从键盘输入字母H,则输出结果是includemain(){ char ch;ch=getchar();s 运行下面程序时,从键盘输入字母H,则输出结果是 #include<stdio.h> main() { char ch; ch=getchar(); switch(ch) { case 'H':printf("Hello!\n"); case 'G':printf("Good morning!\n"); default:printf("Bye_Bye!\n"); } }A.Hello!B.Hello! GoodMoring!C.Hello! Goodmorning! Bye_Bye!D.Hello! Bye_Bye!

下列程序的输出结果是【】。 include void main() { inta(5),b(6),i(0)1j(0); switch(a 下列程序的输出结果是【 】。include<iostream.h>void main(){inta(5),b(6),i(0)1j(0);switch(a){case 5:switch(b){case 5:i++;break;case 6:j++;break;defaun:i++;j++;}case 6:i++;j++;break;default:i++;j++;}cout<<i<<","<<j<<endl;}

有以下程序 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

You need to set the default gateway of one of your TestKing switches. Which command will set the default gateway to 192.168.12.1 on a Cisco switch?() A. Switch(config)# ip default-network 192.168.12.1B. Switch(config)#ip route-default 192.168.12.1C. Switch(config)# ip default-gateway 192.168.12.1D. Swicth(config)# ip route 192.168.12.1 0.0.0.0

#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”);}

You need to set the default gateway of one of your TestKing switches. Which command will set the default gateway to 192.168.12.1 on a Cisco switch?()A、Switch(config)# ip default-network 192.168.12.1B、Switch(config)#ip route-default 192.168.12.1C、Switch(config)# ip default-gateway 192.168.12.1D、Swicth(config)# ip route 192.168.12.1 0.0.0.0

switch(x) {  default:  System.out.println(“Hello”);  }  Which two are acceptable types for x?() A、 byteB、 longC、 charD、 floatE、 ShortF、 Long

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语句中有无default都行,一般都有,default作用是跳出switch。

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

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:  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(x) {  default:  System.out.println(“Hello”);  }  Which two are acceptable types for x?()AbyteBlongCcharDfloatEShortFLong