网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
There are two int variables: a and b, don’t use
“if”, “? :”, “switch”or other judgement statements,
find out the biggest one of the two numbers.
参考答案
更多 “ There are two int variables: a and b, don’t use“if”, “? :”, “switch”or other judgement statements,find out the biggest one of the two numbers. ” 相关考题
考题
3.Jack _______like baseball ________volleyball.A. don't ; orB. doesn't ; orC.don't ;andD.doesn't ;and
考题
以下程序段的输出结果为 ( )int j=2;switch(j){case 2:System.out.print("two.");case 2+1:System.out.println("three.");breakdefault:System.out.println("value is"+j);break;}A.two.three.B.two.C.three.D.value is 2
考题
编译和执行以下代码,输出结果是( )。 int i=1; switch (i) { case 0: System.out.print("zero,"); break; case 1: System.out.print("one,"); case 2: System.out.print("two,"); default: System.out.println("default"); }A.one,B.one,two,C.one,two,defaultD.default
考题
针对下列程序段,需要( )个测试用例才可以满足语句覆盖的要求。
switch(value){case 0:other=30;break;case 1:other=50;break;case 2:other=300;case 3:other=other/value;break;default:other=other*value;}A.2
B.3
C.4
D.5
考题
写出程序的输出: int i=1; switch (i%3 ) { case 0: printf("zero"); case 1: printf("one"); case 2: printf("two"); }
考题
1、针对下列程序段,需要()个测试用例才可以满足语句覆盖的要求。 switch (value ) { case 0: other = 30; break; case 1: other = 50; break; case 2: other = 300; case 3: other = other/value; break; default: other = other * value; }A.2B.3C.4D.5
考题
在switch语句中,switch后面括号内的表达式的类型不能是____。A.doubleB.longC.charD.int
热门标签
最新试卷