更多"下面程序段执行结果为( )。 x=Int(Rnd( )+4) S"的相关试题:
[单项选择]下面程序段执行结果为
x=Int(Rnd( )+4)
Select Case x
Case 5
Print"excellent"
Case4
Print"good"
Case 3
Print"pass"
Case Else
Print"fail"
End Select
A. excellent
B. good
C. pass
D. fall
[单项选择]下面程序段的执行结果为( )。
x=Int(Rnd( )+3)
Select Case x
Case 5
Print "excellent"
Case 4
Print "good"
Case 3
Print "pass"
Case Else
Print "fail"
End Select
A. excellent
B. good
C. pass
D. fail
[单项选择]下列程序段的执行结果为( )。
x=Int(Rnd+3)
Select Case x
Case 5
Print "A Row"
Case 4
Print "B Row"
Case 3
Print "C Row"
Case Else
Print "D Row"
End Select
A. A ROW
B. B Row
C. C ROW
D. D Row
[单项选择]下列程序段的执行结果为( )。
x=Int(Rnd+4)
Select Case x
Case 5:Print"A Class"
Case 4:Print"B Class"
Cage 3:Print"C Class"
Case Else:Print"D Class"
End Select
A. A Class
B. B Class
C. C Class
D. D Class
[单项选择]下列程序段的执行结果为______。 x=Int (Rnd+4) Select Case x Case 5 Print“优秀” Case 4 Print“良好” Case 3 Print“通过” Case Else Print“没有通过” End Select
A. 优秀
B. 良好
C. 通过
D. 没有通过
[单项选择]下面程序段执行结果为
x=Iht(Rnd( )+4)
Select Case x
Case 5
Print"excellent"
Case 4
Print"good"
Case 3
Print"paSS"
Case Else
Print "fail"
End Select
A. excellent
B. good
C. pass
D. fail
[单项选择]下面程序段执行结果为( )。
x=Iht(Rnd( )+4)
Select Case x
Case 5
Print"excellent"
Case 4
Print"good"
Case 3
Print"paSS"
Case Else
Print "fail"
End Select
A. 0 0
B. 1 1
C. 2 2
D. 1 2
[单项选择]下列程序段的执行结果为
a=1
b=0
Select Case a
Case 1
Select Case b
Case 0
Print"**0**"
Case 1
Print"**1**"
End Select
Case 2
Print"**2**"
End Select
A. * * 0 * *
B. * * 1 * *
C. * * 2 * *
D. 0
[单项选择]下列程序段的执行结果为( )。
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. Open"InfoBase.dat"For Output As #2
B. Open"d:/InfoBase.dat"For Output As #2
C. Open"d:/InfoBase.dat"For Input As #2
D. Open"InfoBase.dat",For Input As #2
[单项选择]下列程序段的执行结果为( )。
a=1
b=0
Select Case a
Case 1
Select Case b
Case 0
Print"**0**"
Case 1
Print"**1**"
End Select
Case 2
Print"**2**"
End Select
A. a=2,b=1
B. a=1,b=1
C. a=1,b=0
D. a=2,b=2
[单项选择]执行下面的程序段后,变量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
[单项选择]执行下面的程序段
int x=35;
char z='A';
int B;
B=((x&15)&&(z<'a'));
后,B的值为_______。
A. 0
B. 1
C. 2
D. 3
[单项选择]执行下面的程序段
int x=40;
char z='B';
int B;
B=((x&0xff)&&(z>'a'));
后,B的值为 ( )
A. 0
B. 1
C. 2
D. 3
[单项选择]阅读下面程序段,则执行后的结果为
#include"stdio.h"
main( )
int m=4,n=2,k;
k=fun(m,n);
printf("%d/n",k);
fun(int m,int n)
return(m*m*m-n*n*n);
A. 64
B. 8
C. 56
D. 0
[单项选择]下列程序段执行后的输出结果为 ( )
int x=3;int y=10;
System.out.println(y%x);
A. 0
B. 1
C. 2
D. 3