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

18/27

Page

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

An expression contains relational, assignment and arithmetic operators. In the absence of parentheses, the order of evaluation will be

Select an option to see the answer and solution.

The keyword virtual indicates that

Select an option to see the answer and solution.

If you declare two objects as Customer firstCust, secondCust; which of the following must be true?

Select an option to see the answer and solution.

Variables that are declared in a block are known as _____ variables to that block

Select an option to see the answer and solution.

The pow and sqrt functions return a(n) _____ type number

Select an option to see the answer and solution.

Declaring variables is advantageous because it

Select an option to see the answer and solution.

The generic name used for unexpected errors that occur during the execution of a program is

Select an option to see the answer and solution.

You add the desired type to a specific template class instantiation by placing the type's name ______

Select an option to see the answer and solution.

The switch variable can be of

Select an option to see the answer and solution.

Reference variables and const class members _____

Select an option to see the answer and solution.

You can code a default exception handler by creating a catch block

Select an option to see the answer and solution.

Which of the following are void functions?

Select an option to see the answer and solution.

Hiding individual components of an entry is _____

Select an option to see the answer and solution.

When all of the operations in a function contribute to the performance of only one task, a function has

Select an option to see the answer and solution.

A function that uses variable types is called __________

Select an option to see the answer and solution.

Having more than one function with the same name is called

Select an option to see the answer and solution.

An object is _____

Select an option to see the answer and solution.

Two access specifers in C++ are

Select an option to see the answer and solution.

A data member holds a 1 or 0 depending on whether taxes have been paid. The best identifier for this member is _____

Select an option to see the answer and solution.

Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access

Select an option to see the answer and solution.