Skip to content
EndsemJan 20242019 patternSE IT

Object Oriented Programming (OOP) SPPU Endsem Question Paper Jan 2024

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

Subject code
210243
Pattern
2019 pattern
Exam
Endsem
Session
Jan 2024
Max. marks
70
Time
2½ Hours
Semester
III
Paper code
[6179]-242

Printed for: S.E. (Computer / Computer Science & Design Engg./ A.I&D.S.)

Instructions to the candidates

  1. Answer Q.No.1 or Q.No.2, Q.No.3 or Q.No.4, Q.No.5 or Q.No.6, Q.No.7 or Q.No.8.
  2. Neat diagrams must be drawn wherever necessary.
  3. Assume suitable data if necessary.
  4. Use of Calculator is allowed.

Questions

  1. Q1

    1. a)

      Differentiate between compile time polymorphism and run time polymorphism.

      Also asked:Dec 2025 ·May 2024

      [5]
    2. b)

      How do you declare and define a pure virtual function in C++? Explain with help of a program.

      [6]
    3. c)

      Write a C++ program for unary increment (++) and decrement (--) operator overloading.

      [6]
  2. Q2

    1. a)

      What is operator overloading and why it is useful? Which Operators cannot be overloaded.

      [5]
    2. b)

      How virtual functions are implemented in C++? Explain with help of a program.

      [6]
    3. c)

      Write a program to binary (+) and binary (-) operator in C++.

      [6]
  3. Q3

    1. a)

      Explain the use of command line arguments. If we want to pass command line arguments what will be prototype of main function and explain its arguments along with example.

      [5]
    2. b)

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

      [6]
    3. c)

      Write a program Using the C++ file input and output class with open(), get(), put(),close() methods for opening, reading from and writing to a file. Use append mode while opening the file for writing. 2

      [7]
  4. Q4

    1. a)

      List and Explain different Mode bits used in open () function, while opening a file. (Any five).

      [5]
    2. b)

      Define a class Person that has three attributes viz name, gender and age. Write a C++ Program that writes an object to a file and reads an object from a file.

      [6]
    3. c)

      Explain what is fstream, ifstream and ofstream with help of example? Provide the hierarchy of stream classes in C++.

      [7]
  5. Q5

    1. a)

      Discuss exception handling mechanism in C++ with syntax.

      Also asked:Dec 2025

      [5]
    2. b)

      Write a program to handle exception using class type exception.

      [6]
    3. c)

      Demonstrate function template with suitable code in C++.

      [6]
  6. Q6

    1. a)

      Explain exception handling in constructor, destructor.

      [5]
    2. b)

      Write a program to demonstrate class template with example.

      [6]
    3. c)

      Demonstrate overloading function template with suitable code in C++.

      [6]
  7. Q7

    1. a)

      What is an iterator? Explain how to use an iterator in C++ program with example.

      [5]
    2. b)

      What is an algorithm in STL? Enlist algorithms and explain any algorithm in detail.

      [6]
    3. c)

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

      [7]
  8. Q8

    1. a)

      What is STL? Enlist and explain in short major components of STL.

      [5]
    2. b)

      What is iterator and algorithm? Explain each of them with example.

      [6]
    3. c)

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

      [7]