Object Oriented Programming with C++ — Major (End Semester) 2026 question paper
MMMUT Information Technology previous year question paper for Object Oriented Programming with C++ (BIT-154), semester 2, Major (End Semester) 2026. All 24 questions are listed below, each with a written answer on Nexsus.
Paper details
Subject: Object Oriented Programming with C++ (BIT-154)
Branch: Information Technology
Semester: 2
Exam: Major (End Semester) 2026
Questions: 24
Questions asked in Object Oriented Programming with C++ Major (End Semester) 2026
Q1. Attempt any Five parts of the following.
Q1(a). Define tokens in C++. [2 marks]
Q1(b). What is operator precedence? [2 marks]
Q1(c). Demonstrate type conversions in C++? [2 marks]
Q1(d). What is a member function? [2 marks]
Q1(e). Give a short note on the constructor and destructor in C++. [2 marks]
Q1(f). Explain polymorphism with an example? [2 marks]
Q1(g). Define file handling in C++. [2 marks]
Q2. Attempt any Two parts of the following.
Q2(a). Develop a C++ program to read n elements into an array and determine the second largest and second smallest elements. [5 marks]
Q2(b). Develop a C++ program to demonstrate inline function and friend function. Analyze how friend functions access private data. [5 marks]
Q2(c). Examine the concept of data hiding and compare public, private, and protected access specifiers. [5 marks]
Q3. Attempt any Two parts of the following.
Q3(a). Construct a C++ program to implement a parameterized constructor. Demonstrate initialization of objects. [5 marks]
Q3(b). Develop a program to implement hierarchical inheritance. Validate function accessibility in derived classes. [5 marks]
Q3(c). Analyze polymorphism in C++ and differentiate between compile-time and run-time polymorphism with suitable illustrations. [5 marks]
Q4. Attempt any Two parts of the following.
Q4(a). Describe Object-Oriented System Development in detail with the help of an application. [5 marks]
Q4(b). Develop a C++ program to implement operator overloading for unary operator. Demonstrate its working. [5 marks]
Q4(c). Examine hybrid inheritance and illustrate the problem of ambiguity in it along with the method to resolve it. [5 marks]
Q5. Attempt any Two parts of the following.
Q5(a). Explain blocks of exception handling in C++. Demonstrate handling of division by zero. [5 marks]
Q5(b). Construct a function template to determine the maximum of two values. Validate using different data types. [5 marks]
Q5(c). Compare and contrast text and binary files. Develop a C++ program to create a file and write your name and roll number into it. Further, use appropriate file modes to append additional details such as branch and college name. Finally, read and display the complete contents of the file. [5 marks]