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

27/27

Page

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

You define a structure type globally because

Select an option to see the answer and solution.

The standard output stream, which refers to the computer screen, is called

Select an option to see the answer and solution.

Which of the following operators is the equality operator?

Select an option to see the answer and solution.

In C++, you use _____ to perform standard input and output operations

Select an option to see the answer and solution.

Values that are used to end loops are referred to as _____ values

Select an option to see the answer and solution.

Which of the following flowchart symbols represents the if selection structure?

Select an option to see the answer and solution.

Two or more arrays whose elements are related by their position (subscript) in the arrays are called _____ arrays

Select an option to see the answer and solution.

Assume that a program creates and initializes a Short Integer variable named age and a pointer named agePtr, to which it assigns the address of the age variable. Which of the following statements will assign the number 21 to the age variable?

Select an option to see the answer and solution.

The statement fwrite ( (char*)&objl, sizeof(objl) );

Select an option to see the answer and solution.

The body of a C++ function is surrounded by _____

Select an option to see the answer and solution.

Which of the following type casts will convert an Integer variable named amount to a Double type?

Select an option to see the answer and solution.

The loosest type of coupling is

Select an option to see the answer and solution.

Which of the following is a string literal constant?

Select an option to see the answer and solution.

Which of the following, if any, are valid names for variables?

Select an option to see the answer and solution.

A child class _____ exist if there is no parent class

Select an option to see the answer and solution.