What is inline function? Why it is used? Write a program to illustrate inline function.[5]
2.
What are the various class access specifies? How public inheritance differs from private inheritance?[5]
3.
How dynamic memory allocation is done using new and delete? Write program for illustrating use of new and delete.[5]
Classes & Objects
1.
What is aggregation? Write a program for implementing following: Create a class author with attributes name and qualification. Also create a class publication with name. Form these classes to derive a class book having attribute title and price. Each of three classes should have a getdata() method to get their data from user. The classes should have putdata() method to display the data. Create instances of the class book in main.[10]
2.
What is the use of constructor and destructor? Write a program for illustrating default constructor, parameterized constructor and copy constructor.[10]
3.
Define class and object with suitable examples. How members of class can be accessed?[5]
File handling
1.
Write a program to illustrate the use of seekg() and tellg().[5]
Function Templates and Exception Handling
1.
Write a program to implement function template with multiple arguments.[5]
Introduction to Object Oriented Programming
1.
Describe the characteristics of object oriented programming languages.[5]
Operator Overloading
1.
What is operator overloading? Why it is necessary to overload and operator? Write a program for overloading comparison operators.[10]
2.
What are possible data conversion types? Write a program to show basis to user defined conversion.[5]
Virtual Function, Polymorphism, and miscellaneous C++ Features
1.
Write short note on: a) Friend Function b) Early binding and late binding[5]