SPPU Computer Engineering (Semester 3)
Object Oriented Programming
May 2017
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


Solve any one question from Q.1(a,b) &Q.2(a,b)
1(a) Explain friend function with example.
4 M
1(b) Consider the following declaration:
class TRAIN
{
int trainno;
char dest [20];
float distance;
public:
void get ( ); //To read an object from the keyboard
void put ( ); // To write an object into a file
void show ( ); //To display the file contents on the monitor
};
Complete the member functions definitions
8 M

2(a) List the features of Object-oriented programming.
3 M
2(b) What is Pointer, Smart Pointer and Shared Pointer. Explain using diagram and program
9 M

Solve any one question from Q.3(a,b,c) & Q.4(a,b)
3(a) What is exceptional handling?
3 M
3(b) Explain:
i) Virtual base class
ii) Abstract Class
4 M
3(c) What is generic programming? How is it implemented in C++?
5 M

4(a) Explain class template using multiple parameters. Write a program in C++.
8 M
4(b) Explain the significance of Static keyword in programming
4 M

Solve any one question from Q.5(a,b) & Q.6(a,b)
5(a) Write the C++ file input and output program using seekg( ), tellg( ), read( ) etc member functions.
7 M
5(b) What are cin and cout? Explain iostream.
6 M

6(a) What are various functions which are used to manipulate file pointers? Explain using examples.
7 M
6(b) Explain command line arguments in C++. Write program to explain it same.
6 M

Solve any one question from Q.7(a,b) &Q.8(a,b)
7(a) Use minmum 8 functions of vector STL. Write a program to explain the same.
7 M
7(b) What is STL? List different types of STL containers.
6 M

8(a) Write a program to implement Map using STL
6 M
8(b) What is container? List the conatiner classes in C++. Explain any one them using program.
7 M



More question papers from Object Oriented Programming
SPONSORED ADVERTISEMENTS