1) The pointers which are not initialized in a program are called ……………..
Ans: null pointers
2) Which function return the current position of the get or put pointer in bytes.
Ans: tellp( )
3) What are the escape sequences?
Ans: Set of characters that convey special meaning in a program
4) Because the lifetime of a local variable is limited and determined automatically, these variables are also called ……………………….
Ans: automatic
5) What are the formal parameters in C++?
Ans: Parameters which are used in the definition of the function
6) The ……………. inherits some or all of the properties of the ……….. class.
Ans: derived, base
7) To overload an operator ………………… keyword must be used along with the operator to be overloaded.
Ans: Operator
8) Which function is used to read a single character from the console in C++?
Ans: cin.get(ch)
9) In compile-time polymorphism, a compiler is able to select the appropriate function for a particular call at the compile time itself, which is known as …………
Ans: All of the above
10) Which function is used to write a single character to console in C++?
Ans: cout.put(ch)
11) What does the cerr represent?
Ans: Standard error stream
12) When a base class is privately inherited by derived class public members of the base class can only be accessed by the ……… of the derived class.
Ans: member functions
13) Which of the following escape sequence represents tab?
Ans: \t
14) Which of the following statements is incorrect?
Ans: Destructor of base class should always be virtual.
15) How many ways of reusing are there in class hierarchy?
Ans: 2
16) How many ways of reusing are there in class hierarchy?
Ans: VAR_1234
17) In C++ ………………… operator is used for Dynamic memory allocation.
Ans: New
18) Class templates are generally used for storage classes.
Ans: Public members of the base class become public members of derived class.
19) A class can be derived from another derived class which is known as ………. inheritance.
Ans: multilevel
20) A derived class with only one base class is called …………… inheritance.
Ans: Single
21) When Virtual Table is created?
Ans: Class has atleast one Virtual Function
22) Constructor is executed when _____.
Ans: An object is created
23) Which of the following keywords is used to control access to a class member?
Ans: Protected
24) …………………… is useful in creating objects at run time.
Ans: Object pointer
25) Which of the following is a valid class declaration?
Ans: Class A { int x; };