To check whether a char variable ch is an uppercase letter, you write ___________.

a. (ch >= 'A' && ch >= 'Z')
b. (ch >= 'A' && ch <= 'Z')
c. (ch >= 'A' || ch <= 'Z')
d. ('A' <= ch <= 'Z')

b A is wrong because ch >= 'Z'. C is wrong because of using ||. D is wrong because of incorrect syntax. The correct answer is B.

Computer Science & Information Technology

You might also like to view...

The ________ button is the arrow to the right of a header row label in a table

A) edit B) filter C) analyze D) sort

Computer Science & Information Technology

What is the subnetmask for a /13 network?

A. 255.255.0.0 B. 255.248.0.0 C. 255.192.0.0 D. 255.260.0.0

Computer Science & Information Technology