Siddaganga Institute of Technology, Tumakuru - 572 103: Usn 1 S I 3MCA05
Siddaganga Institute of Technology, Tumakuru - 572 103: Usn 1 S I 3MCA05
Siddaganga Institute of Technology, Tumakuru - 572 103: Usn 1 S I 3MCA05
2 a) Explain briefly python’s standard data types with necessary code segments and its outputs. 10
b) Write a python program to check the give number is prime or not. 6
c) How to access values in lists and tuples? 4
3 a) What is method overloading? Differentiate the ways of implementing the same with other
oops language. Write a program to implement method overloading in pythonic way. 10
b) Define class inheritance with an example. 5
c) With syntax, explain import statement. 5
5 a) Differentiate between the except clause with no exceptions, with multiple exceptions and
try-finally clause. 6
b) Write a python program to count frequency of words in a file. 6
c) Explain different modes of opening files. 8
________