Which of the following statements is true?

a. Strings can be used in a switch statement’s controlling expression and in its case labels.
b. Strings can be used in a switch statement’s controlling expression but not in its case labels.
c. Strings cannot be used in a switch statement’s controlling expression but can be used in its case labels.
d. Strings cannot be used in a switch statement’s controlling expression and cannot be used in its case labels.


a. Strings can be used in a switch statement’s controlling expression and in its case labels.

Computer Science & Information Technology

You might also like to view...

If a local variable and a global variable have the same name within the same program, the __________ resolution operator must be used.

a. variable b. ambiguity c. scope d. global e. None of these

Computer Science & Information Technology

Which numbered item indicates a command button that clears all data entered in the form in the accompanying figure?

A. 5 B. 6 C. 7 D. 8

Computer Science & Information Technology

Which of the following would adware most likely perform?

A) Adware is responsible for maintaining online auctions. B) Adware is responsible for unwanted popups while browsing the Internet. C) Adware is responsible for direct deposits. D) Adware helps maintain high levels of security on your computer.

Computer Science & Information Technology

Case 12-1 A word document contains a table. Along the top of the table, from left to right, there are boxes labeled "2014," "2015," "2016," and "2017." Along the left of the table, from top to bottom, there are boxes labeled "Minneapolis," "Dallas," and "Seattle." The series of boxes 2014, 2015, 2016, and 2017 in the table is a(n) _____.

A. ?cell B. ?row C. ?column D. ?element

Computer Science & Information Technology