
throw raises an exception.
Without a base case, recursion may become infinite.
Derived destructor runs first, then base destructor.
Overloading changes behavior, not precedence/associativity rules.
Overloading is resolved at compile time (static binding).
Reference parameters like int &x allow modifying the original argument.
C++ uses new/delete for dynamic allocation.
Friendship is not inherited (and not transitive by default).
cin and cout are defined in .
Constructors do not have any return type.
File stream classes are provided by .
Multiplication has higher precedence than addition.
*p dereferences pointer p.
Hierarchical: one base with multiple derived classes.
:: (scope resolution) cannot be overloaded.
Encapsulation bundles data members and member functions.
getline() reads an entire line.
:: cannot be overloaded.
Inlining can reduce call overhead for small frequently-called functions.
Class templates are used like Box<int>.
Sign in to access the complete question paper
It's free and takes just 5 seconds