Cis170 Final Exam Guide

2554 words 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…

4
Points :

bool

int char double
Instructor Explanation:

Lecture / Chapter 13

Edit 22. MC 4.

Delete

(TCO 13) The is_closed function returns what kind of data type?
4
Points :

bool int char double
Instructor Explanation:

Lecture / Chapter 13

Edit 23. MC 4.

Delete

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

is_active is_open is_closed is_ready
Instructor Explanation:

Lecture / Chapter 13

Edit 24. 25. 26. MC 5.

Delete

(TCO 12) A variable type that contains a memory address of another variable is called a _____.
4
Points :

reference pointer memory variable memory array

Instructor Explanation:

Lecture / Chapter 8

Edit 27. MC 5.

Delete

(TCO 12) Assuming that t is an array and tPtr is a pointer to that array, which expression refers to the address of element 3 of the array?
4
Points :

*( tPtr + 3 ) tPtr[ 3 ] &t[ 3 ] *( t + 3 )
Instructor Explanation:

Lecture / Chapter 8

Edit 28. MC 5.

Delete

(TCO 12) Which is not a reason that pointers are valuable?
4
Points :

Pointers allow for faster access to array elements. Pointers speed the process of passing objects like classes to functions. Pointers allow function to be passed as an argument to other functions. Pointers involve a great deal of overhead when used in conjunction with arguments. Instructor Explanation: Lecture / Chapter 8
Edit 29. MC 5.

Related