Skip to content
EndsemOct 20252024 patternSE CSE

Object Oriented Programming & Computer Graphics (OOPCG) 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]-237

Printed for: S.E. (Computer / Computer Science Engineering)

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. Figures to the right indicate full marks.
  3. Neat diagrams must be drawn wherever necessary.
  4. Make suitable assumption whenever necessary.

Questions

  1. Q1

    1. a)

      What are classes and objects? Explain their relationship with the help of a real-world example.

      [5]
    2. b)

      What is JVM? Explain how java achieves platform independence using JVM and Bytecode.

      [5]
    3. c)

      Write and explain a Java program using: • If-else decision structure • for or while loop

      [4]
  2. Q2

    1. a)

      What are data members and methods? Describe how they are used in Java to define an object’s characteristics and behavior.

      [5]
    2. b)

      What are Java Class Libraries? Explain how import statements help in accessing predefined classes.

      [5]
    3. c)

      What are programming paradigms? Describe the four main programming paradigms with suitable examples.

      [4]
  3. Q3

    1. a)

      What is a constructor? Explain parameterized constructor and default constructor with examples.

      [5]
    2. b)

      What are arrays? Demonstrate declaration, creation, and initialization of a 1-D and 2-D array with examples. Also explain passing arrays to methods.

      [5]
    3. c)

      Define a class in Java. Write a Java class with field declaration, method declaration, and method definition. P.T.O. SPPU QUESTION PAPER www.mysppu.in Page 1 MySPPU · Object Oriented Programming & Computer Graphics Page 1 of 3

      [4]
  4. Q4

    1. a)

      What is method overloading? Write a Java program that overloads a method to calculate the area of a square and rectangle.

      [5]
    2. b)

      What are set (mutator) and get (accessor) methods? Write an example demonstrating their use.

      [5]
    3. c)

      What are Java API packages? Explain the use of the import statement with an example.

      [4]
  5. Q5

    1. a)

      What is inheritance? Explain superclass and subclass with a Java example.

      [5]
    2. b)

      What is multiple catch? Write a Java program demonstrating handling of different exception types using mutliple catch blocks.

      [5]
    3. c)

      Explain runtime polymorphism with a suitable Java example demonstrating method overriding.

      [4]
  6. Q6

    1. a)

      What is protected access specifier? How does it affect accessibility in inheritance?

      [5]
    2. b)

      Explain try, catch, throw, throws and finally keywords with example code?

      [5]
    3. c)

      What are abstract classes and abstract methods? How are they different from interfaces?

      [4]
  7. Q7

    1. a)

      What are the applications of computer graphics in various fields? Explain with examples.

      [5]
    2. b)

      Write Bresenham circle drawing algorithm. Also explain mathematical foundation of it.

      [5]
    3. c)

      What is the inside-outside test? How is it used in polygon processing?

      [4]
  8. Q8

    1. a)

      Explain Scan Line Polygon Fill algorithm. Compare it with Flood Fill and Seed Fill methods.

      [5]
    2. b)

      Explain DDA line drawing algorithm. Consider line segment from A (-2, -1) to B (6, 3) use DDA line drawing algorithm to rasterize this line

      [5]
    3. c)

      Explain the following term with example: i) Windowing ii) Clipping SPPU QUESTION PAPER www.mysppu.in Page 2 MySPPU · Object Oriented Programming & Computer Graphics Page 2 of 3

      [4]
  9. Q9

    1. a)

      Define 2D transformations. Explain translation, scaling, rotation, and shear with their matrix representations.

      [5]
    2. b)

      Describe rotation about an arbitrary axis in 3D. Explain the steps involved.

      [5]
    3. c)

      What is Oblique projection? Explain Cavilier and Cabinet projection.

      [4]
  10. Q10

    1. a)

      What is orthographic projection? Explain Isometric, Diametric, and Trimetric projections with suitable examples.

      [5]
    2. b)

      Explain 3D translation, scaling, rotation, and shear with their matrix forms.

      [5]
    3. c)

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

      [4]