Suppose that ch1 and ch2 are char variables, and alpha is an int variable. The input is:
?
A 18
?
What are the values after the following statement executes?
?
cin.get(ch1);
cin.get(ch2);
cin >> alpha;
?

A. ch1 = 'A', ch2 = ' ', alpha = 18
B. ch1 = 'A', ch2 = '1', alpha = 8
C. ch1 = 'A', ch2 = ' ', alpha = 1
D. ch1 = 'A', ch2 = '\n', alpha = 1

Answer: A

Computer Science & Information Technology

You might also like to view...

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

1. Disk drives and record able optical disk drives can be considered input devices or output devices. 2. There are two general categories of software: system software and utility software. 3. Software development tools control the internal operations of the computer’s hardware, mange all the devices connected to the computer, allow data to be saved to and retrieved from the storage devices, and allow other programs to run on the computer. 4. Examples of utility programs are virus scanners, file-compression programs, and data-backup programs.

Computer Science & Information Technology

Why does this represent information hiding? package mydata is type mytype is private; private type mytype is integer; end package; ______

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

Computer Science & Information Technology