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

19/27

Page

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

Which of the following is an access specifier?

Select an option to see the answer and solution.

Machine code is _____

Select an option to see the answer and solution.

The contents of two pointers that point to adjacent of type float differ by

Select an option to see the answer and solution.

Which of the following is a valid condition for an if statement? (The condition should be both syntactically and logically valid.)

Select an option to see the answer and solution.

A pattern for creating an object is called a(n) _____

Select an option to see the answer and solution.

An asterisk placed after a data type means

Select an option to see the answer and solution.

An object is a(n) _____ of a class

Select an option to see the answer and solution.

Which of the following statements creates and initializes a pointer named salesPtr?

Select an option to see the answer and solution.

With communicational cohesion

Select an option to see the answer and solution.

The function printDataMembers() is not likely a(n) ________

Select an option to see the answer and solution.

The data type listed at the beginning of a value-returning function's header indicates the type of data the function will _____

Select an option to see the answer and solution.

The code class Descendant : virtual public Ancestor indicates that

Select an option to see the answer and solution.

Inheritance is the principle that

Select an option to see the answer and solution.

Which of the following formulas can be used to generate random integers between 1 and 10?

Select an option to see the answer and solution.

Format flags may be combined using the _____

Select an option to see the answer and solution.

Which of the following will store the number 320000 as a Float number?

Select an option to see the answer and solution.

The arguments that determine the state of the cout object are called

Select an option to see the answer and solution.

If a class will serve as a base class, most often the base class data members are

Select an option to see the answer and solution.

You can use the C++ _____ function to assign a value to a String variable

Select an option to see the answer and solution.

A measure of the strength of the connection between two functions is

Select an option to see the answer and solution.