Each computer operating system has its own specifications as to the maximum numb
ID: 3559458 • Letter: E
Question
Each computer operating system has its own specifications as to the maximum number of ____ permitted for
an external filename.
a. bits c. words
b. bytes d. characters
____ 125. A file stream that receives or reads data from a file to a program is called a(n) ____.
a. input file stream c. input command
b. input data path d. read statement
____ 126. Text files are also known as ____.
a. binary-based files c. I/O files
b. character-based files d. stream objects
____ 127. The advantage of binary-based files is ____.
a. accuracy c. compactness
b. ease of reading d. speed of access
____ 128. For each file that a program uses, a distinct ____ must be created.
a. path mode c. transmission path
b. I/O stream object d. file stream object
____ 129. Opening a file connects each file stream object to a specific ____.
a. storage device c. register
b. external file name d. storage location
____ 130. A stream is a one-way transmission of ____ between a source and a destination.
a. bits c. bytes
b. characters d. words
____ 131. File stream objects connect a program to a ____.
a. keyboard c. storage device
b. terminal screen d. file
____ 132. The classes ifstream and ofstream are made available to a program by inclusion of the ____ header
file.
a. fstream c. iofstream
b. iostream d. stream
____ 133. The ____ method is used to check that a file has been successfully opened.
a. eof() c. fail()
b. good() d. bad()
____ 134. In declaring and initializing a string variable for use in an open() method, the variable must represent a(n)
____.
a. array c. string
b. structure d. C-string
____ 135. When a string object is used, as opposed to a string literal, the variable name ____ enclosed within double
quotes in the open() method call.
a. is not c. is often
b. is d. is rarely
12
____ 136. The operating system will ____ close any open files existing at the end of program execution.
a. sometimes c. automatically
b. usually d. not
____ 137. Reading data from a character-based file is almost identical to reading data from a standard keyboard, except
that the cin object is replaced by the ____ object declared in the program.
a. fstream c. iostream
b. ifstream d. ostream
____ 138. The input statement inFile >> descrip >> price; will read the next ____ items in the file.
a. two c. four
b. three d. five
____ 139. The standard input file is usually a ____.
a. printer c. modem
b. terminal d. keyboard
____ 140. The error reporting stream is automatically connected to the stream object named ____.
a. cin c. cerr
b. cout d. All of the above.
____ 141. The standard output stream ____ is connected to the standard output device.
a. cin c. cerr
b. cout d. clog
____ 142. The only stream method that uses the data file
Explanation / Answer
answer )
Each computer operating system has its own specifications as to the maximum number of ____ permitted for
an external filename.
bits
answer 125. A file stream that receives or reads data from a file to a program is called a(n) ____.
input command
answer 126. Text files are also known as ____.
. binary-based files
____ 127. The advantage of binary-based files is ____.
c. compactness
____ 128. For each file that a program uses, a distinct ____ must be created.
a. path mode
____ 129. Opening a file connects each file stream object to a specific ____.
d. storage location
____ 130. A stream is a one-way transmission of ____ between a source and a destination.
a. bits
____ 131. File stream objects connect a program to a ____.
a. keyboard
____ 132. The classes ifstream and ofstream are made available to a program by inclusion of the ____ header
file.
b. iostream
____ 133. The ____ method is used to check that a file has been successfully opened.
b. good()
____ 134. In declaring and initializing a string variable for use in an open() method, the variable must represent a(n)
____.
c. string
____ 135. When a string object is used, as opposed to a string literal, the variable name ____ enclosed within double
quotes in the open() method call.
c. is often
____ 136. The operating system will ____ close any open files existing at the end of program execution.
a. sometimes
____ 137. Reading data from a character-based file is almost identical to reading data from a standard keyboard, except
that the cin object is replaced by the ____ object declared in the program.
c. iostream
____ 138. The input statement inFile >> descrip >> price; will read the next ____ items in the file.
a. two
____ 139. The standard input file is usually a ____.
d. keyboard
____ 140. The error reporting stream is automatically connected to the stream object named ____.
b. cout
____ 141. The standard output stream ____ is connected to the standard output device.
b. cout
____ 142. The only stream method that uses the data file
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.