以下哪个选项是判断ch是否为大写字母的正确形式?
A: ch >= 'A' || ch <= 'Z'
B: ch >= 'A' AND ch <= 'Z'
C: ch <= 'Z' && ch >= 'A'
D: 'A' <= ch <= 'Z'
A: ch >= 'A' || ch <= 'Z'
B: ch >= 'A' AND ch <= 'Z'
C: ch <= 'Z' && ch >= 'A'
D: 'A' <= 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
- 下列选项中用于判断ch是否是英文字母的表达式是( )。? ( ch >= 'a' && ch <= 'z' ) || ( ch >= 'A' && ch <= 'Z' )|;( 'a' <= ch <= 'z' ) || ( 'A' <= ch <= 'Z' )|( ch >= 'a' && ch <= 'z' ) && ( ch >= 'A' && ch <= 'Z' )|( 'a' <= ch <= 'z' ) && ( 'A' <= ch <= 'Z' )
- 判断char型变量ch是否为大写字母的正确表达式是( ) A: 'A' <= ch <= 'Z' B: (ch >= 'A') & (ch <= 'Z') C: (ch >= 'A') && (ch <= 'Z') D: (ch >= 'A') || (ch <= 'Z')
- 断char型变量ch是否为小写字母的正确表达式是()。 A: 'a' <= ch <= 'z' B: (ch >= a) && (ch <= z) C: (ch >= 'a') && (ch <= 'z') D: ('a' >= ch) || ('z' <= ch)
- 判断char型变量ch是否为大写字母的正确表达式是 ________ 。 A: ˊAˊ <=ch<= ˊZˊ B: ( ˊAˊ <=ch) AND ( ˊZˊ >=ch) C: (ch>= ˊAˊ )&(ch<= ˊZˊ ) D: (ch>= ˊAˊ )&&(ch<= ˊZˊ )