Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
39 views

PYTHON PROGRAMMING FebruaryMarch 2022

This document contains questions for a Python Programming exam. It includes 8 questions covering various Python concepts: 1. Features of Python and commonly used built-in types and functions. 2. List and tuple operators and functions in Python as well as string functions. 3. Methods of file objects like next(), truncate(), fileno(), and flush(). 4. Exception handling in Python using statements and methods with an example script. 5. Pattern matching and string searching functions like match(), group(), search(), split(), and sub(). 6. Differences between procedures/processes and threads as well as methods in the Thread class. 7. Tkinter widgets like Label
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

PYTHON PROGRAMMING FebruaryMarch 2022

This document contains questions for a Python Programming exam. It includes 8 questions covering various Python concepts: 1. Features of Python and commonly used built-in types and functions. 2. List and tuple operators and functions in Python as well as string functions. 3. Methods of file objects like next(), truncate(), fileno(), and flush(). 4. Exception handling in Python using statements and methods with an example script. 5. Pattern matching and string searching functions like match(), group(), search(), split(), and sub(). 6. Differences between procedures/processes and threads as well as methods in the Thread class. 7. Tkinter widgets like Label
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Code No: 157EY R18

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD


JN
B. Tech IV Year I Semester Examinations, February/March - 2022
PYTHON PROGRAMMING
(Electrical and Electronics Engineering)
TU
Time: 3 Hours Max. Marks: 75
Answer any Five Questions
All Questions Carry Equal Marks
---
H
1.a) What are the features of Python? Describe them briefly.
b) Discuss some commonly used built-in types, standard type operators, built-in functions in
python. [6+9]
U
2.a) Explain various operators and built-in functions related to list and tuples in python.
se
b) What is a string? List and discuss in detail about the built-in functions for python strings.
[7+8]
d
3. With an example script demonstrate the following methods of file object in python:
a) file.next() b) file.truncate() c) file.fileno() d) file.flush(). [15]
Pa
4. How various exceptions are detected and handled in python? Discuss various statements
and methods used for exception handling in python using sample script. [15]
pe
5. Explain the core functionality of the following pattern matching and string searching
functions in python:
a) match() b) group() c) search() d) split() e) sub() [15]
rs
6.a) Differentiate between procedures/processes and threads.
b) List and explain various methods available in Thread class of python. [5+10]
Fe
7. Describe the following Tkinter widgets using an illustrative python script.
a) Label b) Button c) Scale [5+5+5]

8. State the need of ORMs. Explain in detail about SQLObject ORM by considering
b
employee role database example. [15]
20
--ooOoo--
22

You might also like