Python
Python
PART –A
1. a) Define the scope and lifetime of a variable in Python. (2M)
b) Why is * called string repetition operator? (2M)
c) What are the features of tuple data structure? (3M)
d) Compare fruitful and void functions. (3M)
e) Is it possible to convert a class object into a floating type value? (2M)
f) Give the advantages of multi-threading. (2M)
PART -B
2. a) Python has developed as an open source project. Justify this statement. (7M)
b) What are identifiers? Discuss the rules to name an identifier. (7M)
3. a) What are the different loop control statements available in Python? Explain (7M)
with suitable examples.
b) Write a Python program that calculates number of seconds in a day. (7M)
7. a) Write a program for basic web browser using Tkinter which should have a Text (7M)
widget where the user can enter a URL and a Canvas to display the contents of
the page.
b) Explain data compression using LZMA algorithm. (7M)
1 of 1
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: R1621054 R16 SET - 2
PART –A
1. a) Define implicit conversion. (2M)
b) Differentiate between logical and bitwise operators. (3M)
c) What is cloning of List? (2M)
d) Give an example for local and global scope of the variables in a function. (3M)
e) Write the advantages of operator overloading. (2M)
f) What is the purpose of tracer() method of turtle? (2M)
PART -B
2. a) Describe the features of Python. (7M)
b) Python variables do not have specific types. Justify this statement with the help (7M)
of an example.
6. a) Write a Python program to create a histogram from a given list of integers. (7M)
b) How to create a user defined exceptions? Explain. (7M)
1 of 1
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: R1621054 R16 SET - 3
PART –A
1. a) List the rules to name an identifier. (2M)
b) Define chained conditionals. (2M)
c) What is the use of all(), any(), cmp() and sorted() in dictionary? (3M)
d) Write a brief note on PIP. (2M)
e) Differentiate between class variables and instance variables. (3M)
f) Give examples of commonly used widgets. (2M)
PART -B
2. a) Explain about the need for learning Python programming and its importance. (7M)
b) Write a Python program to demonstrate explicit conversion. (7M)
5. a) What are the different function prototypes? Explain with suitable examples. (7M)
b) Explain the concept of namespaces with an example. (7M)
1 of 1
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||
Code No: R1621054 R16 SET - 4
PART –A
1. a) Write steps to run a Python script. (3M)
b) Differentiate between integer and floating point numbers. (2M)
c) Give an example for List comprehension. (2M)
d) Define fruitful functions in Python. (3M)
e) What is class instantiation? (2M)
f) Which widget is used as a container to house other widgets and add borders? (2M)
PART -B
2. a) How is Python developed and supported? (7M)
b) What are literals? Explain with the help of examples. (7M)
3. a) Create two sets of integers, and compute their intersection and union by using (7M)
& and | operator expressions.
b) Write a Python program using while loop to print first N numbers divisible by 5. (7M)
4. a) What is Sequence in Python? Explain its operations with suitable examples. (7M)
b) Write a Python program to illustrate the comparison operators in tuple. (7M)
5. a) List out the types of Modules and Explain any two types in detail. (7M)
b) Explain installing packages via PIP. (7M)
1 of 1
WWW.MANARESULTS.CO.IN
|''|'''||''||'''||||