刷题首页
题库
高中信息
题干
在VB中,能正确表示数学关系式5<X<10的VB表达式是( )
A.5<X<10
B.X>5 or X<10
C.X<5 and X<10
D.X>5 and X<10
上一题
下一题
0.99难度 选择题 更新时间:2019-05-30 02:37:32
答案(点此获取答案解析)
同类题1
在VB中,设a=2,b=3,表达式a<b And b>=3值是( )
A.1
B.0
C.True
D.False
同类题2
如下程序的运行结果是( )
x=7
if x>10 then
y=x*2+2
else
if x<=5 then
y=x*3
else
y=4-x/7
end if
end if
print y
A.16
B.21
C.3
D.-21
同类题3
在Visual Basic中,表达式Len("-100")+100的值是( )
A.0
B.104
C.200
D.-100100
同类题4
下面程序执行的结果是( )
Private Sub Commandl click ( )
Dim z as integer
x="2017"
y="06"
z=Val(x+y)
Print z
End Sub
A.error
B.62017
C.2023
D.201706
同类题5
a的取值范围为(-2,0∪1,8),在程序中可以用下列哪个表达式表示_____。
A.(a>-2-or a<="0)" or (a>="1" or-a<8)
B.(a>="-2" or a<="0)" and (a>="1" and a<="8)"
C.(a>-2-and a<="0)" or (a>="1" and-a<8)
D.(a>-2-and a<="0)" and (a>="1" and-a<8)
相关知识点
算法理论
面向对象程序设计 VB开发工具
基本运算及表达式