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

1. When you call the setf function on an output stream, the effect is only until the next output.

2. Setting the width of output with call to the width member function, affects only the next output.


1. False
Explanation: The effect of setting a flag with setf continues until you call unsetf with the same argument to turn this flag off.
2. True
Explanation: The effect of the width call is ephemeral. It affects the next output operation and then the width is reset to default for the system.

Computer Science & Information Technology

You might also like to view...

In the pseudocode of this text the isLower function will return __________ if the character is uppercase.

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

Computer Science & Information Technology

To document the return value of a method you can use a __________.

a. comment tag b. returnValue tag c. param tag d. return tag

Computer Science & Information Technology

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

1. The amount of data that moves between the processor and memory at one time depends on the application. 2. Cache memory is a form of secondary storage. 3. The processor, often called the central processing unit (CPU), is the component that manipulates data. 4. A processor can do nothing without a program to provide control; whatever intelligence a computer has is derived from software, not hardware. 5. The processor manipulates data stored in memory under the control of a program stored in memory.

Computer Science & Information Technology

Prompt the user to enter an integer.

What will be an ideal response?

Computer Science & Information Technology