munotes®

BSc IT Sem II 2018 2019 OBJECT ORIENTED PROGRAMMING Question Paper with Solutions

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

Mumbai University Solved Question Papers munotes.in

2018 2019

BSc IT · Sem II

2019 - 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 2019 - OBJECT ORIENTED PROGRAMMING examination.

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

The Paper as Set

The questions in this volume are the questions asked at the 2019 - 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 vi

SECTION I

Q.1

Attempt any three of the following · 15 Marks

munotes.in 1

a.What is procedure oriented Programming? What are its characteristics?[5]

Answer

For full marks, cover: what procedure oriented programming is, how such a program is organised, a short program written that way, its characteristics, its weaknesses, the languages that follow it, and a conclusion.

Meaning

Procedure oriented programming (POP) sees a program as a sequence of tasks. Each task is written as a function, also called a procedure or subroutine. The programmer thinks first about the steps to follow, the algorithm, and only then about the data those steps use.

How a POP program is organised

The problem is split top-down. The whole job is broken into a few large tasks, and each large task is broken into smaller functions. main() calls them in order, and they share data kept outside every function.

main()

/ | \

addItem() addItem() printBill()

\ | /

munotes.in 2

global data: items, total

A short program in C

A college canteen bill, written the procedure oriented way:

#include <stdio.h>

int items = 0;

double total = 0;

void addItem(double price)

{

items = items + 1;

total = total + price;

}

void printBill(void)

{

printf("Items: %d\n", items);

printf("Total: Rs %.2f\n", total);

}

int main(void)

munotes.in 3

{

addItem(40);

addItem(25.5);

addItem(60);

printBill();

return 0;

}

Output

Items: 3

Total: Rs 125.50

The total is 40 + 25.5 + 60 = 125.5. Both items and total are global. Any function in the file could change them, not only addItem().

Characteristics

  1. The stress is on doing things: the algorithm comes first.
  2. A large program is divided into smaller programs called functions.
  3. Most functions share global data.
munotes.in 4
  1. Data moves openly from function to function as arguments and return values.
  2. Functions transform data from one form to another.
  3. Program design is top-down.
  4. Each function's local variables are private to it, but global data has no such protection.

Weaknesses

  • Data is not secure. A careless function can set total to a wrong value, and the fault is hard to trace.
  • Change is costly. If the layout of shared data changes, every function that uses it has to be found and edited.
  • Poor model of the real world. A bill, a customer and an item are not single units in the program. Their data and their actions sit in different places.
  • Growth is hard. As programs reach thousands of functions, it becomes difficult to see which function touches which data.

Languages

C, Pascal, FORTRAN and COBOL are the usual procedure oriented languages.

munotes.in 5

Conclusion. Procedure oriented programming divides a program into functions, designed top-down, that work on largely global data. It is simple for small tasks. Its open data and its split between data and functions make large programs hard to protect and change.

munotes.in 6

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!