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++}$?
- Overloading gives the capability to an existing operator to operate on other data types
- Inheritance in object oriented programming provides support to reusability
- When object of a derived class is defined, first the constructor of derived class is excecuted then constructor of a base class is executed
- Overloading is a type of polymorphism
Choose the correct option from those given below:
- A(i) and (ii) only
- B(i), (ii) and (iii) only
- C(i), (ii) and (iv) onlyCorrect answer
- 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.