munotes®

BSc IT Sem II ATKT OBJECT ORIENTED PROGRAMMING Question Paper with Solutions

MU B.Sc. (Information Technology) student group Free to join

Mumbai University Solved Question Papers munotes.in

ATKT

BSc IT · Sem II

OBJECT ORIENTED PROGRAMMING Examination

Previous Year Question Paper with Solution

munotes.in Mumbai

munotes.in

First published on munotes.in on 12 November 2026.

Published by munotes.in, Mumbai.

Model answers written and edited by the munotes.in editorial desk.

Passages from this volume may be quoted, in print, online or by an AI system, with credit: name munotes.in and link to this volume's page. The volume may not be reproduced as a whole. Full terms at munotes.in/content-license.

munotes.in is an independent study resource for students of the University of Mumbai. It is not affiliated with the University of Mumbai, and is not endorsed by it.

The University does not publish an official answer key for this paper. The answers in this volume are model answers, written to show how a full-mark answer is built. They are a study aid, not an authority on what an examiner marked.

The question paper reproduced here is the paper as set by the University of Mumbai at the OBJECT ORIENTED PROGRAMMING examination.

munotes.in ii
munotes.in iii
munotes.in iv

The Paper as Set

The questions in this volume are the questions asked at the OBJECT ORIENTED PROGRAMMING examination, reproduced as the University of Mumbai set them, in the order it set them. Nothing has been reworded, added or left out. Only the answers are ours. See the original question paper.

Duration 2½ hours  ·  Total marks 75  ·  30 questions answered

How to use this volume

Solve the paper first, under exam conditions and against the clock. Then read the answers here and mark your own. Reading a solution before attempting the question feels productive and teaches very little, because recognising an answer is not the same as being able to write one.

munotes.in v

SECTION I

Q.1

Attempt any three of the following · 15 Marks

munotes.in 1

a.What are the characteristics of the Object Oriented Programming?[5]

Answer

For full marks, cover: what object oriented programming is, its characteristics one by one with a line of meaning each, a short program that shows several of them at once, and a conclusion.

Meaning

Object oriented programming (OOP) builds a program out of objects. Each object joins some data with the functions that work on that data. The program runs by objects calling one another's functions.

Characteristics

  1. Emphasis on data, not on procedure. The design starts from the things in the problem, such as a student or a ticket, and their data.
  2. Programs are divided into objects. Each object is a self-contained unit of data and functions.
  3. Classes. A class is the plan from which objects are made. All objects of one class have the same members.
  4. Encapsulation. Data and functions are wrapped together in one class.
munotes.in 2
  1. Data hiding. Private data is reached only through the class's own functions, so outside code cannot corrupt it.
  2. Abstraction. A user of the class sees what it does through public functions, not how it does it.
  3. Inheritance. A new class takes over the members of an existing class and adds its own.
  4. Polymorphism. One name, such as an operator or a function, behaves differently for different types.
  5. Dynamic binding. The function a call runs can be decided at run time, through virtual functions.
  6. Message passing. Objects communicate by calling each other's member functions.
  7. Bottom-up design. Small classes are built and tested first, then joined into the whole program.

A program showing several characteristics

#include <iostream>

using namespace std;

class Lamp

{

private:

munotes.in 3

bool lit;

int hours;

public:

Lamp() : lit(false), hours(0) {}

void on() { lit = true; }

void use(int h) { if (lit) hours += h; }

void report() const { cout << (lit ? "On" : "Off") << ", used " << hours << " hours" << endl; }

};

int main()

{

Lamp desk, hall;

desk.on();

desk.use(3);

hall.use(5);

desk.report();

hall.report();

return 0;

}

munotes.in 4

Output

On, used 3 hours

Off, used 0 hours

What the program shows

  1. Lamp is a class, and desk and hall are two objects with their own data.
  2. lit and hours are private, so main() changes them only through on() and use(): encapsulation and data hiding.
  3. hall.use(5) added nothing, because use() checks that the lamp is lit. The rule lives inside the class.
  4. Each call such as desk.on() is a message sent to an object.

Conclusion. OOP organises a program around objects made from classes. Its main characteristics are encapsulation, data hiding, abstraction, inheritance, polymorphism, dynamic binding and message passing, with the emphasis on data and a bottom-up design.

munotes.in 5

The rest of the answers

The first answer is free. The rest come with the B.Sc. (Information Technology) Semester 2 solved papers.

You have read the question paper and its first answer in full. Buy the solved papers once and you can read every answer of every solved paper in this semester.

Notes + practical solutions + solved papers: ₹798 Already bought it? Sign in

Or solved papers only: ₹499
Or notes + practical solutions: ₹499

The question paper itself stays free, and so does the syllabus.

Issue

Found an error in this volume? Report it and we will check it against the paper.

Done!