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

6/27

Page

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

When the function int someFunction(char c) throw( ) is executed, _____

Select an option to see the answer and solution.

The two statements that can be used to change the flow of control are

Select an option to see the answer and solution.

If p and q are assigned the values 2 and 3 respectively then the statement p = q++

Select an option to see the answer and solution.

Which of the following is the insertion operator?

Select an option to see the answer and solution.

If you want only one memory location to be reserved for a class variable, no matter how many objects are instantiated, you should declare the variable as

Select an option to see the answer and solution.

To use a template class member function, use the ________ with the instantiation

Select an option to see the answer and solution.

When a class is derived from another derived class, the newly derived class

Select an option to see the answer and solution.

If you assign a default value to any variable in a function prototype's parameter list, then _____

Select an option to see the answer and solution.

The dot operator (or class member access operator) connects the following two entities (reading from left to right):

Select an option to see the answer and solution.

Which of the following calls a function named displayName, passing it no actual arguments?

Select an option to see the answer and solution.

The feature that allows you to use the same function name for separate functions that have different argument lists is called _____

Select an option to see the answer and solution.

Which of the following are valid characters constants?

Select an option to see the answer and solution.

With a template class, _____ type is generic

Select an option to see the answer and solution.

If you want to use a class to define objects in many different programs, you should define the class in a C++ _____ file

Select an option to see the answer and solution.

Functions that returns information about an object's state can be classified as ________

Select an option to see the answer and solution.

An auxiliary function _____

Select an option to see the answer and solution.

To create and execute a C++ program, you need to have access to

Select an option to see the answer and solution.

If you omit any constructor argument when you instantiate an object, you must use default values______

Select an option to see the answer and solution.

Many programmers separate a class into two files: _____

Select an option to see the answer and solution.

Files whose names end in .h are called _____ files

Select an option to see the answer and solution.