Mumbai University Solved Question Papers munotes.in
Python Programming
BSc IT · Sem III
Oct 2025 Examination
Previous Year Question Paper with Solution
munotes.in Mumbai
Mumbai University Solved Question Papers munotes.in
Python Programming
BSc IT · Sem III
Oct 2025 Examination
Previous Year Question Paper with Solution
munotes.in Mumbai
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 Oct 2025 examination.
The questions below are the paper as the University of Mumbai set it at the Oct 2025 examination, in the order it was set.
MarksPage
The questions in this volume are the questions asked at the Oct 2025 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 1 hours · Total marks 30 · 8 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.
Q1)
Attempt any two · 15 Marks
Answer
For full marks, cover: what a logical error is (the program runs and gives a wrong answer), why Python cannot catch it, the three kinds of error side by side, at least three examples with the wrong output and the fix (an operator precedence slip, a wrong condition, an off-by-one range), and how logical errors are found: tracing, print statements, the IDLE debugger, test cases and assert.
A logical error is a mistake in the meaning of a program. The program is valid Python, so it runs to the end and shows no error message. But the answer it gives is wrong.
It is also called a semantic error, because the meaning (the semantics) is wrong. The computer does exactly what the programmer wrote. The trouble is that the programmer wrote something different from what was meant.
So Python cannot catch it. Python checks grammar and stops on impossible operations. It has no way to know what answer you wanted.
| Syntax error | Run-time error | Logical error | |
|---|---|---|---|
| What is wrong | The grammar of the code | An operation that cannot be done | The meaning of the code |
| When it shows | Before the program starts | While the program runs | Only when the output is checked |
| Error message | Yes, SyntaxError | Yes, an exception such as ZeroDivisionError | None |
| Example | print("Hi" (bracket missing) | 10 / 0 | Average written as m1 + m2 / 2 |
| Found by | Python itself | Python itself | The programmer, by testing |
The average of two marks, 70 and 80, should be 75.
m1 = 70
m2 = 80
wrong = m1 + m2 / 2
right = (m1 + m2) / 2
print("Wrong average:", wrong)
print("Right average:", right)
Output:
Wrong average: 110.0
Right average: 75.0
Division is done before addition, so the first line works out 70 + 40. The brackets in the second line force the addition first.
The rule is "40 or more is a pass". The programmer wrote > instead of >=.
marks = 40
if marks > 40:
print("Pass")
else:
print("Fail")
Output:
Fail
A student with exactly 40 is wrongly failed. The fix is if marks >= 40:. A boundary value like 40 always needs its own test.
The program should add the numbers 1 to 10, whose sum is 55.
total = 0
for n in range(1, 10):
total = total + n
print("Sum of 1 to 10:", total)
Output:
Sum of 1 to 10: 45
range(1, 10) stops before 10, so 10 is never added. The fix is range(1, 11).
print(total) inside the loop shows where the value goes wrong.assert. A line such as assert total == 55 stops the program the moment a result is wrong.Conclusion. A logical error lets the program run but makes it give the wrong result, and no error message appears. Precedence, boundary conditions and loop ranges are the usual causes. It is found only by comparing the output with an answer known to be right, through tracing, printing, the debugger and tests.
The rest of the answers
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.
What do you need?
Tap one.
The answers are on this page
You can read the first answer here. The box further down shows how to read all of them.
Read it here, any time
We keep checking and updating our papers and notes, and adding more. A saved copy would be an old version. Reading on munotes.in always gives you the latest one.
I paid, but I can't open it
Please type an email, or a 10-digit phone number.
Done
If we find your payment, we send a link to the email you paid with. Open it to read.
Check your email in 2 minutes. Also check Spam.
No email after 10 minutes?
Something else
Please write a little more, so we can help.
Your email app opens with this. You can add more there. We reply by email.
Found an error in this volume? Report it and we will check it against the paper.