Font size
WorksheetsCSNP-04103 C++ Chapter 8 - Get & Put
Total questions: 10
Worksheet time: 5mins
A stream is?
An array of characters
A matrix of characters
A sequence of characters
All of the above
get and put are part of the __________ library ?.
<string>
<sstring>
<iostring>
<iostream>
Does the command cin process one character at a time?
True
False
Does the get command takes into consideration leading white spaces?.
Yes
No
What are the delimiters for the "cin" command?.
Special characters such as \t
White spaces
New line \n
The & sign
What library is used to interact with external files?.
<iostring>
<iostream>
<fstream>
<sstring>
These are the characteristics of interactive processing (OLTP)?.
Requires use of data files
Ok for smaller programs
Expect user input from the keyword
Input file can be read many times
What is the command to declare an input file stream?.
ofstream
ifstream
sstream
iostream
The command "getline" is used for?
Extracting one character at a time.
Extracting multiple characters at a time
Extracting two characters at a time
Locate the buffer pointer
The boolalpha command does?.
Sets the precision to the argument.
A decimal point will not be displayed for boolean numbers
Skip white spaces on input
Enables false and true to be extracted from the input stream or inserted into the output stream.
