CASE方法
第1题:
以下Case语句中错误的是( )。
A.Case 0 To 10
B.Case Is>10
C.Casels>10 And Is<50
D.Case3,5,Is>10
第2题:
此题为判断题(对,错)。
第3题:
( 34 )下列 Case 语句中错误的是
A ) Case 0 To 10
B ) Case Is> 10
C ) Case Is> 10 And Is<50
D ) Case 3,5, Is> 10
第4题:
下列Case语句中错误的是
A.Case0To10
B.Case1S>10
C.Case Is >10And Is<50
D.Case3,5,Is>10
第5题:
下列Case语句中错误的是( )。
A.Case0 To 10
B.Case Is>10
C.Case Is>10And Is<50
D.Case 3,51s>10
第6题:
有如下程序: infocase$=InputBox("Inputoneletter:") Select Case infocase$ case"a" grade$="Verygood" case"b" grade$="Good" case"C" grade$="OK" case"d" grade$="Qualified" case Else grade$="Bab" End Select
A.Very good
B.Good
C.Bad
D.Qualified
第7题:
CASE方法可以单独用来开发物流信息系统。()
第8题:
下面的方法,当输入为2的时候返回值是多少?( )
public int getValue(int i) {
int result = 0;
switch (i) {
case 1:
result = result + i;
case 2:
result = result + i * 2;
case 3:
result = result + i * 3; }
return result; }
答案:10
当i=2 case 1 不成立 case 2 时 result = 0 + 2 * 2 result = result + i * 2;后面你没有写break; 所以result = result + i * 2;执行结束后不会停止接着执行 result = 4 + 2 * 3
第9题:
下列Case语句中错误的是( )。
A.Case 0 To 10
B.Case Is>10
C.Case Is>10 And Is<50
D.Case 3,5 Is>10
第10题:
下列Case语句中错误的是( )。
A.Case 0 To 10
B.Case Is>10
C.Case Is>10 And Is<50
D.Case 3.5,Is>10