What is friend function? Explain with suitable example.
Object Oriented Programming Question Papers - SPPU University
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.
Available Object Oriented Programming 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.
INSEM Papers for Object Oriented Programming
Prepare for mid-term evaluations with Object Oriented Programming INSEM papers, aligned with the SPPU exam pattern and syllabus.
ENDSEM Papers for Object Oriented Programming
Access Object Oriented Programming ENDSEM papers covering the entire syllabus, essential for final exam preparation.
Online PDF Viewer Features
Our question-paper viewer enables you to:
- View papers in single or split-screen mode.
- Compare multiple papers simultaneously.
- Use fullscreen mode for better readability.
- Filter by exam type (INSEM/ENDSEM).
- Download papers for offline study.
About SPPU Question Papers Hub
SPPU Question Papers Hub is focused entirely on SPPU previous year papers, with cleaner discovery by branch, semester, and subject.
Study Materials for Object Oriented Programming
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.
Relevant Keywords & Topics
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.
Object Oriented Programming
Download Object Oriented Programming Papers
INSEM Papers
Download all INSEM question papers as ZIP
ENDSEM Papers
Download all ENDSEM question papers as ZIP
All Papers
Download all question papers (INSEM + ENDSEM) as ZIP
Object Oriented Programming Questions
Pre-rendered question cards from available structured metadata.
2025 Oct INSEM
Q1
15 MarksWhat 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.
Q2
15 MarksList 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.
Q3
16 MarksExplain 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.
Q4
15 MarksWhat 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'] |
2024 Sep INSEM
Q1
15 MarksCompare Procedure Oriented programming vs Object Oriented Programming.
Explain C++ data type union and enumeration with example.
Explain static data and static function with program.
Q2
15 MarksWhat 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.
Q3
15 MarksExplain 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++.
Q4
15 MarksExplain 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'] |
2023 Oct INSEM
Q1
15 MarksWhat 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?
Q2
15 MarksState 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.
Q3
15 MarksDefine 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.
Q4
15 MarksDefine 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'] |
2025 May Jun ENDSEM
Q1
17 MarksCompare Function Overloading and Function Overriding.
What is Virtual Function? Explain with example.
Write a program to overload binary operator using member function.
Q2
17 MarksExplain 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.
Q3
18 MarksThe 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.
Q4
18 MarksWhat 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++?
Q5
18 MarksWhat 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.
Q6
18 MarksExplain Rethrowing exceptions with Example.
Explain What is Function template and Class template using program.
How exception specifications is used in exception handling with example.
Q7
18 MarksWhat 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.
Q8
18 MarksExplain 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'] |
2025 Nov Dec ENDSEM
Q1
17 MarksHow 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++.
Q2
17 MarksHow 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.
Q3
18 MarksExplain 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()
Q4
18 MarksExplain 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.
Q5
17 MarksWhat 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.
Q6
17 MarksWhat 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.
Q7
18 MarksWhat 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.
Q8
18 MarksWhat 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'] |
2024 Nov Dec ENDSEM
Q1
17 MarksExplain 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.
Q2
17 MarksExplain 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.
Q3
18 MarksExplain 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.
Q4
18 MarksList 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()
Q5
17 MarksExplain 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.
Q6
17 MarksWrite 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++.
Q7
18 MarksWrite 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.
Q8
18 MarksWhat 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'] |
2023 May Jun ENDSEM
Q1
17 MarksWhat 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.
Q2
17 MarksExplain 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++.
Q3
18 MarksWhat 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?
Q4
18 MarksExplain 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.
Q5
17 MarksWhat 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++.
Q6
17 MarksWhat 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?
Q7
18 MarksExplain 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.
Q8
18 MarksHow 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'] |
2023 Nov Dec ENDSEM
Q1
17 MarksDifferentiate 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.
Q2
17 MarksWhat 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++.
Q3
18 MarksExplain 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.
Q4
18 MarksList 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++.
Q5
17 MarksDiscuss 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++.
Q6
17 MarksExplain exception handling in constructor, destructor.
Write a program to demonstrate class template with example.
Demonstrate overloading function template with suitable code in C++.
Q7
18 MarksWhat 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++.
Q8
18 MarksWhat 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'] |
2022 Nov Dec ENDSEM
Q1
17 MarksExplain 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.
Q2
17 MarksWhat 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.
Q3
18 MarksWhat 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.
Q4
18 MarksWrite 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.
Q5
17 MarksDistinguish 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++.
Q6
17 MarksWrite 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".
Q7
18 MarksWhat 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.
Q8
18 MarksWhat 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'] |