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

21/27

Page

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

A comment

Select an option to see the answer and solution.

Which of the following is(are) valid identifier(s)?

Select an option to see the answer and solution.

The functions go in the _____ section of a class definition

Select an option to see the answer and solution.

You can throw _____

Select an option to see the answer and solution.

You invoke a function with a function

Select an option to see the answer and solution.

Which is a good guideline for creating function names?

Select an option to see the answer and solution.

Reserving memory during program execution is known as reserving it

Select an option to see the answer and solution.

"Rohan Motors" is a _____

Select an option to see the answer and solution.

A programming structure that contains data and a pointer to the next object is a

Select an option to see the answer and solution.

A variable declared in a function is called a(n) _____ variable

Select an option to see the answer and solution.

When you write to a file rather than the screen, you use the C++ class _____

Select an option to see the answer and solution.

Which of the following numerical value(s) is(are) invalid constant(s)?

Select an option to see the answer and solution.

To use the this pointer with a member function, you _____

Select an option to see the answer and solution.

A function that is prototype as int calculate(int num); may

Select an option to see the answer and solution.

A do-while loop contains

Select an option to see the answer and solution.

The braces that surround the code in a 'C program

Select an option to see the answer and solution.

The indirection operator is the

Select an option to see the answer and solution.

Local variables _____

Select an option to see the answer and solution.

# directives must be present

Select an option to see the answer and solution.

Programmers prefer to declare almost all variables _____

Select an option to see the answer and solution.