Skip to content
InsemNov 20252019 patternSE Comp

Object Oriented programming and Computer Graphics (OOPCG) SPPU Insem Question Paper Nov 2025 (paper 2)

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

Subject code
210243
Pattern
2019 pattern
Exam
Insem
Session
Nov 2025
Max. marks
30
Time
1 Hour
Semester
III
Paper code
[6578]-21

Printed for: S.E. (Computer Engineering/Computer Science & Design/

Instructions to the candidates

  1. Attempt Q.1 or Q.2, Q.3 or Q.4.
  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)

      What is friend function? Explain with suitable example.

      [3]
    2. b)

      What are the different ways to define member functions of class? Give example of each.

      [6]
    3. c)

      Write C ++ code that defines a class and declares an array of objects to that class.

      [6]
  2. Q2

    1. a)

      List the features of object oriented programming.

      [3]
    2. b)

      Explain significance of static keyword in C ++ . Give example.

      [5]
    3. c)

      Write a class "student" with attributes like name, roll number & marks. Include member functions to set & display these attributes.

      [7]
  3. Q3

    1. a)

      Explain the void and null pointer with example.

      [4]
    2. b)

      Define function overriding in C ++ and write a program to demonstrate the same.

      [6]
    3. c)

      Write short notes on type of inheritance with respect to i) Single inheritance ii) Multiple inheritance iii) Hierarchical inheritance. 2

      [6]
  4. Q4

    1. a)

      What is a virtual base class? Explain with an example.

      [4]
    2. b)

      Explain public, private and protected inheritance. Give example of protected inheritance with explanation.

      [5]
    3. c)

      What are wested classes, how to access the members of wested classes. Explain using example? ♦♦♦

      [6]