Skip to content
EndsemMay 20242019 patternSE IT

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
214444
Pattern
2019 pattern
Exam
Endsem
Session
May 2024
Max. marks
70
Time
2½ Hours
Semester
III
Paper code
[6261]-62

Printed for: S.E. (I.T.)

Instructions to the candidates

  1. Answer Q1 or Q2, Q3 or Q4, Q5 or Q6, Q7 or Q8.
  2. Neat diagram must be drawn wherever necessary
  3. Figures to the right side indicate full marks.
  4. Assume suitable data if necessary.

Questions

  1. Q1

    1. a)

      Write a short note on ‘Symbolic Constants’ in Java.

      [9]
    2. b)

      Discuss Constructor Overloading with suitable code.

      [9]
  2. Q2

    1. a)

      How are objects initialized dynamically? Explain with an example.

      [9]
    2. b)

      What is garbage collection in OOP? Explain finalize() method in Java.

      [9]
  3. Q3

    1. a)

      Define a class ‘shape’ with abstract method compute_area(). Derive the classes ‘circle’ and ‘rectangle’ from ‘shape’ class. Calculate the area of circle and rectangle using Dynamic Binding. Use appropriate instance variables and methods whenever necessary.

      [9]
    2. b)

      Discuss diamond problem in detail? How it can be solved?

      [8]
  4. Q4

    1. a)

      Design a class ‘person1’ with instance variables ‘name’ and ‘age’. Derive a class ‘person2’ from ‘person1’ class with instance variable ‘gender’.Derive a class ‘employee’ from ‘person2’ class with instance variable ‘address’. Create a database of the 3 employees. Use the appropriate methods to accept and display the data.

      [9]
    2. b)

      Define Polymorphism? Differentiate between Compile Time Polymorphism and Run Time Polymorphism with an example. 2

      Also asked:Dec 2025 ·Jan 2024

      [8]
  5. Q5

    1. a)

      Can we throw an exception explicitly or manually? If ‘yes’, justify your answer with an example.

      [9]
    2. b)

      What is Generic Programming? Discuss any four methods of LinkedList class with their syntax.

      [9]
  6. Q6

    1. a)

      Differentiate between an array and ArrayList class. Explain following methods of ArrayList class. i) add() ii) get() iii) remove()

      [9]
    2. b)

      Implement a program which handle Arraylndex Out of Bound Exception

      [9]
  7. Q7

    1. a)

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

      [9]
    2. b)

      How do you write to a file and read from a file using FileWriter and FileReader class, respectively?

      [8]
  8. Q8

    1. a)

      How are input/output exceptions handled in File Handling? Explain with an example

      [9]
    2. b)

      This part has equations that don’t show as text. Open the PDF to read it.

      [8]