下列程序段的执行结果为 m=1 n=1 Select Case m Case 1 Select Case n Case 0 Print "* * 0 * *" Case 1 Print " * * 1 * * " End Select Case 2 print " * * 2 * * " End Select
A.* * 0 * *
B.* * 1 * *
C.* * 2 * *
D.0
第1题:
下列程序段的执行结果是【 】。
x=Int(Rnd+4)
Select Case X
Case 5
Print"优秀"
Case 4
Print"良好"
Case 3
Print"合格"
Case Else
Print"不合格"
End Select
第2题:
有以下程序: main() { int a=15,b=21,m=0; switch(a%3) { case 0:m++;break; case 1:m++; switch(b%2) { default: m++; case 0:m++;break; } rintf("%d\n",m); } 程序运行后的输出结果是( )。
A.1
B.2
C.3
D.4
第3题:
下列程序段的执行结果为 a=2 b=0 Select Case a Case 1 Select Case b Case 0 Print " * * 0 * *" Case 1 Print" * * 1 * *" End selec Case 2 Print " * * 2 * *" End Select
A.* * 0 * *
B.* * 1 * *
C.* * 2 * *
D.0
第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题:
单击命令按钮,并在对话框内输入6,下列程序段的执行结果为______。 Private Sub Command1_Click() Dim n As Integer n=InputBox ("请输入日期") Select Case n Case Is <= 0 n=InputBox("错误!请重新输入日期!") Case Is>7 n=InputBox("错误!请重新输入日期!") Case 1 To 3 Print "江苏" Case 4 To 5 Print "浙江" Case 6 To 7 Print "双休日" End Select End Sub
A.错误!请重新输入日期!
B.江苏
C.浙江
D.双休日
第6题:
有下列程序: #include<stdio.h> main() { int a=6,b=7,m=1; switch(a%2) { case0:m++;break; case 1=m++; switch(b%2) { defaut:m++; case0:m++;break; } } printf("%d\n",m); } 程序运行后的输
A.1
B.2
C.3
D.4
第7题:
下列程序段的执行结果为
m=1
n=1
Select Case m
Case 1
Select Case n
Case 0
print "A"
Case 1
Print "B"
End Select
Case 2
Print "C"
End Select
A.A
B.B
C.C
D.0
第8题:
执行下面的程序段后,变量c的值为 a=14 b=30 Select Case b\10 Case 0 c=a*10 + b Case 1 To 9 c=a* 100 +b Case 10 To 99 c=a * 1000 + b End Select Print c
A.363
B.2548
C.1430
D.9875
第9题:
执行以下程序段,如果在对话框中输入8,输出结果是"Hello"的是______。
A.n = InputBox("请输入一个数") Select Case n Case 7 To 1 Print "Hello" End Select
B.n = InputBox("请输入一个数") Select Case n Case Is>1, Is < 6 Print "Hello" End Select
C.n = InputBox("请输入一个数") Select Case n Case Is > 5, 1, 3 To 10 Print "Hello" End Select
D.n=InputBox("请输入一个数") Select Case n Case 1, 5, Is > 9 Print "Hello" End Select
第10题:
下列程序段的执行结果为______。 Private Sub Command1_Click() a=1:b=1 Select Case a Case 1 Select Case b Case 0 Print "你好!" Case 1 Print "Hello!" End Select Case 2 Print"谢谢使用!" End Select End Sub
A.你好!
B.谢谢使用!
C.Hello!
D.你好!谢谢使用!
第11题:
有以下程序: #include<stdio.h> main() { int a=6,b=7,m=1; switch(a%2) { case 0:m++;break; case 1 :m++; switch(b%2) { defaut:m++; case0:m++;break; } } printf("%d\n",m); }
A.1
B.2
C.3
D.4
第12题:
写出程序的运行结果。 #include
第13题:
A. **0**
B. **1**
C. **2**
D. 0
第14题:
有下列程序:
#include<stdio.h>
main
{ int a=6,b=7,m=1;
switch(a%2)
{ case 0:m++;break;
case 1:m++;
switch(b%2)
{ default:m++;
case 0:m++;break;
}
}
printf("%d\n",m);
}
程序的运行结果是( )。
A.3
B.2
C.4
D.1
第15题:
有下列程序:#include<stdio.h>main(){ int a=6,b=7,m=1; switch(a%2) { case 0:m++;break; case 1:m++; switch(b%2) { defaut:m++; case0:m++;break; } } printf("%d\n",m);}程序运行后的输出结果是( )。
A.1
B.2
C.3
D.4
第16题:
执行下面的程序段后,变量c的值为 a=14 b=30 Select Case b\10 Case 0 c=a * 10 + b Case 1 To 9 c=a*100+b Case 10 To 99 c=a*1000+b End Select Print c
A.363
B.2548
C.1430
D.9875
第17题:
下列程序段的执行结果为 m=1 n=1 Select Case m Case 1 Select Case n Case 0 print"A" Case 1 Print"B" End Select Case 2 Print"C" End Select
A.A
B.B
C.C
D.0
第18题:
以下程序的输出结果是( )。 #include<stdio.h> main() {int a=8,b=6,m=1; switch(a%4) {case 0:m++; break; case 1:m++; switch(b%3) {default:m++; case 0:m++;break; } } printf("%d\n",m);}
A.1
B.2
C.3
D.4
第19题:
下列程序段的执行结果为 m=1 n=1 Select Case m Case 1 Select Case n Case 0 Print" * * 0 * *" Case 1 Print" * *1* *" End Select Case 2 Print" * * 2 * *" End Select
A.**0**
B.**1**
C.**2**
D.0
第20题:
有以下程序: #include<stdio.h> main() {int a=6,b=7,m=I; switch(a%2) {case 0:m++;break; case 1:m++; switch(b%2) {defaut:m++; case 0:m++;break; } } printf("%d\n",m); } 程序运行后的输出结果是( )。
A.1
B.2
C.3
D.4
第21题:
有下列程序:
#include<stdio.h>
main()
{ int a=6,b=7,m=1;
switch(a%2)
{ case 0:m++;break;
case 1:m++;
switch(b%2)
{ defaut:m++;
case0:m++;break;
}
}
printf("%d\n",m);
}
程序运行后的输出结果是( )。
A.1
B.2
C.3
D.4
第22题:
下列程序段的执行结果为a=1b=0Select Case a Case 1 Select Case b Case 0 Print"**0**" Case 1 Print"**1**" End SelectCase 2 Print"**2**"End Select
A.* * 0 * *
B.* * 1 * *
C.* * 2 * *
D.0
第23题:
下列程序段的执行结果为 m=1 n=1 Select Case m Case 1 Select Case n Case 0 Print" * * 0 * *" Case 1 Print" * *.* *" End Select Case 2 Print"* *,2 * *," End Select
A.* * 0 * *
B.* * 1 * *
C.* * 2 * *
D.0
第24题:
0,1,2,5
0,1,2,4
0,1,1,3
0,1,2,3