单选题
VB
题号 #2536755
设a =2,b =3,c =4,d =5,下列表达式的值是( )。
Not a<=c Or 4*c =b^2And b <>a+c
参考答案
D
答案解析
本题考查运算符及其优先级。在表达式中,当运算符不止一种时,要先进行算术运算,接着进行比较运算,然后再进行逻辑运算。算术运算符的优先顺序从高到低依次为:幂(^)→取负(-)→乘、浮点除(*、/)→整除(\)→取模(mod)→加、减(+、-)→连接(&)。逻辑运算符的优先顺序从高到低依次为:Not→And→Or→Xor→Eqv→Imp。比较运算符的优先顺序为相等(=)→不等(<>)→小于(<)→大于(>)→小于或等于(<=)→大于或等于(>=)→Li ke→Is。根据以上分析,对本题进行运算可知正确答案为选项D。
你可能感兴趣的试题
A.Private Sub save_Click()
Text1 . Text =file . save . Caption
End Sub
Text1 . Text =file . save . Caption
End Sub
B.Private Sub save_Click()
Text1 . Text =save . Caption
End Sub
Text1 . Text =save . Caption
End Sub
C.Private Sub file_Click()
Text1 . Text =file . save . Caption
End Sub
Text1 . Text =file . save . Caption
End Sub
D.Private Sub file_Click()
Text1 . Text =save . Caption
End Sub
Text1 . Text =save . Caption
End Sub
A.Open "c :\Test2.dat"For Output As #1
Put #1,1,p
Close #1
Put #1,1,p
Close #1
B.Open "c :\Test2.dat"For Rando m As #1
Get #1,1,p
Close #1
Get #1,1,p
Close #1
C.Open "c :\Test2.dat"For Rando m As #1Len =Len
(p)Put #1,1,p
Close #1
(p)Put #1,1,p
Close #1
D.Open "c :\Test2.dat"For Rando m As #1Len =Len
(p)Get #1,1,p
Close #1
(p)Get #1,1,p
Close #1
A.一个工程中可以包含多个窗体文件
B.在一个窗体文件中用Private 定义的通用过程能被其他窗体调用
C.在设计Visual Basic 程序时,窗体、标准模块、类模块等需要分别保存为不同类型的磁盘文件
D.全局变量必须在标准模块中定义

