Classes, Inheritance and basic OOPS concept Test

This Test will consists of mixed questions. CLasses, OOPS concepts, and expression evaluation etc.

Q. Which feature allows you to create a Derived class that inherits properties from more than one Base class?
Q. Which feature in Object Oriented Programming allows reusing code?
Q. A function that changes the state of the cout object is called _______?
Q. What does C++ append to the end of a string literal constant?

Q. An array element is accessed using _______ .
Q. To hide a data member from the program, you must declare the data member in the _______ section of the class.
Q. What is the Output of this Program?
#include <iostream>
using namespace std;

class sample
  int a, b;
  void test()
    a = 100;
    b = 200;
    friend int compute(sample e1);

int compute(sample e1)
  return int(e1.a + e1.b) - 5;

int main()
  sample e;
  return 0;
Q. The function whose prototype is void getData(Item *thing); receives ________ .
Q. Null character needs a space of _______ .

Q. The number of structures that can be declared in a single statement is _______ ?
Q. Which of the following formulas can be used to generate random integers between 1 and 10?
Q. Format flags may be combined using the _______.
Q. Which of the following will store the number 320000 as a Float number?
Q. Which other keywords are also used to declare the class other than class?
Q. The following statement where T is true and F is false,T && T || F && T _______ .