____ 178. The selection of an algorithm and how it will be applied to an object’
ID: 3627418 • Letter: #
Question
____ 178. The selection of an algorithm and how it will be applied to an object’s attributes are ____ issues.a. programming c. testing
b. coding d. implementation
____ 179. To store and retrieve data outside a C++ program, two things are needed: a file and a(n) ____.
a. storage device c. file stream object
b. buffer d. I/O command
____ 180. Each file has a unique file name referred to as the file’s ____.
a. external name c. label
b. name d. mnemonic
____ 181. Each computer operating system has its own specifications as to the maximum number of ____ permitted for an external file name.
a. bits c. words
b. bytes d. characters
____ 182. A file stream that receives or reads data from a file into a program is called a(n) ____.
a. input file stream c. input command
b. input data path d. read statement
____ 183. 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
____ 184. Text files are also known as ____.
a. binary-based files c. I/O files
b. character-based files d. stream objects
____ 185. A stream is a one-way transmission of ____ between a source and a destination.
a. bits c. bytes
b. characters d. words
____ 186. File stream objects connect a program to a ____.
a. keyboard c. storage device
b. terminal screen d. file
____ 187. 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
____ 188. The advantage of binary-based files is ____.
a. accuracy c. compactness
b. ease of reading d. speed of access
____ 189. Opening a file connects each file stream object to a specific ____.
a. storage device c. register
b. external file name d. storage location
____ 190. The ____ method is used to check that a file has been successfully opened.
a. eof() c. fail()
b. good() d. bad()
____ 191. In declaring and initializing a string variable for use in an open() method, the string is always considered as a(n) ____.
a. array c. string
b. structure d. C-string
____ 192. The operating system will ____ close any open files existing at the end of program execution.
a. sometimes c. automatically
b. usually d. not
____ 193. 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
____ 194. The input statement inFile >> descrip >> price; will read the next ____ items in the file.
a. two c. four
b. three d. five
Explanation / Answer
178 D 179 C 180 A 181 D 182 A 183 D 184 B 185 C 186 D 187 A 188 C 189 B 190 C 191 D 192 C 193 B 194 A
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.