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

16/27

Page

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

A function that is called automatically each time an object is created is a(n)

Select an option to see the answer and solution.

A variable's _____ indicates how long the variable remains in the computer's memory

Select an option to see the answer and solution.

The function whose prototype is void getData(Item *thing); receives

Select an option to see the answer and solution.

You may override the class access specifier for _____

Select an option to see the answer and solution.

The null character needs a space of

Select an option to see the answer and solution.

The number of structures than can be declared in a single statement is

Select an option to see the answer and solution.

The cout << sales[0] + sales[1]; statement will ______

Select an option to see the answer and solution.

The most efficient data type for a variable that stores the letter C is the _____ data type

Select an option to see the answer and solution.

The C++ operator used to allocate memory is _________

Select an option to see the answer and solution.

Assume that your version of C++ can recognize only the first 8 characters of an identifier name, through identifier names may be arbitrarily long. Which of the following identifier names is not distinct:

Select an option to see the answer and solution.

Object is to class as _____

Select an option to see the answer and solution.

A derived class may also be called a

Select an option to see the answer and solution.

The C++ keyword for declaring a variable that contains a decimal point is _____

Select an option to see the answer and solution.

When you define an object that is a member of a class, such as Student Abby; _____

Select an option to see the answer and solution.

A program can directly access the _____ members of a class

Select an option to see the answer and solution.

Any output manipulator function you create _____

Select an option to see the answer and solution.

To pass an array by reference, you

Select an option to see the answer and solution.

The instructions you enter into the computer are called the _____

Select an option to see the answer and solution.

The String data type is an extension of the _____ data type

Select an option to see the answer and solution.

An advantage of using local variables is that _____

Select an option to see the answer and solution.