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

2/27

Page

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

The #ifndef directive tests to see whether ________

Select an option to see the answer and solution.

Which of the following statements is false?

Select an option to see the answer and solution.

The generic type in a template function

Select an option to see the answer and solution.

When a child class function is called, the compiler looks first for a matching function name in the _____

Select an option to see the answer and solution.

A function that is called automatically each time an object is destroyed is a

Select an option to see the answer and solution.

If you create an instantiation of a class template with an int, and then create a second instantiation with a double, then

Select an option to see the answer and solution.

The step-by-step instructions that solve a problem are called _____

Select an option to see the answer and solution.

The type to be used in an instantiation of a class template follows ________

Select an option to see the answer and solution.

Which of the following statements allows the user to enter data at the keyboard?

Select an option to see the answer and solution.

When you pass a variable _____, C++ passes only the contents of the variable to the receiving function

Select an option to see the answer and solution.

The best form of coupling is _____

Select an option to see the answer and solution.

Paying attention to the important properties while ignoring inessential details is known as________

Select an option to see the answer and solution.

What does C++ append to the end of a string literal constant?

Select an option to see the answer and solution.

An array name is a _____

Select an option to see the answer and solution.

To enter a comment in a C++ program, you begin the comment with _____

Select an option to see the answer and solution.

Which of the following is(are) invalid string constant(s)?

Select an option to see the answer and solution.

You define a structure type globally because _____

Select an option to see the answer and solution.

Overloaded functions are required to

Select an option to see the answer and solution.

Redirection redirects

Select an option to see the answer and solution.

You mark the beginning of a function's block of code with the _____

Select an option to see the answer and solution.