在下列给出的条件表达式,不正确的是[ ]
A: (ch>=65) and (ch<=90)
B: 'A' <= ch <= 'Z'
C: 'A' <= ch && ch <= 'Z'
D: (ch>='A') and (ch<='Z')
A: (ch>=65) and (ch<=90)
B: 'A' <= ch <= 'Z'
C: 'A' <= ch && ch <= 'Z'
D: (ch>='A') and (ch<='Z')
举一反三
- 在下列给出的条件表达式中,不正确的是【 】。 A: 'A' <= ch && ch <= 'Z' B: 'A' <= ch <= 'Z' C: (ch>='A') and (ch<='Z') D: (ch>=65) and (ch<=90)
- 判断char型变量ch是否为大写字母的正确表达式是()。 A: (ch>='A')&&(ch<='Z') B: ('A'>=ch)||('Z'<=ch) C: 65<=ch<=90 D: (ch>=A)&&(ch<=Z)
- 判断char型变量ch是否为大写字母的正确表达式是()A.‘A’[=ch<=‘Z’ B.(ch]=‘A’)&(ch[=‘Z’) C.(ch]=‘A’)&&(ch[=‘Z’) D.(‘A’<= ch)AND(‘Z’]= ch) A: ‘A’<=ch<=‘Z’ B: (ch>=‘A’)&(ch<=‘Z’) C: (ch>=‘A’)&&(ch<=‘Z’) D: (‘A’<= ch)AND(‘Z’>= ch)
- 在下列给出的条件表达式,不正确的是[ ] A: (ch>=65) and (ch<=90) B: 'A' <= ch <= 'Z' C: 'A' <= ch && ch <= 'Z' D: (ch>='A') and (ch<='Z')
- 下面判断ch是大写或者小写英文字母的表达式哪个正确? A: ch >= 'A' && ch <= 'Z' || ch >= 'a' && ch <= 'z' B: ch >= A && ch <= Z || ch >= a && ch <= z C: 'A' <= ch <= 'Z' || 'a' <= ch <= 'z' D: A <= ch <= Z || a <= ch <= z