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

20/27

Page

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

The following statement where T is true and F is false T&&T||F&&T

Select an option to see the answer and solution.

Which of the following statements declares a variable that can contain a decimal number?

Select an option to see the answer and solution.

The statement int num[2][3] = {{1,2}, {3,4}, {5, 6}};

Select an option to see the answer and solution.

A program will have one function prototype for each function defined in the programmer-defined section of the program. (Assume that the programmer-defined section is located below the main function.)

Select an option to see the answer and solution.

The standard input stream, which refers to the keyboard, is called

Select an option to see the answer and solution.

If the code and fee arrays are parallel, the fee that corresponds to the code stored in the code[3] element is located in the _____ element

Select an option to see the answer and solution.

Access specifiers are followed by

Select an option to see the answer and solution.

Elements in an array are identified by a unique _____

Select an option to see the answer and solution.

To include the double quotes as part of the control string we use the symbol

Select an option to see the answer and solution.

A C++ statement must end in a

Select an option to see the answer and solution.

Student senior(); is a(n)_________

Select an option to see the answer and solution.

The statement int n[4] = {11, -13, 17, 105};

Select an option to see the answer and solution.

Programmer-defined functions can be

Select an option to see the answer and solution.

A class D can be derived from a class C, which is derived from a class B, which is derived from a class A

Select an option to see the answer and solution.

To use the strcpy function, you must include the _____ header file in your program

Select an option to see the answer and solution.

The number of the relational operators in the C language is

Select an option to see the answer and solution.

Which of the following tells C++ to display numbers with two decimal places?

Select an option to see the answer and solution.

A function that is called automatically each time an object is destroyed is a

Select an option to see the answer and solution.

We can output text to an object of class ofstream using the insertion operator « because

Select an option to see the answer and solution.

The operator that allocates new memory is _____

Select an option to see the answer and solution.