Object-Oriented Programming (OOP) SPPU Endsem Question Paper May 2024
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
- May 2024
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- IV
- Paper code
- [6261]-24
Printed for: S.E. (Electronics/E & TC) (Electronics & Computer Engineering)
Instructions to the candidates
- Attempt 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 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]
- c)[6]
- a)
Q3
- a)[6]
Explain virtual base class and virtual function with example.
Also asked:Dec 2025
- b)[6]
Discuss the ways in which inheritance promotes software reuse, saves time during program development and helps prevent errors.
Also asked:Dec 2025
- 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 arisesin multiple inheritance? How it can be overcome? Explain with example. 2
- 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