Suppose that ch1 and ch2 are char variables and the input is:WXYZWhat is the value of ch2 after the following statements execute?cin >> ch1;ch2 = cin.peek();cin >> ch2; 

A. W
B. X
C. Y
D. Z


Answer: B

Computer Science & Information Technology

You might also like to view...

Detaching a master item is not the same as overriding a master item.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The ____________________ data type is used to store single characters.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following statements applies to all on-scene personnel regardless of their assignment?

a. Final preraid briefings do not include cautionary admonitions. b. It is unacceptable to compile more equipment than necessary. c. Traditional procedures for crime-scene investigation remain sacrosanct. d. Officer safety generally takes a backseat during investigations.

Computer Science & Information Technology

Views do not make the SQL efficient, just secure.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology