x为Select case 语句中的测试表达式,若需表示10~50之间的条件,以下Case语句中正确的是( )。
A: Case 10 To 50
B: Case x>=10 and x<=50
C: Case Is>10 And Is<50
D: Case 10,50
A: Case 10 To 50
B: Case x>=10 and x<=50
C: Case Is>10 And Is<50
D: Case 10,50
举一反三
- 用Select Case语句选择|x|> 10 情况的语句为: Case
- 【单选题】用 Select Case语句选择|x|> 10 情况的语句为: Case A. Not(-10 To 10 ) B. -10 To 10 C. Is < 10 ,Is>10 D. Abs(x)>10
- 假设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
- 假定x的值为5,则在执行以下语句时,其输出结果为"Result"的正确表示Select Case语句是( ) A: Select Case x Case 1 To 10 Print "Result" End Select B: Select Case x Case Is>5,Is<5 Print "Result" End Select C: Select Case x Case Is>5,1,3 To 4 Print "Result" End Select D: Select Case x Case 1,3,Is>5 Print "Result" End Select
- 在 Select Case a结构中,描述判断条件 1 ≦ a ≦ 10 的测试项应该写成()。 A: Case 1 <= a <= 10 B: Case 1 ≦ a And a ≦ 10 C: Case Is >= 10 or Is >= 1 D: Case 1 To 10