Skip to content
EndsemMay 20242019 patternSE Comp

Object Oriented programming and Computer Graphics (OOPCG) 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
210243
Pattern
2019 pattern
Exam
Endsem
Session
May 2024
Max. marks
70
Time
2½ Hours
Semester
III
Paper code
[6261]-42

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

Instructions to the candidates

  1. Answer Q.1 or Q.2, Q.3 or Q.4 Q.5 or Q.6, Q.7. or Q.8.
  2. Draw Neat and Clean Diagram.
  3. Assume Suitable data, if necessary.
  4. Figures of the rights indicate full marks.

Questions

  1. Q1

    1. a)

      Explain need of operator overloading. What are the rules to be followed when overloading an operator in C++?

      [5]
    2. b)

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

      [6]
    3. c)

      Define a class string and use binary overloaded operator (= =) to compare two strings.

      [6]
  2. Q2

    1. a)

      What is abstract base class in C++ polymorphism? Explain with program.

      [5]
    2. b)

      Explain Virtual destructor with the help of a program.

      [6]
    3. c)

      Write C++ program to demonstrate use of unary operator (- -) overloading using member function and unary operator overloading (++) using friend function.

      [6]
  3. Q3

    1. a)

      Explain the errror handling in file I/O.

      [5]
    2. b)

      Explain the two ways in which files can be opened, open () and Using constructor with a program.

      [6]
    3. c)

      What is stream? Explain types of stream available in C++ i.e istream, ostream, ifstream and ofstream. 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)

      Explain the command line argument in C++ Write a program to explain the same.

      [6]
    3. c)

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

      [7]
  5. Q5

    1. a)

      What is exception in C++? Explain each keyword to handle exception in C++.

      [5]
    2. b)

      What is template function? Explain with suitable example.

      [6]
    3. c)

      Explain class template. Write a program to demonstrate class templeate in C++.

      [6]
  6. Q6

    1. a)

      What do you mean by rethrowing exceptions. Write a program for the same.

      [5]
    2. b)

      What is generic programming? How it is implemented in C++.

      [6]
    3. c)

      Write a program in C++ to demonstrate class type exception handling in C++. 3

      [6]
  7. Q7

    1. a)

      What are the various algorithms available in STL? Explain any one with C++ program.

      [5]
    2. b)

      Write a program to implement map in C++.

      [6]
    3. c)

      What is a container? What are various types of containers? Explain any two containers in details.

      [7]
  8. Q8

    1. a)

      What is the algorithm in STL? Explain sort function with example.

      [5]
    2. b)

      What is a sequential container? List various sequential containers. Compare arrays and vectors.

      [6]
    3. c)

      What is iterator? Write a program in C++ to demonstrate the use iterator. … … …

      [7]