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 OSPF routing protocol uses which of the following to verify that a link between two routers is active and the routers are communicating?

a. LSAs b. “Hello” packets c. ARP messages d. ping

Computer Science & Information Technology

Find and Replace options are located in the ________ group of the Home tab

A) Font B) Paragraph C) Styles D) Editing

Computer Science & Information Technology

A(n) ______ is a request for specific data from a database.

A. query B. retrieval C. filter D. function

Computer Science & Information Technology

Which of the following is a symmetric encryption algorithm available in 128-bit, 192-bit, and 256-bit key versions?

a. RSA b. 3DES c. AES d. TKIP

Computer Science & Information Technology