munotes®

B.Sc. (Computer Science) Sem 2 Introduction to OOP Using C++ Apr 2025 Question Paper - Mumbai University | munotes

Introduction To OOP Using C++ Question Paper, Apr 2025.pdf
SEM 2 · 55 KB · 16 Oct 2026

Loading PDF...

Questions asked in this paper

  1. 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.
  2. 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.
  3. 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.

Issue

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.

Something wrong with this paper? Report it.

Done!
Done!