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

1/27

Page

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

You can use C++ as a procedural, as well as an object-oriented, language

Select an option to see the answer and solution.

A default catch block catches

Select an option to see the answer and solution.

Adding a derived class to a base class requires fundamental changes to the base class

Select an option to see the answer and solution.

Format flags may be combined using

Select an option to see the answer and solution.

The use of the break statement in a switch statement is

Select an option to see the answer and solution.

To expose a data member to the program, you must declare the data member in the _____ section of the class

Select an option to see the answer and solution.

Evaluate the following expression: 3 >6&&7>4

Select an option to see the answer and solution.

Which of the following are valid characters for a numeric literal constant?

Select an option to see the answer and solution.

A function that changes the state of the cout object is called a(n) _____

Select an option to see the answer and solution.

A C++ program contains a function with the header int function(double d, char c). Which of the following function headers could be used within the same program?

Select an option to see the answer and solution.

When the compiler cannot differentiate between two overloaded constructors, they are called

Select an option to see the answer and solution.

Some Streams work with input, and some with output

Select an option to see the answer and solution.

If you design a class that needs special initialization tasks, you will want to design a(n) _____

Select an option to see the answer and solution.

Which type of statement does not occur in computer programs?

Select an option to see the answer and solution.

The newline character is always included between

Select an option to see the answer and solution.

To be called object-oriented, a programming language must allow

Select an option to see the answer and solution.

A function that returns no values to the program that calls it is _____

Select an option to see the answer and solution.

The keyword used to define a structure is _____

Select an option to see the answer and solution.

If container classes are carefully constructed, then these tools are available to work with structures that are not ______

Select an option to see the answer and solution.

Header files often have the file extension _____

Select an option to see the answer and solution.