Question Bank
UNIT-1:
Introduction to C++
1. Describe the following characteristics of OOP .
i Encapsulation
ii Polymorphism,
iii Inheritance
2. Discuss function prototyping, with an example. Also write its advantage .
3. Write the general form of function. Explain the different types of argument passing
techniques with example.
4. Define the ‘this’ pointer, with an example, indicate the steps involved in referring to
members of the invoking object.
5. Discuss the issues of procedure oriented systems with respect to object oriented
systems?
6. Why C++ introduced reference variable?
7. Give the comparison of C and C++ with examples..
8. What are pointers explain with an example. . .
9. What is function overloading give example?.
10. Differentiate between procedure oriented and object oriented programming.
11. Explain inline functions? .
1
, UNIT-2:
Classes &Objects
1. Write a C++program t o count the number of objects of a certain class.
2.What is a class? How is it created? Write an example class.
3. What are constructors? How are they different from member functions?
4. What are static data members? Explain with an example what the use of static
data members is.
5. Demonstrate with C++ program for
i) Passing objects to functions ii) Returning objects
UNIT-3
Classes&ObjectsII
1. Explain the features of new and delete?
2. What is the benefit of copy constructor? Explain the necessity of defining your
own copy constructor?.
3. What is a friend function? Why is it required? Explain with an example.
4. What is the use of operator overloading? Write a program to overload post and
pre increment operators.
5. Explain Generic function with example..
2