1 (a)
Describe the following characteristics of object oriented programming:
(i) Encapsulation (ii) Polymorphism (iii) Inheritance
(i) Encapsulation (ii) Polymorphism (iii) Inheritance
8 M
1 (b)
Write the general form of function. Explain the different types of argument passing techniques, with example.
8 M
1 (c)
What are pointers? Explain with example.
4 M
2 (a)
What is class? How it is created? Write a C++ programme to create a class called employee with data members: name, age and salary . Display at least '5' employee information.
10 M
2 (b)
What are constructors? How is a constructor different from member function? Illustrate with example.
6 M
2 (c)
What is data hiding? How it is achieved in C++? Explain with example.
4 M
3 (a)
What are friend functions? Why they are required? Illustrate with example.
10 M
3 (b)
What is the use of operator overloading? Write a programme to overload the following operators:
(i) Pre-increment (ii) Post-decrement operators.
(i) Pre-increment (ii) Post-decrement operators.
10 M
4 (a)
What is inheritance? How to inherit a base class a protected? Explain the inheriting multiple base classes.
6 M
4 (b)
With an example, explain the inheriting multiple base classes.
6 M
4 (c)
Explain with example base class access control.
8 M
5 (a)
Explain the different order of invocation of constructors and destructors in inheritance, with simple example.
12 M
5 (b)
Explain with example, "granting access" with respect to inheritance.
8 M
6 (a)
What are virtual functions> What is the need of virtual function? How is early binding is different from late binding?
6 M
6 (b)
What is pure virtual function? Explain with an example.
8 M
6 (c)
How to inherit a virtual attributes? Explain with example.
6 M
7 (a)
What is exception handling? Write a C++ programme to demonstrate the "try", "throw" and "catch" keywords for implementing exception handling.
10 M
7 (b)
What is standard template library (STL)? List and explain any five member functions from "list" and "vector" classes.
10 M
Write short notes on:
8 (a)
C++ stream classes
5 M
8 (b)
File operation
5 M
8 (c)
Function overloading
5 M
8 (d)
Inline function
5 M
More question papers from Object Oriented Programming with C++