网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
switch(i){default:System.out.printIn(Hello”);}Whatistheacceptabletypeforthevariablei?()

A.Byte

B.Long

C.Float

D.Double

E.Object

F.AandB

G.CandD


参考答案

更多 “ switch(i){default:System.out.printIn(Hello”);}Whatistheacceptabletypeforthevariablei?() A.ByteB.LongC.FloatD.DoubleE.ObjectF.AandBG.CandD ” 相关考题
考题 运行下面程序时,从键盘输入字母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!

考题 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

考题 给出下列代码段: public class ex38 { public static void main (String args [ ] ) { int m; switch(m) { case 0: System.out.println ( "case 0" ); case 1:System.out.println("case 1");break; case 2: default: System.out.print in ("default") } } 下列m的______值将引起"default"的输出。A.0B.1C.2D.以上答案都不正确

考题 以下程序的输出结果是( )。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

考题 【单选题】在执行下述程序时,若从键盘输入字母H,则输出结果是_______。 #inlude <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! Good morning!C.Hello! Good morning! Bye_Bye!D.Hello! Bye_Bye!

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