Skip to content
EndsemOct 20252024 patternSE AIML

Object Oriented Programming (OOP) SPPU Endsem Question Paper Oct 2025

All 10 questions from this SPPU endsem paper, as printed. Read them here or open the PDF.

Pattern
2024 pattern
Exam
Endsem
Session
Oct 2025
Max. marks
70
Time
2½ Hours
Semester
III
Paper code
[6582]-207

Printed for: S.E. (Artificial Intelligence & Machine Learning)

Instructions to the candidates

  1. Answer Q.1 or Q.2, Q3. or Q.4, Q.5 or Q.6, Q.7 or Q.8, Q.9 or Q.10.
  2. Neat diagrams must be drawn wherever necessary.
  3. Figures to the right indicate full marks.
  4. Assume suitable data, if necessary.

Questions

  1. Q1

    1. a)

      Why was procedural programming not sufficient for large-scale software development? Give technical reasons.

      [5]
    2. b)

      Define data encapsulation. How does it improve software robustness?

      [5]
    3. c)

      What is meant by class visibility modifiers? Why do we need them in designing a class?

      [4]
  2. Q2

    1. a)

      Explain dynamic binding using the concept of virtual functions.

      [5]
    2. b)

      What is polymorphism? Explain How polymorphism and inheritance are related?

      [5]
    3. c)

      Define abstraction and encapsulation. How are they implemented in class design?

      [4]
  3. Q3

    1. a)

      What is method overloading? How is it different from method overriding? Write a Java program that overloads a method to calculate simple and compound interest.

      [7]
    2. b)

      Explain array of objects with an example. Write a Java program to create an array of Employee objects and display the details of employees having salary above Rs. 50,000. P.T.O. SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Object Oriented Programming Page 1 of 2

      [7]
  4. Q4

    1. a)

      Explain object creation and memory allocation using new operator. Write a Java program demonstrating object creation and memory usage through multiple objects.

      [7]
    2. b)

      Discuss constructor overloading and show how it is used for flexible object initialization. Write a program to create Book objects using multiple constructors.

      [7]
  5. Q5

    1. a)

      List six distinctions between method overloading and method overriding.

      [6]
    2. b)

      Which inheritance is not supported in Java and Why?

      [4]
    3. c)

      Distinguish between compile time and runtime polymorphism.

      [4]
  6. Q6

    1. a)

      How does an interface differ from a class? Provide justification with example.

      [6]
    2. b)

      Explain multilevel inheritance with example.

      [4]
    3. c)

      Elaborate hierarchical inheritance by utilizing super with an example.

      [4]
  7. Q7

    1. a)

      Explain why exception handling is important in Java and write a program usin try, catch, and finally blocks.

      [7]
    2. b)

      What is the List interface in Java? Explain its key features and implementations.

      [7]
  8. Q8

    1. a)

      Explain the importance of Collection Interfaces in Java and their types.

      [7]
    2. b)

      Differentiate between errors and exceptions in Java. Give examples of each and explain when to handle them in a program.

      [7]
  9. Q9

    1. a)

      Differentiate between sequential files and random-access files.

      [6]
    2. b)

      What is a Design Pattern? Write a short note on ‘Iterator’ design pattern.

      [8]
  10. Q10

    1. a)

      Write program to handle primitive data types in file handling.

      [6]
    2. b)

      What are the advantages of design patterns? Explain ‘Adaptor’ design pattern in detail. ♣♣♣ SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Object Oriented Programming Page 2 of 2

      [8]