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、 Byte
  • B、 Long
  • C、 Float
  • D、 Double
  • E、 Object
  • F、 A and B
  • G、 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