Unit 1 2 Marks
Unit 1 2 Marks
2 Marks
4 Marks
6 Marks
Unit 2
2 Marks
4 Marks
6 Marks
Unit 3
2 Marks
Describe Dictionary.(Samp)
Describe Tuples in Python.(W22)
4 Marks
6 Marks
Unit 5
2 Marks
6 Marks
Illustrate class inheritance in Python with an example.(Samp)
Unit 6
2 Marks
Show how try…except blocks is used for exception handling in Python with example.
(Samp)
Explain how try-catch block is used for exception handling in
python.(W22)
6 Marks
Program
4 Marks
Write a program to input any two tuples and interchange the tuple variable.(Samp)
Write a python program to read contents of first.txt file and write same content in
second.txt file.(Samp)
Write the output for the following if the variable fruit=’banana’: (Samp)
>>>fruit[:3]
>>>fruit[3:]
>>>fruit[3:3]
>>>fruit[:]
6 Marks
Design a class Employee with data members: name, department and salary. Create
suitable methods for reading and printing employee information.(Samp)