What is friend function? Explain with suitable example.
Please rotate your device horizontally for split view
Access and download Object Oriented Programming question papers from Savitribai Phule Pune University (SPPU). Our collection includes INSEM (Internal Semester) and ENDSEM (End Semester) exam papers.
We offer 9 question papers for Object Oriented Programming, covering various exam patterns and years. All papers are in PDF format for easy viewing and download.
Prepare for mid-term evaluations with Object Oriented Programming INSEM papers, aligned with the SPPU exam pattern and syllabus.
Access Object Oriented Programming ENDSEM papers covering the entire syllabus, essential for final exam preparation.
Our question-paper viewer enables you to:
SPPU Question Papers Hub is focused entirely on SPPU previous year papers, with cleaner discovery by branch, semester, and subject.
Object Oriented Programming is a key subject in the SPPU curriculum. Our question paper collection helps students understand exam patterns, practice effectively, and improve academic performance.
Explore Object Oriented Programming resources including SPPU question papers from Savitribai Phule Pune University. Find INSEM and ENDSEM papers for effective examination preparation. Our platform offers academic resources, a PDF viewer for online study, university question papers, and materials for semester examinations.
Download all INSEM question papers as ZIP
Download all ENDSEM question papers as ZIP
Download all question papers (INSEM + ENDSEM) as ZIP
Pre-rendered question cards from available structured metadata.
What is friend function? Explain with suitable example.
What are the different ways to define member functions of class? Give example of each.
Write C++ code that defines a class and declares an array of objects to that class.
List the features of object oriented programming.
Explain significance of static keyword in C++. Give example.
Write a class "student" with attributes like name, roll number & marks. Include member functions to set & display these attributes.
Explain the void and null pointer with example.
Define function overriding in C++ and write a program to demonstrate the same.
Write short notes on type of inheritance with respect to i) Single inheritance ii) Multiple inheritance iii) Hierarchical inheritance.
What is a virtual base class? Explain with an example.
Explain public, private and protected inheritance. Give example of protected inheritance with explanation.
What are wested classes, how to access the members of wested classes. Explain using example?
| Subject Name | Object Oriented Programming |
|---|---|
| Semester | III |
| Pattern Year | 2019 |
| Subject Code | 210243 |
| Max Marks | 30 |
| Total Questions | 4 |
| Duration | 1 Hour |
| Paper Number | [6578]-21 |
| Academic Year | S.E. |
| Branch Name | Artificial Intelligene & Data Sciece |
| Exam Type | INSEM |
| Exam Session | 2025 Oct INSEM |
| Watermark | ['CEGP013091', '49.248.216.237 06/11/2025 10:44:34 static-237'] |
Compare Procedure Oriented programming vs Object Oriented Programming.
Explain C++ data type union and enumeration with example.
Explain static data and static function with program.
What is encapsulation? Why it is important in object-oriented programming?
What is the purpose of constructor and destructor in object-oriented programming? How are they used in class?
Write a class “Person” with attributes like name, age & address. Include appropriate constructor & member functions to set & display these attributes.
Explain friend function.Write a program to demonstrate it in C++.
Discuss the memory management using keywords ‘new’ and “delete”.
What is multi-level inheritance? Explain with an example, how it can be implemented in C++.
Explain friend class. Write a program to demonstrate friend class in C++.
Explain Function overloading and function overriding with example.
Explain public, private and protected inheritance And give example of private Inheritance with explanation.
| Subject Name | Object Oriented Programming |
|---|---|
| Semester | III |
| Pattern Year | 2019 |
| Subject Code | 210243 |
| Max Marks | 30 |
| Total Questions | 4 |
| Duration | 1 Hour |
| Paper Number | 6359-521 |
| Academic Year | S.E. |
| Branch Name | Artificial Intelligence & Data Science Engg. |
| Exam Type | INSEM |
| Exam Session | 2024 Sep INSEM |
| Watermark | ['CEGP013091', '49.248.216.238 09/10/2024 10:33:50 static-238'] |
What are advantages of object oriented programming over procedural oriented programming?
What is polymorphism? How does it relate to function overloading?
What a class ''Student'' with attributes like name, roll number & mark. Include member functions to set & display these attributes?
State differences between abstraction and encapsulation.
What are C++ access specifiers? Write down their significance.
Write a class ''Calculator'' with methods for addition, subtraction, multiplication and division functions. Create a object to perform arithmetic operation.
Define Function overloading and Write a program for swapping two integer numbers, two float numbers and two characters using function overloading.
What is the use of 'this' pointer? Explain with example.
Explain public, private and protected inheritance. And give example of protected Inheritance with explanation.
Define Function overriding in C++ and Write a program to demonstrate the same.
What are types of inheritance. Explain them with syntax.
Define function pointers? Give its Syntax of declaration, Referencing and Dereferencing. Write a program for it in C++.
| Subject Name | Object Oriented Programming |
|---|---|
| Semester | III |
| Pattern Year | 2019 |
| Subject Code | 210243 |
| Max Marks | 30 |
| Total Questions | 4 |
| Duration | 1 Hour |
| Paper Number | [6186]-521 |
| Academic Year | S.E. |
| Branch Name | Artificial Intelligence & Data Science |
| Exam Type | INSEM |
| Exam Session | 2023 Oct INSEM |
| Watermark | ['CEGP013091', '49.248.216.238 11/10/2023 10:42:09 static-238'] |
Compare Function Overloading and Function Overriding.
What is Virtual Function? Explain with example.
Write a program to overload binary operator using member function.
Explain Virtual destructor with Example.
What is late binding and early binding? How are they implemented in C++? Give the difference between the two types of binding.
Write a program to overload binary operator using friend function.
The I/O system of C++ contains which set of classes for file handling?
What are different ways to opening the file for reading and writing operations?
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.
What are cin and cout objects? Explain ios, istream, ostream and iostream classes.
Write a program to create a file, read and write student records into it. Every record contains Student Name, Roll Number and age . Store and retrieve atleast 3 records.
What is a file mode? Describe the various file mode options available in C++?
What is use of type name and export keywords?
What is generic programming? How is it implemented in C++?
Write a Note on 1) unexpected() function 2) terminate() function 3) User defined exception 4) Exception and inheritance.
Explain Rethrowing exceptions with Example.
Explain What is Function template and Class template using program.
How exception specifications is used in exception handling with example.
What is STL? List different types of STL containers.
How stack can be implemented using STL. Explain with program.
Write a program to illustrate STL heap sort.
Explain bidirectional and random access iterators with suitable example.
Write a program to implement binary search algorithm using STL.
Write C++ program using STL for sorting and searching user defined records such as Item records (Item code, name, cost, quantity etc) using vector container.
| Subject Name | Object Oriented Programming |
|---|---|
| Semester | III |
| Pattern Year | 2019 |
| Subject Code | 210243 |
| Max Marks | 70 |
| Total Questions | 8 |
| Duration | 2½ Hours |
| Paper Number | [6402]-37 |
| Academic Year | S.E. |
| Branch Name | Computer/AI & DS/Computer Science & Design/Computer Science Engg. |
| Exam Type | ENDSEM |
| Exam Session | 2025 May Jun ENDSEM |
| Watermark | ['CEGP013091', '49.248.216.237 17/05/2025 09:43:52 static-237'] |
How do you declare and define a pure virtual function in C++? Explain with help of a program.
Explain need of operator overloading. What are the rules to be followed when overloading an operator in C++?
Write a program to overload insertion (<<) and extraction (>>) operator in C++.
How do we achieve run time polymorphim?
What is abstract base class in C++ polymorphism? Explain with program.
Write C++ program to demonstrate use of binary operator overloading using member function.
Explain the command line argument in C++. Write a program to explain the same.
Explain the following file handling functions seekg ( )
What do you mean by File Handling? Explain following functions with syntax and an example. i) open() ii) read() iii) write()
Explain what is fstreem, ifstream and ofstream with help of example? Provide the hierarchy of stream classes in C++.
List and explain different Mode bits used in open() function, while opening a file.
Define a class Student that has three attributes viz name, roll_no and mark. Write a C++ Program that writers an object to a file and reads an object from a file.
What is generic programming? How its is implemented in C++?
Discuss class template with suitable example in C++.
What do you mean by rethrowing exceptions. Write a program for the same.
What is template function? Explain with suitable example.
Write a program to demonstrate user defined exception in C++.
Write a program in C++ to demonstrate Divide by Zero exception.
What is STL? Enlist and explain various components of STL.
What are the various algorithms available in STL? Explain any one with C++ program.
What is a vector? Write a C++ program to explain various functions.
What is an iterator? What are types of iterators?
What is container? List the container classes in C++. Explain any one of them using program.
What is Map? Enlist and explain various functions of map.
| Subject Name | Object Oriented Programming |
|---|---|
| Semester | III |
| Pattern Year | 2019 |
| Subject Code | 210243 |
| Max Marks | 70 |
| Total Questions | 8 |
| Duration | 2½ Hours |
| Paper Number | [6582]-42 |
| Academic Year | S.E. |
| Branch Name | Artificial Intelligence and Data Science |
| Exam Type | ENDSEM |
| Exam Session | 2025 Nov Dec ENDSEM |
| Watermark | ['CEGP013091', '49.248.216.237 15/12/2025 09:41:09 static-237'] |
Explain what is type conversions? Define implicit type casting and explicit type casting with example.
Explain Virtual destructor with the help of a program.
Write a C++ program to overload binary operator ‘+’ to add two complex numbers using member function and friend function.
Explain Polymorphism and Types of Polymorphism.
How do you declare and define a pure virtual function in C++? Explain with help of a program.
Explain need of operator overloading. Write C++ program to demonstrate use of unary operator overloading.
Explain overloading the extraction (>>) and insertion (<<)operators with the help of a program.
What are File Pointers? Explain seekg() and tellg() functions with syntax
Write a program that emulates the DOS COPY command. That is, it should copy the contents of a text file (such as any .CPP file) to another file. Invoke the program with two command-line arguments-the source file and the destination file-like this; C>ocopy srcfile.cpp destfile.cpp In the program, check that the user has typed the correct number of command-line arguments, and that the files specified can be opened.
List and Explain different Mode bits used in open() function, while opening a file. (Any five)
Define a class Book that has three attributes viz bookname, author and price. Write a C++ Program that writes an object to a file and reads an object from a file.
What do you mean by File Handling? Explain following functions with syntax and an example. i) open() ii) read() iii) write()
Explain fundamentals of exception in C++ with suitable example.
Discuss class template with suitable example in C++.
Write a program in C++ to demonstrate Divide by Zero exception.
Write a program to demonstrate user defined exception in C++.
What is template in C++? Dicuss template with multitype parameter in C++.
Write a program to demonstrate overloading function template in C++.
Write a program to demonstrate a map in C++.
Enlist various containers in STL. Explain any one with the help of a program.
What is STL? Enlist and explain various components of STL.
What is an iterator? What are the various types of iterators?
What is Map? Enlist and explain various functions of map.
What is a vector? Write a C++ program to explain various functions of vector.
| Subject Name | Object Oriented Programming |
|---|---|
| Semester | III |
| Pattern Year | 2019 |
| Subject Code | 210243 |
| Max Marks | 70 |
| Total Questions | 8 |
| Duration | 2 ½Hours |
| Paper Number | [6352]-42 |
| Academic Year | S.E. |
| Branch Name | Artificial Intelligence & Data Science Engg. |
| Exam Type | ENDSEM |
| Exam Session | 2024 Nov Dec ENDSEM |
| Watermark | ['CEGP013091', '49.248.216.237 02/12/2024 09:40:39 static-237'] |
What is runtime polymorphism? How it is achieved in C++. Explain it along with example.
Explain virtual base class and virtual function with example.
Explain need of operator overloading. Write C++ program to demonstrate use of unary operator overloading.
Explain polymorphism and types of polymorphism in C++.
Explain what is type casting, Explain Implicit and explicit type of conversion with example.
Write a program to overload insertion (<<) and extraction (>>) operator in C++.
What are various functions which are used to manipulate file pointers? Explain using example.
Explain command line arguments in C++? Write program to explain the same.
What are different file opening mode?
Explain formatted and unformatted input and output functions used in C++ with example.
What are stream classes and their use? Provide the hierarchy of stream classes in C++.
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.
What is the power of templates in C++? Explain along with one example.
Explain exception handling mechanism in C++? Write a program in C++ to handle “divide by zero” exception.
Write a short note on typename and export keyword in C++.
What is mean by user defined exception? Give one example.
Explain class template using multiple parameters. Write a program in C++.
How multiple catching is implemented in exception handling?
Explain the concept of the Standard Template Library (STL) in C++. What are its key components?
Differentiate between sequence containers and associative containers in the STL. Provide examples of each.
Discuss the advantages of using container adapters in the STL. Provide examples of container adapters.
How can vectors and lists be used as sequence containers in the STL? Explain with a appropriate example.
Explain the concept of iterators in the STL. Differentiate between iterator and pointers.
Describe the process of using the STL algorithms for Quick sort.
| Subject Name | Object Oriented Programming |
|---|---|
| Semester | III |
| Pattern Year | 2019 |
| Subject Code | 210243 |
| Max Marks | 70 |
| Total Questions | 8 |
| Duration | 2½ Hours |
| Paper Number | [6002]-157 |
| Academic Year | S.E. |
| Branch Name | Computer Engineering (Artificial Intelligence & Data Science) |
| Exam Type | ENDSEM |
| Exam Session | 2023 May Jun ENDSEM |
| Watermark | ['CEGP013091', '49.248.216.238 16/06/2023 10:42:45 static-238'] |
Differentiate between compile time polymorphism and run time polymorphism.
How do you declare and define a pure virtual function in C++? Explain with help of a program.
Write a C++ program for unary increment (++) and decrement (--) operator overloading.
What is operator overloading and why it is useful? Which Operators cannot be overloaded.
How virtual functions are implemented in C++? Explain with help of a program.
Write a program to binary (+) and binary (-) operator in C++.
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.
Explain the following file handling functions (solve any three). i) seekg ( ) ii) tellg ( ) iii) seekp ( ) iv) tellp ( )
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.
List and Explain different Mode bits used in open () function, while opening a file. (Any five).
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.
Explain what is fstream, ifstream and ofstream with help of example? Provide the hierarchy of stream classes in C++.
Discuss exception handling mechanism in C++ with syntax.
Write a program to handle exception using class type exception.
Demonstrate function template with suitable code in C++.
Explain exception handling in constructor, destructor.
Write a program to demonstrate class template with example.
Demonstrate overloading function template with suitable code in C++.
What is an iterator? Explain how to use an iterator in C++ program with example.
What is an algorithm in STL? Enlist algorithms and explain any algorithm in detail.
What is a Map ? Write a program to implement map in C++.
What is STL? Enlist and explain in short major components of STL.
What is iterator and algorithm? Explain each of them with example.
What is a vector? Enlist and explain any 5 functions of vector by using a C++ program.
| Subject Name | Object Oriented Programming |
|---|---|
| Semester | III |
| Pattern Year | 2019 |
| Subject Code | 210243 |
| Max Marks | 70 |
| Total Questions | 8 |
| Duration | 2½ Hours |
| Paper Number | [6179]-242 |
| Academic Year | S.E. |
| Branch Name | Computer / Computer Science & Design Engg./A.I&D.S. |
| Exam Type | ENDSEM |
| Exam Session | 2023 Nov Dec ENDSEM |
| Watermark | ['CEGP013091', '49.248.216.238 01/01/2024 09:38:26 static-238'] |
Explain the polymorphism feature of OOP. What are the different ways to achieve polymorphism in C++ Language? Explain them along with examples.
What is operator overloading? Write a program to overload '+' operator for adding two complex numbers which are object of below complex class. Class Complex { Private: int real, imag; };
What is Pure virtual function? Illustrate the use of Pure virtual function.
What is runtime polymorphism? How it is achieved in C++. Explain it along with example.
What is function overloading? Write defination of three overloaded functions (add) which will add two integer, float and double numbers respectively.
Explain abstract class concept along with example.
What are various functions used to manipulate file pointers? Explain using example.
What are command line arguments in C++? Write a program to explain the same.
What are fstream, ifstream and ofstream? Illustrate with help of example.
Write a program to create file, read and write record into it. Every record contains employee name, id and salary. Store and retrieve atleast 3 data.
What do you mean by file handling? Explain the following functions. i) open() ii) get() iii) getline()
Write a program to create files using constructor function.
Distinguish between overloaded function and function template with suitable example.
What is an exception specification? Explain using suitable example.
What is generic programming? How it is implemented in C++.
Write short note on type name and export key-word.
Explain class template using multiple parameters with help of program.
Explain exception handling mechanism in C++? Explain by program to handle "divide by zero".
What is purpose of iterator and algorithm.
What is STL? List and explain different types of STL containers.
Write a program to implement map in STL.
What are major components of STL.
State functions of vector STL. Write a program to explain the same.
What is container? List the container classes in C++. Explain any one of them using program.
| Subject Name | Object Oriented Programming |
|---|---|
| Semester | III |
| Pattern Year | 2019 |
| Subject Code | 210243 |
| Max Marks | 70 |
| Total Questions | 8 |
| Duration | 2½ Hours |
| Paper Number | [5925]-257 |
| Academic Year | S.E. |
| Branch Name | Computer/Artificial Intelligence & Data Science/Computer Science & Design Engineering |
| Exam Type | ENDSEM |
| Exam Session | 2022 Nov Dec ENDSEM |
| Watermark | ['CEGP013091', '49.248.216.238 07/02/2023 13:19:06 static-238'] |