断char型变量ch是否为小写字母的正确表达式是()。
A: 'a' <= ch <= 'z'
B: (ch >= a) && (ch <= z)
C: (ch >= 'a') && (ch <= 'z')
D: ('a' >= ch) || ('z' <= ch)
A: 'a' <= ch <= 'z'
B: (ch >= a) && (ch <= z)
C: (ch >= 'a') && (ch <= 'z')
D: ('a' >= ch) || ('z' <= ch)
举一反三
- 下面判断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')
- 以下哪个选项是判断ch是否为大写字母的正确形式? A: ch >= 'A' || ch <= 'Z' B: ch >= 'A' AND ch <= 'Z' C: ch <= 'Z' && ch >= 'A' D: 'A' <= ch <= 'Z'
- 判断char型变量ch是否为小写字母的正确表达式是( )。 A: 'a'<=ch<='z' B: (ch>=a)&&(ch<=z) C: ('a'>=ch)||('z'<=ch) D: (ch>='a')&&(ch<='z')