0% found this document useful (0 votes)
23 views

Python Programming SUPPLY R20 FEB-2024

Uploaded by

tripathyananta69
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
23 views

Python Programming SUPPLY R20 FEB-2024

Uploaded by

tripathyananta69
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
1 Code No: CS404PC [ R20 | H.T.No. | | 8 |R | | CMR ENGINEERING COLLEGE: : HYDERABAD UGC AUTONOMOUS IL-B.TECH-II-Semester End Examinations (Supply) - February- 2024 PYTHON PROGRAMMING (Common to CSE, IT) [Time: 3 Hours] [Max, Mar Note: This question paper contains two parts A and B. Part A is compulsory which carries 20 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks and may have a, b, ¢ as sub questions. PART-A (20 Marks) 1a) Define the scope and life time of a variable in python. 2M) b) Write the difference between operator and operand and list don String special [2M] operators. ©) Write a python code to write a file by opening it in W mode. [2M] ) How to handle multiple exceptions with single except clause? [2M] ¢) Write the difference between process and thread. 2M] f) Write various functions of Math module. 2M] 2) List out standard decision attributes of Tkinter module. [2M] . h) How to create label widget in python? PM] Discuss SQL commands/Statements used for creating, using and dropping a Database. [2M] Write about declarative mapping. PM] PAR’ (50 Marks) 2. Summarize various operators, built-in functions and standard library modules that [10M] deal with Python's numeric data type. OR 3.a) Write about various numeric data types in python with examples. [5M] 'b) Write a python program to count number of vowels in the given string. [SM] 4, Explain the following file built-in functions with clear syntax description. [1om} i) open() i file() fii) seek() iv) tell) v) read) oR 5. Howto create user defined exceptions? Explain with example program, (10m) 6a) What is the motivation behind parallelism and state how python achieves parallelism, [5M b) Explain Briefly about thread and treading module objects in python. [5M] ‘OR 7.) What is multithreading? Discuss how to start a new thread. [SM] ) what is mean by regular expression? How to find whether an email id entered by the [5M] user is valid or not using Python re module. 8. Consider a Python GUI program that produces a window with following widgets [10M] using Python code. i. A button to retrieve the next value in that list (if there is one) this button is displayed iffthere is no next value in the list. ii, A label to display the number of items being displayed and total number of items. OR 9. Develop a basic web browser using Tkinter which should have a text widget where [10M] the user can enter a URL and a Canvas to display the contents of the page. 10. Ia) ») Write a source code in Python to read single and multiple results of query execution [10M] using DB-API. OR Explain how database commands and queries are given to a data base by using mysql. [4M] Write a python program to create product table (pro-id, pro-name, quantity) using [6M] ORM.

You might also like