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. (ch >= 'A' && ch <= 'Z')
A is wrong because ch >= 'Z'. C is wrong because of using ||. D is wrong because of incorrect syntax. The correct answer is B.
You might also like to view...
Capitalization errors usually are caused by accidental use of the _____ key.
A. Shift B. Caps Lock C. Tab D. Num Lock
To check whether system or resource errors have occurred, you should check the events in the Windows application log and SQL Server log.
Answer the following statement true (T) or false (F)
New to Word 2013 is the ________ button, which will enable you to quickly add some of the more common fields, such as the author, file path, document title, and file name
A) Header and Footer B) Ribbon Displays C) Read Mode D) Document Info
Which of the following apps would you use if you were travelling to a country where they did not speak your language?
A. Scanadu Scout B. Google Translate C. Jefit D. OnLive