Wednesday 18 June 2014

TECHNICAL INTERVIEW AND PRACTICE QUESTIONS ON C++ -- SET 5



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



CLICK HERE TO SEE THE ANSWER

ANSWER IS (a) , (b) and (d)


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


CLICK HERE TO SEE THE ANSWER

ANSWER IS (b) , (c) and (d)





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


CLICK HERE TO SEE THE ANSWER

ANSWER IS   (c).




NEXT SET 6 ||| PREVIOUS SET 4

No comments:

Post a Comment