VB练习题9.下列程序段的执仃结果为___.x=0 print x-1 x=3 A.一1 B.3 C.2 D.09.下列程序段的执仃结果为___.x=0print x-1x=3A.一1 B.3 C.2 D.010.Int(100*Rnd(1))产生的随机整数的闭区间是___.A.[0,99] B.[1,100] C.[0,‘100] D.
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 02:28:06
VB练习题9.下列程序段的执仃结果为___.x=0 print x-1 x=3 A.一1 B.3 C.2 D.09.下列程序段的执仃结果为___.x=0print x-1x=3A.一1 B.3 C.2 D.010.Int(100*Rnd(1))产生的随机整数的闭区间是___.A.[0,99] B.[1,100] C.[0,‘100] D.
VB练习题9.下列程序段的执仃结果为___.x=0 print x-1 x=3 A.一1 B.3 C.2 D.0
9.下列程序段的执仃结果为___.
x=0
print x-1
x=3
A.一1 B.3 C.2 D.0
10.Int(100*Rnd(1))产生的随机整数的闭区间是___.
A.[0,99] B.[1,100] C.[0,‘100] D.[1,99]
11.以下Case语句中错误的是___.
A.Case 0 To 10 B.Case Is>10
C.Case Is >10 And Is10
12.如果x是一个正的实数,将千分位四舍五入,保留两位小数的表达式是___.
A.0.01 *Int(x+0.05) B.0.01 *Int(100*(x+0.005))"
C.0.01 *Int(100*(x+0.05)) D.0.01 *Int(x+0.005)
13.表达式Left("how are you",3)的值是____.
A.how B .are C.you一D.how are you
14.表达式Abs(-5)+Len("计算机AB")的值是___.
A.5计算机AB B.-5计算机AB C.10 D.0
15设A="12345678",则表达式Val(Left(A,4)+Mid(A,4,2))的值为___.
A.123456 B.123445 C.8 D.6are you
16.Rnd函数不可能产生值___.
A.0.2 B .1 C .0.1234 D.0.00005
VB练习题9.下列程序段的执仃结果为___.x=0 print x-1 x=3 A.一1 B.3 C.2 D.09.下列程序段的执仃结果为___.x=0print x-1x=3A.一1 B.3 C.2 D.010.Int(100*Rnd(1))产生的随机整数的闭区间是___.A.[0,99] B.[1,100] C.[0,‘100] D.
9、B
10、A
11、D
12、C
13、A
14、C
15、B
16、B