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
- Answer Q.1 or Q.2, Q.3 or Q.4 Q.5 or Q.6, Q.7. or Q.8.
- Draw Neat and Clean Diagram.
- Assume Suitable data, if necessary.
- Figures of the rights indicate full marks.
Questions
Q1
- a)[5]
Explain need of operator overloading. What are the rules to be followed when overloading an operator in C++?
- b)[6]
How virtual functions are implemented in C++? Explain with help of a program.
- c)[6]
Define a class string and use binary overloaded operator (= =) to compare two strings.
OR- a)
Q2
- a)[5]
What is abstract base class in C++ polymorphism? Explain with program.
- b)[6]
Explain Virtual destructor with the help of a program.
- c)[6]
Write C++ program to demonstrate use of unary operator (- -) overloading using member function and unary operator overloading (++) using friend function.
- a)
Q3
- a)[5]
Explain the errror handling in file I/O.
- b)[6]
Explain the two ways in which files can be opened, open () and Using constructor with a program.
- c)[7]
What is stream? Explain types of stream available in C++ i.e istream, ostream, ifstream and ofstream. 2
OR- a)
Q4
- a)[5]
List and Explain different Mode bits used in open () function, while opening a file. (Any five)
- b)[6]
Explain the command line argument in C++ Write a program to explain the same.
- c)[7]
This part has equations that don’t show as text. Open the PDF to read it.
- a)
Q5
- a)[5]
What is exception in C++? Explain each keyword to handle exception in C++.
- b)[6]
What is template function? Explain with suitable example.
- c)[6]
Explain class template. Write a program to demonstrate class templeate in C++.
OR- a)
Q6
- a)[5]
What do you mean by rethrowing exceptions. Write a program for the same.
- b)[6]
What is generic programming? How it is implemented in C++.
- c)[6]
Write a program in C++ to demonstrate class type exception handling in C++. 3
- a)
Q7
- a)[5]
What are the various algorithms available in STL? Explain any one with C++ program.
- b)[6]
Write a program to implement map in C++.
- c)[7]
What is a container? What are various types of containers? Explain any two containers in details.
OR- a)
Q8
- a)[5]
What is the algorithm in STL? Explain sort function with example.
- b)[6]
What is a sequential container? List various sequential containers. Compare arrays and vectors.
- c)[7]
What is iterator? Write a program in C++ to demonstrate the use iterator. … … …
- a)