Object Oriented Programming (OOP) SPPU Endsem Question Paper Jan 2024
All 8 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Subject code
- 210243
- Pattern
- 2019 pattern
- Exam
- Endsem
- Session
- Jan 2024
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- III
- Paper code
- [6179]-242
Printed for: S.E. (Computer / Computer Science & Design Engg./ A.I&D.S.)
Instructions to the candidates
- Answer Q.No.1 or Q.No.2, Q.No.3 or Q.No.4, Q.No.5 or Q.No.6, Q.No.7 or Q.No.8.
- Neat diagrams must be drawn wherever necessary.
- Assume suitable data if necessary.
- Use of Calculator is allowed.
Questions
Q1
ORQ2
- a)[5]
What is operator overloading and why it is useful? Which Operators cannot be overloaded.
- b)[6]
How virtual functions are implemented in C++? Explain with help of a program.
- c)[6]
Write a program to binary (+) and binary (-) operator in C++.
- a)
Q3
- a)[5]
Explain the use of command line arguments. If we want to pass command line arguments what will be prototype of main function and explain its arguments along with example.
- b)[6]
This part has equations that don’t show as text. Open the PDF to read it.
- c)[7]
Write a program Using the C++ file input and output class with open(), get(), put(),close() methods for opening, reading from and writing to a file. Use append mode while opening the file for writing. 2
OR- a)
Q4
- a)[5]
List and Explain different Mode bits used in open () function, while opening a file. (Any five).
- b)[6]
Define a class Person that has three attributes viz name, gender and age. Write a C++ Program that writes an object to a file and reads an object from a file.
- c)[7]
Explain what is fstream, ifstream and ofstream with help of example? Provide the hierarchy of stream classes in C++.
- a)
Q5
- a)[5]
Discuss exception handling mechanism in C++ with syntax.
Also asked:Dec 2025
- b)[6]
Write a program to handle exception using class type exception.
- c)[6]
Demonstrate function template with suitable code in C++.
OR- a)
Q6
- a)[5]
Explain exception handling in constructor, destructor.
- b)[6]
Write a program to demonstrate class template with example.
- c)[6]
Demonstrate overloading function template with suitable code in C++.
- a)
Q7
- a)[5]
What is an iterator? Explain how to use an iterator in C++ program with example.
- b)[6]
What is an algorithm in STL? Enlist algorithms and explain any algorithm in detail.
- c)[7]
This part has equations that don’t show as text. Open the PDF to read it.
OR- a)
Q8
- a)[5]
What is STL? Enlist and explain in short major components of STL.
- b)[6]
What is iterator and algorithm? Explain each of them with example.
- c)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- a)