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

25/27

Page

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

Which of the following is NOT included in the header of a function?

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.

The logical NOT operator represented by is a

Select an option to see the answer and solution.

When variables refer to attributes of an entity (such as name, address, and phone number of a person), those attributes form a _____

Select an option to see the answer and solution.

A derived class _____ override attributes of a parent class

Select an option to see the answer and solution.

Which of the following is false?

Select an option to see the answer and solution.

A function's single most important role is to

Select an option to see the answer and solution.

The delete operator returns ______ to the operating system

Select an option to see the answer and solution.

The major advantage of data hiding is that _____

Select an option to see the answer and solution.

The letter V is a _____

Select an option to see the answer and solution.

Separating parts of a program into units that remain unaffected by other parts of a program is the concept known as _____

Select an option to see the answer and solution.

A function whose purpose is to send messages to other functions is known as a _____

Select an option to see the answer and solution.

With commercial classes, the function source code is usually________

Select an option to see the answer and solution.

The type of value that a function sends back to the function that calls it is known as its _____

Select an option to see the answer and solution.

Assume that a program includes the short *agePtr = NULL; statement. The name of the pointer is _____

Select an option to see the answer and solution.

Which of the following are never inherited?

Select an option to see the answer and solution.

The expression c = i++ causes

Select an option to see the answer and solution.

An identifier in C

Select an option to see the answer and solution.

Which of the following creates a String named constant called partNo, whose value is AB45?

Select an option to see the answer and solution.

The bitwise AND operator is represented by the symbol

Select an option to see the answer and solution.