Object-Oriented Programming (OOP) SPPU Endsem Question Paper Dec 2025
All 8 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.
- Subject code
- 204194
- Pattern
- 2019 pattern
- Exam
- Endsem
- Session
- Dec 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- IV
- Paper code
- [6582]-24
Printed for: S.E. (Electronics / E & TC/E E(VLSI Design & Tech. /
Instructions to the candidates
- Answer Q.1 or Q.2, Q.3 or Q.4, Q.5 or Q.6, Q.7 or Q.8.
- Neat diagrams must be drawn wherever necessary.
- Figures to the right side indicate full marks.
- Use of calculator is allowed.
- Assume suitable data if necessary.
Questions
Q1
ORQ2
- a)[6]
Explain friend function with example?
- b)[6]
Write a program to overload pre and post increment operators for Complex class.
- c)[6]
- a)
Q3
- a)[6]
Explain virtual base class and virtual function with example?
Also asked:May 2024
- b)[6]
Discuss the ways in which inheritance promotes software reuse, saves time during program development and helps prevent errors.
Also asked:May 2024
- c)[5]
What does inheritance mean in C++? What are different forms of inheritance? Give an example of each.
OR- a)
Q4
- a)[6]
Write a C++ program demonstrating use of the pure virtual function with the use of base and derived classes.
- b)[6]
Discuss the role of access specifiers in inheritance and show their visibility when they are inherited as public, private and protected.
- c)[5]
What is the ambiguity that arises in multiple inheritance? How it can be overcome. Explain with example.
- a)
Q5
ORQ6
- a)[6]
Explain Namespace in C++ with example?
- b)[6]
Write a C++ program using function template to find the product of two integer or floating-point type of data.
- c)[6]
What is a user defined exception? Write down the scenario where we require user defined exceptions.
- a)
Q7
ORQ8