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
- 214444
- Pattern
- 2019 pattern
- Exam
- Endsem
- Session
- Dec 2025
- Max. marks
- 70
- Time
- 2½ Hours
- Semester
- III
- Paper code
- [6582]-62
Printed for: S.E. (Information Technology)
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 indicates full marks.
- Assume suitable data if necessary.
Questions
Q1
- a)[6]
Explain constructor overloading with an example.
- b)[6]
Write a program to find the area and perimeter of a circle using a constructor.
- c)[6]
Write a short note on ‘Copy Constructor’ in JAVA.
OR- a)
Q2
- a)[6]
What are the various types of constructors in JAVA? Explain anyone in detail with example.
- b)[6]
Explain the following terms : i) garbage collection ii) finalize () method iii) destructor
- c)[6]
Design a class ‘Complex’ with data members for the real and imaginary part. Provide default and Parameterized constructors. Write a program in JAVA to perform the addition of two complex numbers.
- a)
Q3
ORQ4
- a)[6]
Define multiple inheritance. How multiple inheritance is achieved in Java?
- b)[6]
Explain the constructor with a default argument with an example.
- c)[6]
Differentiate between method overriding and method overloading. 2
- a)
Q5
- a)[6]
Write a Java program to accept the age of a person. If entered negative age throw user-defined exception “Negative age”.
- b)[6]
Explain the following terms : i) try ii) finally iii) throws
- c)[5]
Explain the exception handling mechanism in Java with an example.
Also asked:Jan 2024
OR- a)
Q6
- a)[6]
Explain : i) ArrayList Class ii) LinkedList Class.
- b)[6]
Explain how user-defined exceptions can be handled.
- c)[5]
Write a program to write a generic function and demonstrate swapping of multiple types of data using the same.
- a)
Q7
- a)[6]
Define Stream. Enlist various Stream Classes in Java. Explain anyone in detail.
- b)[6]
Write a short note on : i) Adaptor ii) Singleton
- c)[5]
Write a Java program to copy the content of the file “file1.txt” into a new file “file2.txt”.
OR- a)
Q8
- a)[6]
What is a design pattern? Enlist the types of design patterns. Explain anyone with an example.
- b)[6]
Implement a program for maintaining a database of employee records using Files. Employee has Emp_id, Emp_name, Emp_salary, Emp_designation. Display the data for a few employees. • Create Database • Display Database • Delete Records • Update Record • Search Record
- c)[5]
This part has equations that don’t show as text. Open the PDF to read it.
- a)