click below
click below
Normal Size Small Size show me how
Input/Output
| Question | Answer |
|---|---|
| ___ which stands for common input, is an input stream object, typically initialized to the standard input device, which is the keyboard | cin |
| ___ which stands for common output, is an output stream object, typically initialized to the standard output device, which is the screen | cout |
| When the binary operator >> is used with an ___ , such as cin, it is called the stream extraction operator | input stream object |
| When the binary operator << is used with an ___ , such as cout, it is called the stream insertion operator. The left-side operand of << must be an output stream variable, such as cout; the right-side operand of << must be an expression or a manipulator | output stream object |
| When inputting data into a variable, the operator >> ___ all leading whitespace characters | skips |
| To use cin and cout, the program must include the header file ___ | iostream |
| The manipulator ___ formats the output of floating-point numbers to a specified number of decimal places | setprecision |
| The manipulator ___ outputs floating-point numbers in the fixed decimal format | fixed |
| The manipulator ___ outputs floating-point numbers with a decimal point and trailing zeros | showpoint |
| The manipulator ___ formats the output of an expression in a specific number of columns; the default output is right-justified | setw |
| If the number of columns specified in the argument of setw is ___ than the number of columns needed to print the value of the expression, the output is not truncated and the output of the expression expands to the required number of columns | less than |
| The manipulator ___ is used to fill the unused columns on an output device with a character other than a space | set fill |
| If the number of columns specified in the setw manipulator ___ the number of columns required by the next expression, the output is right-justified. To left justify the output, you use the manipulator left. | exceeds |
| To use the stream functions get, ignore, putback, peek, clear, and unsetf for standard I/O, the program must include the header file ___ | iostream |
| To use the manipulators setprecision, setw, and setfill, the program must include the header file ___ | iomanip |