Question Paper Python
Question Paper Python
SECTION A
(Compulsory)
to solve
1. (a) What is an algorithm? Write an algorithm
the quadratic equation. (4)
P.T.0.
1020 2
groupDict = {'group': {
'student': {'name': 'Mike',
'marks': {physics: 70, history': 80}
}
'section': 'A'
P.T.0.
1020 4
(11i) try:
num = 8
print(num + 'hello')
print(num / 4)
except ZeroDivisionError:
print(Divided by zero')
except(ValueError,TypeError):
print(Error occurred)
finally:
print('Stop')
1020 5
SECTION B
S1
print(k, end = ", ")
P.T.0.
1020 6
(i) break
(ii) continue
(ii1) pass
print(percent)
finally:
print('Completed!")
Explain the output corresponding to the following
function calls.
P.T.0.
1020 10
filel.read()
filel.close()
(i) x=0
print(5/x)
(ii) int('Morning')
(iv) Ll = [11,22,33,44,55]
print(LI[5])
i) init
(ii)_str
(ii) del
(iv) main
P.T.0.
1020 12