Object Oriental Programming
Jump to paper
2016051301
B.Tech 3rd Semester Examination, 2016
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
Ask AI
Q1
Explain briefly about the following terms (any seven):
a)Overloading
b)Overriding
c)C++ STL
d)Constructor
e)Destructor
f)Inheritance
g)Encapsulation
h)Templates
i)Protected variable
j)Private function
14 marksAsk AI
Q2
Write a C++ program to overload '-' operator to calculate age from date of birth and current date.
14 marksAsk AI
Q3
Answer the following:
a)7 marksWhat is a friend function and what are its advantages?
b)7 marksWhat are the guidelines that should be followed while using friend function?
14 marksAsk AI
Q4
Compare overloading and overriding of function with example.
14 marksAsk AI
Q5
What is exception handling? Write a C++ program to demonstrate the 'try', 'catch' and 'throw' keywords?
14 marksAsk AI
Q6
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.
14 marksAsk AI
Q7
Answer the following:
a)7 marksWhat is virtual function? Explain with an example.
b)7 marksExplain the abstract class with an example.
14 marksAsk AI
Q8
Explain inline functions with an example program. What are the conditions, where inline functions cannot be expanded?
14 marksAsk AI
Q9
Answer the following:
a)7 marksWhat is the difference between compile time and run time errors? What is the use of stack unwinding in exception handling?
b)7 marksDiscuss void, this and const pointers.
14 marksAsk AI