SET 5 TECHNICAL INTERVIEW QUESTIONS ON C++
1. Select the correct Statements
(a) A destructor is not inherited (b) A constructor cannot be called explicitly
(c) A destructor can be called explicitly (d) A contructor is not inherited
2. The compiler identifies a virtual function to be pure
(a) by the presence of keyword PURE (b) by its location in the program
(c) if it is equated to 0 (d) none of the above
3. A class having no name
(a) is not allowed
(b) cannot have a contructor
(c) cannot have a destructor
(d) cannot be passed as argument
4. For a method to be an interface between the outside world and a class it has to be declared
(a) private (b) protected (c) public (d) external
5. COUT Stands for
(a) class output (b) character output (c) common output (d) call output
NEXT SET 6 ||| PREVIOUS SET 4
No comments:
Post a Comment