Vidyalelo
Computer Science · all questions

Object Oriented Programming Using C++
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

535

Questions

24/27

Page

Pick an option on a question to see the right answer and solution.

The general form of do-while statement is

Select an option to see the answer and solution.

The measure of how well the operations in a function relate to one another is _____

Select an option to see the answer and solution.

If you want to override constructor default values for an object you are instantiating, you must also override

Select an option to see the answer and solution.

An unsigned double type of data

Select an option to see the answer and solution.

The extraction operator >> is a(n) _____

Select an option to see the answer and solution.

Modules in C++ programs are

Select an option to see the answer and solution.

The return type for all destructors is

Select an option to see the answer and solution.

If an exception is thrown and no catch block matches the type of the thrown parameter, then _____

Select an option to see the answer and solution.

The comma operator (,) is used to

Select an option to see the answer and solution.

A function that is called automatically each time an object is created is a(n)

Select an option to see the answer and solution.

Which of the following statements creates a named constant called driverAge whose value is 16?

Select an option to see the answer and solution.

Which functions do not have a this pointer?

Select an option to see the answer and solution.

When a program calls a function that has default parameters, if you omit an argument, you must _____

Select an option to see the answer and solution.

Each generic type in a template function definition is preceded by the keyword _________

Select an option to see the answer and solution.

The declaration section holds

Select an option to see the answer and solution.

A derived class _____ override attributes of a parent class

Select an option to see the answer and solution.

In object-oriented terms, an exception may be considered a(n) _____

Select an option to see the answer and solution.

A(n) _____ is a numeric variable used for counting something

Select an option to see the answer and solution.

The element of an array is

Select an option to see the answer and solution.

When the function void someFunction(int x) throw(char) is executed,_____

Select an option to see the answer and solution.