Python_Previous year QP
Python_Previous year QP
PART -B (5 x 15 = 75 Marks)
9. a. Discuss various loop control statements with example.
MCA DEGREE EXAMINATION, MAY 2022
Second Semester (OR)
b. Describe functions with function arguments using example.
PCA20C04J - PYTHON PROGRAMMING
(For the candidates admitted dring the academic year 2020-202l omwards) 10. a. Discuss about the file handling in python.
Time: Three hours Max. Marks: 100
(OR)
Answer Any Five Questions b. Explain the concept of inheritances and its types with
PART - A (5 x5= 25 Marks) example.
1. List out the features of python.
11. a. Explain about traverse a directory free in python.
2. Explain different data types avalable in python.
(OR)
3. Describe the access modes available in python. b. Explain process standard streams in python.
4. Explain about creating classes and objects in python.
12. a. Discuss about server socket methods in python.
5. Describe the OS module in python.
(OR)
6. Explain about parallel system tools. b. Describe python XML parser architectures with neat
7. Write about socket modules in python. diagram.
8. Explain tkinter methods for creating python application with 13. a. Design a calculator app using tkinter.
GUI.
(OR)
b. Explain about SQLite database operations in python.
4
1
PaRe
of3 2 12.a. 11.a. 10.a.
b. b.i.
b. i. i.
State Discuss Explain
moduleexamples. demonstrate
exceptionWrite DiscussDescribe tuples
language. Discuss function.
type()
Discuss
(ii) (i) (v) (iv (ii) (ii) (i)
the
the and
need about inheritance zip() the
parallel
system
program
existstools
following
rmdir(
getcwd()walk() ) ) the
) isfile(
abspath( in dictionaries
on
for
Write
the relation "is"
following detail.
urlib built-in use function
and
of a in between
in Explain is
super(
python in
(OR) python
(OR) methods and (OR) pythonexample.
withandetail.
(OR) not"
) tuples
in with user function,
programming operators
detail. of program
OS.path suitable
defined and
3 2 2 2 2 2 3 3 3 3
4 3 3 3 3
2 2 I 3I I
3 3 3 3 3
2
Page
of3 3
13.a.
b. i. b.i.
Discuss
scripts Explain Explain socket? How
tkinter.
in to
pythonbasic about about
handle
table and in
detail. in
entry
load python
MF2PCA20C04J
in
15
15 8
2 3 2 2
4 4
2
2 2