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

15/27

Page

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

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

Select an option to see the answer and solution.

A function argument is

Select an option to see the answer and solution.

A function that is prototyped as double calculate(int num); may______

Select an option to see the answer and solution.

Passing a variable pointer as a constant _____

Select an option to see the answer and solution.

Recursive Functions

Select an option to see the answer and solution.

The purpose of a conditional operator is to

Select an option to see the answer and solution.

Which of the following, if any, are valid names for variables?

Select an option to see the answer and solution.

Assume you want to compare the character stored in the initial variable to the letter a. Which of the following conditions should you use in the if statement? (Be sure the condition will handle a or A.)

Select an option to see the answer and solution.

You can override a class's inherited access to make an individual member's access more ______

Select an option to see the answer and solution.

A class hierarchy

Select an option to see the answer and solution.

Which of the following C++ expressions is equivalent to the mathematical expression 53?

Select an option to see the answer and solution.

The right shift operator is represented by the symbol

Select an option to see the answer and solution.

In C++, class definitions are most often

Select an option to see the answer and solution.

The comma operator (,) is primarily used in conjunction with

Select an option to see the answer and solution.

To execute a C++ program, you first need to translate the source code into object code. This process is called

Select an option to see the answer and solution.

The rules of a programming language are called its _____

Select an option to see the answer and solution.

An array element is accessed using

Select an option to see the answer and solution.

The program can access the private members of a class

Select an option to see the answer and solution.

To hide a data member from the program, you must declare the data member in the _____ section of the class.

Select an option to see the answer and solution.

External documentation includes

Select an option to see the answer and solution.