Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. Fill in the blanks to make the best (most specific) true statement. A. In ord

ID: 3581790 • Letter: 1

Question

1. Fill in the blanks to make the best (most specific) true statement.

A. In order to easily send an object of a class to cout, you should overload _________________________.

B. A(n) _________________________ block should enclose code that might cause an exception to be thrown.

C. In a binary tree, a node that has no parent must be the ______________________.

D. Reading a file from beginning to end is called ____________________ access.

E. A linked list in which every node in the list has a pointer to both the node before it and the node after it is called _________________________.

F. If a member function does not need to modify any member variables of the class, it should be declared to be a(n) _________________________ member function.

G. A recursive function stops making recursive calls when it reaches its ____________ _____________.

H. If you need to open a file for both input and output, create a file stream object of type ____________________.

I. When a derived class has two or more base classes, the situation is referred to as _______________________ ____________________.

J. If a member variable of a class is declared to be _________________________, then there is only ONE variable of that name, shared by all objects of that class.

Explanation / Answer

Answer :

B. A(n) _________________________ block should enclose code that might cause an exception to be thrown.

Answer :

try

Explanation :

A(n) try block should enclose code that might cause an exception to be thrown.

................

C. In a binary tree, a node that has no parent must be the ......................

Answer :

root

Explanation :

In a binary tree, a node that has no parent must be the root.

..............

D. Reading a file from beginning to end is called ____________________ access.

Answer :

random

Explanation :

Reading a file from beginning to end is called random access.

............

F. If a member function does not need to modify any member variables of the class, it should be declared to be a(n) _________________________ member function.

Answer :

const member function

...............

G. A recursive function stops making recursive calls when it reaches its ____________

Answer :

base case

..........