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...
Which of the following PowerPoint feature is accessed through the File tab?
A) New Slide B) Header & Footer C) Slide Orientation D) Print
Computer Science & Information Technology
Answer the following statements true (T) or false (F)
1. A constructor must have the same name as the class that contains it. 2. A single method cannot be both public and private at the same time. 3. Data hiding is a means of achieving overloading of a particular method. 4. A class is an instance of an object. 5. A return value for a method is required.
Computer Science & Information Technology