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

C++ 1)After the code in the catch block is executed program execution continues

ID: 3866121 • Letter: C

Question

C++

1)After the code in the catch block is executed program execution continues inside the try block.

True

False

p2

2)Who can access private data in a class?

a)members of the class

b)friends of the class

c)members of the class and of derived classes

d)members of the class and friends

3)C++ vectors are generally preferred to dynamic arrays because

a)arrays cannot contain object elements

b)vectors can grow and shrink

c)all choices are true

d)vectors can never be empty

4)A derived class has access to

a)the public functions and variables of its ancestor classes

b)private and public functions and variables of its ancestor classes

c)private and protected functions and variables of its ancestor classes

d)the private functions and variables of its ancestor classes

5)Operators can be overloaded as

a)friends of a class

b)members of a class

c)data members of a class

d)members or friends of a class

6)Functions should normally be made virtual

a)if they are friend functions

b)if they are private functions

c)always

d)if they are meant to be overriden

Explanation / Answer

1)False

Once the Exception is cought in try block and its thrown by thorgh statement control transfered to the catch block and Control never go back inside try block.

2) d) Member of the class and freinds

  

3) b) vectors can grow and shrink

4)   a)the public functions and variables of its ancestor classes

5)   d)members or friends of a class

6) d)if they are meant to be overriden