B.Sc. (Computer Science) Sem 2 Introduction to OOP Using C++ Apr 2025 Question Paper - Mumbai University | munotes
Get access to whole semester resourcesSemester Pass
MU B.Sc. (Computer Science) student group
Free to join
Loading PDF...
Older exam
2022-23
Semester-end · Introduction to OOP using C++
→
Newer exam
Mar 2026
Semester-end · Introduction to OOP using C++
→
Questions asked in this paper
-
Q1 Attempt any two 10 marks
- A) Explain the do-while loop in C++ with examples.
- B) Explain the increment operators in C++.
- C) Write a program in C++ to print prime numbers between 2 to 100 in the reverse order (2 should be the last one to be displayed).
- D) Write a program in C++ to display all numbers between 5000 and 10000 which are divisible by both 3 and 7.
-
Q2 Attempt any two 10 marks
- A) Explain overriding in C++ with examples.
- B) Explain pure virtual functions in C++ with example.
- C) Create a class to represent a complex number. Define appropriate constructor. Overload the operators for adding and subtracting two complex numbers. Create objects in the main and demonstrate the operation.
- D) Write a program in C++ to implement a base class Person. Derive classes Student and Instructor from Person. A person has a name and an age. A student has a major subject, and an instructor has a salary. Write the class definitions, the constructors, and the member functions 'display' for all classes.
-
Q3 Attempt any two 10 marks
- A) Explain relational operators in C++.
- B) Write a note on constructors in C++.
- C) Explain the various types of inheritance.
- D) Write a program in C++ to read the content of a file and display it on the monitor.
Read from the scan above, so a character or two may differ. The scan is the original.
Something wrong on this page? Report it and we will check it against the scan.
Quick Help
No. The full paper opens straight away, with no login and nothing to pay.
Related Resources
Something wrong with this paper? Report it.
Connected Papers
B.Sc. (Computer Science) / Sem 2 · 51 papers
Questions? Email contact@munotes.in
Done!