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

23/27

Page

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

A class named Student must have a constructor whose name is

Select an option to see the answer and solution.

To write data that contains variables of type float, to an object of type ofstream, you should use

Select an option to see the answer and solution.

The main difference in operation between an 'if statement and a 'while' statement is

Select an option to see the answer and solution.

If a class object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is_________

Select an option to see the answer and solution.

The weakest form of cohesion is

Select an option to see the answer and solution.

The 'continue' statement is used to

Select an option to see the answer and solution.

The 'break' statement is used to exist from

Select an option to see the answer and solution.

You have assigned the address of Value to the pointer P, Which statement will display the value stored in Value?

Select an option to see the answer and solution.

A constructor initialization list is preceded by

Select an option to see the answer and solution.

In C++, a function contained within a class is called

Select an option to see the answer and solution.

Which of the following statements will create and initialize a feelnfo array named fee?

Select an option to see the answer and solution.

Which of the following is the scope resolution operator?

Select an option to see the answer and solution.

If the description of function is "input the quantity, validate that the quantity is greater than 1, subtract 1 from the quantity and print the quantity," the function is

Select an option to see the answer and solution.

A function that changes an object's state belongs to the category of

Select an option to see the answer and solution.

Which of the following pairs of identifier name(s) are(is) considered to be identical?

Select an option to see the answer and solution.

When you create a derived class and instantiate on object

Select an option to see the answer and solution.

The int type of constants are whole numbers in the range

Select an option to see the answer and solution.

When the function char someFunction(int x) is executed,

Select an option to see the answer and solution.

One way in which a structure differs from an array is that

Select an option to see the answer and solution.

Variables that hold memory addresses are called _____

Select an option to see the answer and solution.