Cis170 Final Exam Guide

2552 Words Jun 15th, 2013 11 Pages
.

MC

1.

(TCO 13) Text files are what type of file?
4
Points :

Sequential Random access Binary Consecutive
Instructor Explanation:

Lecture / Chapter 13

Edit 3. MC 1.

Delete

(TCO 13) To create an input file object, what kind of type would you use?
4
Points :

ifstream ofstream fstream instream
Instructor Explanation:

Lecture / Chapter 13.1 Introduction

Edit 4. MC 1.

Delete

(TCO 13) To create an output file object, what kind of type would you use?
4
Points :

ifstream ofstream fstream instream
Instructor Explanation:

Lecture / Chapter 13.1 Introduction

Edit 5. MC 1.

Delete

(TCO 13) The header file that defines the classes for processing and manipulating files is called the _____.
4
…show more content…
13. 14. MC 3.

Delete

(TCO 13) When a file is opened in the append mode, the file pointer is positioned _____.
4
Points :

at the end of the file at the beginning of the file in the middle of the file after the file header
Instructor Explanation:

Lecture / Chapter 13

Edit 15. MC 3.

Delete

(TCO 13) The function used to determine whether an entire sequential access file has been read is called _____.
4
Points :

close() function eof() function open() function None of the above
Instructor Explanation:

Lecture / Chapter 13

Edit

Delete

16.

MC

3.

(TCO 13) When a file is opened in output mode, the file pointer is positioned _____.
4
Points :

at the end of the file at the beginning of the file in the middle of the file after the file header
Instructor Explanation:

Lecture / Chapter 13

Edit 17. MC 3.

Delete

(TCO 13) Which class is used to read data from a text file?
4
Points :

ifstream readstream readme None of the above
Instructor Explanation:

13.2.2 Reading data from a file

Edit 18. 19. 20. MC 4.

Delete

(TCO 13) Which of the following functions should be used to determine if a file was successfully opened?
4
Points :

is_active is_open is_closed is_ready
Instructor