Jump to Year/Set
Instructions:
- There are Nine Questions in this Paper.
- Attempt Five questions in all.
- Question No. 1 is Compulsory.
- The marks are indicated in the right hand margin.
Questions
Explain briefly about the following terms (any seven):
Overloading
Overriding
C++ STL
Constructor
Destructor
Inheritance
Encapsulation
Templates
Protected variable
Private function
Write a C++ program to overload '-' operator to calculate age from date of birth and current date.
Answer the following:
What is a friend function and what are its advantages?
What are the guidelines that should be followed while using friend function?
Compare overloading and overriding of function with example.
What is exception handling? Write a C++ program to demonstrate the 'try', 'catch' and 'throw' keywords?
Define C++ classes to represent the information of an ORGANISATION having EMPLOYEES and CLIENTS. Provide subclasses MANAGER, CLERK and SUPPORT_STAFF. In this organisation employees work on projects requested by clients.
Answer the following:
What is virtual function? Explain with an example.
Explain the abstract class with an example.
Explain inline functions with an example program. What are the conditions, where inline functions cannot be expanded?
Answer the following:
What is the difference between compile time and run time errors? What is the use of stack unwinding in exception handling?
Discuss void, this and const pointers.