click below
click below
Normal Size Small Size show me how
CSCI 1106 cpt3
| Question | Answer |
|---|---|
| Arguments (parameters) | the values that are passed in a function call in the parenthesis after the name of the function |
| Common input | a variable declaration in the header file, cin |
| Common output | a variable declaration in the header file, cout |
| Dot notation | the dot separates the input stream variable name from the member, or function name |
| Fail state | the state an input stream enters after input failure in which all further I/O statements using that stream are ignored |
| File | an area in secondary storage used to hold information |
| File stream variables | include ifstream variables for input and ofstream variables for output |
| Function call | transfers control from the main function to the first statement in the body of the function, such as pow(2,3) |
| Input failure | happens when the input data does not match the corresponding variables in the program and the program either fails to compile or yields incorrect results |
| Input stream | a sequence of characters from an input device to the computer |
| Input stream variables | variables of the type istream |
| Istream member functions | functions that are associated with the data type istream |
| Member access operator | in C++, it is the dot operator |
| Opening the files | associating file stream variables with the input/output sources |
| Output stream | a sequence of characters from the computer to an output device |
| Output stream variables | variables of the type ostream |
| Parameterized stream manipulators | manipulators with parameters |
| Predefined functions | functions that are already defined in C++ |
| Stream | a sequence of characters from the source to the destination |
| Stream member functions (stream functions) | I/O functions such as get |
| Stream variable (stream object) | either an input stream variable or an output stream variable |
| Output stream variables can use the ____ manipulator to fill unused columns with a character other than a blank. | setfill |
| A(n) ____ is a sequence of characters from a computer to an output device. | output stream |
| In C++, ____ are used to format output. (p.137) | manipulators |
| scanning for the next input, > > skips all ____. (p.129) | whitespace characters |
| The manipulator ____ is used to output floating-point numbers in scientific format. (p.138) | scientific |
| Which of the following statements sets the output of floating-point numbers to a fixed decimal format on the standard output device? (p.138) | cout < < fixed; |
| The left-side operand of the extraction operation must be a(n) ____ variable. | input stream |
| Which of the following is not an input stream function? (p.119) | place |
| An input stream is a sequence of characters from an input device to a(n) ____. (p.118) | computer |
| Which of the following is a valid statement? (p.127) | cin.get(ch); |
| An expression such as pow(2,3) is called a ____. (p.125) | function call |
| The variable cout stands for ____. (p.118) | common output |
| The variable cin stands for ____. (p.118) | common input |
| The right-side operand of the extraction operation must be a(n) ____ variable. (p.119) | simple data type |
| Without the statement using namespace std, you must refer to the variable cin as ____. (p.119) | std::cin |
| Whitespace characters consist of ____. (p.129) | blanks and certain nonprintable characters |
| The ____ manipulator only controls the value of the next expression in an output statement. (p.142) | setw |
| What happens when a user inputs an integer value for a double variable? (p.124) | The integer value is converted to a decimal value. |
| The ____ function takes the very next character, including whitespace characters, from the input stream and stores it in the memory location indicated by its argument. (p.127) | get |
| The extraction operator takes ____ operands. (p.119) | two |