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

3/27

Page

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

Sending a copy of data to a program module is called _______

Select an option to see the answer and solution.

Of the three ways to pass arguments to functions, only passing by _____ and passing by _____ allow the function to modify the argument in the calling program

Select an option to see the answer and solution.

To use either an input or output file, the program must include the _____ header file

Select an option to see the answer and solution.

A widget is to the blueprint for a widget as an object is to

Select an option to see the answer and solution.

C++ allows you to define the same functions more than once in the same program _____

Select an option to see the answer and solution.

Which of the following assigns the number 5 to the area variable?

Select an option to see the answer and solution.

A base class may also be called a

Select an option to see the answer and solution.

The _____ mode tells C++ to open a file for input

Select an option to see the answer and solution.

Using the wardrobe structure within the ShopList structure is an example of a good programming principle, known as _____

Select an option to see the answer and solution.

When you omit parameters from a function call, values can be provided by

Select an option to see the answer and solution.

The first element in a string is

Select an option to see the answer and solution.

Variables declared outside a block are called _____

Select an option to see the answer and solution.

The compiler converts your C++ instructions into _____

Select an option to see the answer and solution.

A fundamental type such as int or double is a _____

Select an option to see the answer and solution.

The return type you code for all constructors is _____

Select an option to see the answer and solution.

When an object-oriented program detects an error within a function, the function _________

Select an option to see the answer and solution.

Using a statement at the wrong time or with an inappropriate object creates a

Select an option to see the answer and solution.

When you create a derived class and instantiate an object _____

Select an option to see the answer and solution.

Evaluate the following expression: 4 >6 || 10 < 2 * 6

Select an option to see the answer and solution.

A constructor always has

Select an option to see the answer and solution.