munotes®

B.Sc. (Information Technology) Sem II Object Oriented Programming Using C++ Mar 2026 Question Paper - Mumbai University | munotes

Object Oriented Programming Using C++ Question Paper, Mar 2026.pdf
SEM II · 37 KB · 25 Oct 2026

Loading PDF...

Older exam Apr 2025 Semester-end · Object Oriented Programming using C++ →
Newer exam None yet: this is the latest New papers land after each exam season.

Questions asked in this paper

SECTION I - Q.1 (Attempt any TWO) 15 Marks

  1. Q1 Design a class named 'Stock' that contains: a data field named symbol for the stock's symbol, a data field named name for the stock's name, a data field named 'previousClosingPrice' that stores the stock price for the previous day, a data field named 'currentPrice' that stores the stock price for the current time, a constructor that creates a stock with the specified symbol, name, previous closing price and the current price. The class has a method named 'getChangePercent()' that returns the percentage changed from 'previousClosingPrice' to 'currentPrice'. Write a test program.
  2. Q2 Explain the three looping structures in C++ with examples.
  3. Q3 Explain constructor and destructor with examples.
  4. Q4 Explain 4 relational operators in C++ with examples.

SECTION II - Q.2 (Attempt any TWO) 15 Marks

  1. Q5 Write a program in C++ to create a class Graphics. The class contains a method 'draw' without a body. Create classes Circle and Square which inherit 'Graphics'. Create objects of the two classes Circle and Square in main and call their 'draw' method which displays the message 'Draw of Circle' and 'Draw of Square' respectively. Use polymorphism to call the methods.
  2. Q6 In 1843, Sir William Hamilton discovered an extension to complex numbers called quaternions. A quaternion is a 4-tuple a = (a0, a1, a2, a3) with the following operations: Sum: a + b = (a0 + b0, a1 + b1, a2 + b2, a3 + b3). Product: a * b = (a0*b0-a1*b1-a2*b2-a3*b3, a0*b1-a1*b0+a2*b3-a3*b2, a0*b2-a1*b3+a2*b0+a3*b1, a0*b3+a1*b2-a2*b1+a3*b0). Create a class 'Quaternion' for quaternions. Define appropriate constructor and overload the operators for sum and product. Create a test client that exercises all of your code.
  3. Q7 Explain the various kinds of inheritance.
  4. Q8 Explain virtual function in C++ with examples.

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.

Connected Papers
B.Sc. (Information Technology) / Sem II · 53 papers
Browse all →
Questions? Email contact@munotes.in
Done!
Done!