Case 6-2
Robin thinks that she has a good handle on the use of compound operators but she wants to do a couple of sample problems just to make certain. In both of the problems below, Robin assumes that intResult = 24.
When Robin correctly calculates intResult ^= 2, what value does she get?

A. 22
B. 24
C. 48
D. 576


Answer: D

Computer Science & Information Technology

You might also like to view...

Reference-type variables (called references) store ________ in memory.

a. the value of an object b. a copy of an object c. the location of an object d. the size of an object

Computer Science & Information Technology

If the dialog between user and program is as follows, give the rest of the dialog. (Here, means the user presses the return key.) Explain the results.

Assume the following code fragment is executed while embedded in a complete, correct program. What will be an ideal response? ``` char c1, c2, c3, c4; cout << "Enter a line of input \n"; cin.get(c1); cin.get(c2); cin.get(c3); cin.get(c4); cout<< c1 << c2 << c3 << c4 << "END OF OUTPUT"; cout << endl; ``` ``` Enter a line of input abc ```

Computer Science & Information Technology

Describe the stages that a client and a server go through to establish a connection.

What will be an ideal response?

Computer Science & Information Technology

To use your computer more efficiently you should ____.

A. run as many applications as possible B. close all applications you do not need C. run only one application at a time D. close all applications that are running except one

Computer Science & Information Technology