Skip to content

UGC NET CS 2019Programming Languages and Computer Graphics › Programming in C++Verified

UGC NET CS 2019 PYQ: Which of the following statements are true regarding $\text{C++}$? Overloading gives the capability to an…

Which of the following statements are true regarding $\text{C++}$?

  1. Overloading gives the capability to an existing operator to operate on other data types
  2. Inheritance in object oriented programming provides support to reusability
  3. When object of a derived class is defined, first the constructor of derived class is excecuted then constructor of a base class is executed
  4. Overloading is a type of polymorphism

Choose the correct option from those given below:

  1. A
    (i) and (ii) only
  2. B
    (i), (ii) and (iii) only
  3. C
    (i), (ii) and (iv) only
    Correct answer
  4. D
    (ii), (iii) and (iv) only

Answer

(C) (i), (ii) and (iv) only

Approach

Check each statement about C++ operator overloading, inheritance and constructor execution order, then pick the option containing exactly the true ones.

Reviewed by UGC IQ Editorial Team.