以下对箱装货残损状态描述翻译正确的是()。
第1题:
以下正确的叙述是 ______。 Select Case x Case 1 to 10 …… End Select
A.Select Case语句中的测试表达式可以是任何形式的表达式
B.Select Case语句中的测试表达式只能是数值表达式或字符串表达式
C.在执行Select Case语句时,所有的Case子句均按出现的次序被顺序执行
D.如下Select Case语句中的Case表达式是错误的:
第2题:
以下程序的运行结果是( )。
main()
(int a=2,b=7,c=5;
switch(a>0)
{case 1:switch(b<0)
{case 1:switch(");break;
case 2:printf("!");break;
}
case 0:switch(c==5)
{case 0:printf("*");break;
case 1:printf("");break;
case 2:printf("$");break;
}
default:printf ("&");
}
printf("\n");
}
第3题:
以下程序的运行结果是 【 9 】 。
main( )
{ int a=2,b=7,c=5;
switch(a>0)
{ case 1:switch(b<0)
{ case 1: printf ("@"); break;
case 2: printf("!"); break;
}
case 0: switch(c==5)
{ case 0 : printf (" * "); break;
case 1 : printf(" # "); break;
case 2: printf(" $ "); break;
}
default : printf("&");
}
printf("\n");
}
第4题:
假设X的值是5,则执行以下语句时,可得到的输出结果是ABCDEF的Select Case语句是 ( )
A.Select Case X Case 10 To 1 Print“ABCDEF” End Select
B.Select Case X Case Is>15,Is<5 Print"ABCDEF" End Select
C.Selecl Case K Case Is>5,1,3,To 10 Print"ABCDEF" End Select
D.Select Case X Case 1,3,Is>5 Print"ABCDEF" End Select
第5题:
A. switch(x){case 1.0:printf("*\n"); case 2.0:printf("*\n"); }
B. switch(a){case 1:printf("*\n");case 2:printf("*\n"); }
C. switch(a+b) {case 1:printf("*\n"); case 1+2:printf("*\n"); }
D. switch(a+b);{case 1:printf("*\n");case 2:printf("*\n"); }
第6题:
以下Case语句中错误的是( )。
A.Case 0 To 10
B.Case Is>10
C.Casels>10 And Is<50
D.Case3,5,Is>10
第7题:
若有以下定义,则正确的swish语句是______。 float x;int a,b;
A.switch(x) {case 1.0:printf("*\n"); case 2.0:printf("**\n"); }
B.switch(x) {case 1,2:printf("*\n"); case 3:printf("**\n"); }
C.switch(a+b) {case 1:printf("\n"); case 1+2:printf("**\n"); }
D.switch(a+b); {case 1:printf("*\n"); case 2:printf("**\n"); }
第8题:
此题为判断题(对,错)。
第9题:
A、contained; including
B、included; containing
C、included; contained
D、contained; included
第10题:
若有以下定义,则正确的switch语句是______。float x;int a,b;
A.switch(x) { case 1.0:printf("*\n"); csse 2.0:printf("**\n"); }
B.switch(x) { case 1,2:printf("*\n"); case 3:printf("**\n"); }
C.switch(a+b) { case 1:printf("\n"); case 1+2:printf("**\n"); }
D.switch(a+b); { case 1:printf("*\n"); case 2:printf("**\n"); }