Computer Science - Object Oriented Programming Using C++

26.
If an exception is thrown and no catch block matches the type of the thrown parameter, then _____
the program terminates
the first catch block is executed
the last catch block is executed
the program proceeds with the code following the catch blocks
Answer: Option
Explanation:
No answer description is available. Let's discuss.

27.
The comma operator (,) is used to
permit two different expressions to appear in situations where only one expression would ordinarily be used
terminate loops or to exit from switch
alter the normal sequence of program execution by transferring control to some other part of the program
carry out a logical test and then take one of two possible actions, depending upon the outcome of the test
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

28.
A function that is called automatically each time an object is created is a(n)
constructor
contractor
builder
architect
Answer: Option
Explanation:
No answer description is available. Let's discuss.

29.
Which of the following statements creates a named constant called driverAge whose value is 16?
const driverAge = 16;
const short driverAge = 16;
driverAge =16;
driverAge const =16;
namedconst driverAge =16;
Answer: Option
Explanation:
No answer description is available. Let's discuss.

30.
Which functions do not have a this pointer?
access functions
inspector functions
member functions
static functions
Answer: Option
Explanation:
No answer description is available. Let's discuss.