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

Python Programming Sept 2021

1. The document contains questions from 5 units of a Python programming exam. It covers topics like operators, conditional statements, loops, functions, OOP concepts, files handling, and exceptions. 2. Questions test concepts like explicit type conversion, break and continue keywords, string operations, comparison of for and while loops, list methods, function with return values, installing packages using PIP, class and method creation, method overriding, exception handling, and GUI elements like radio buttons and canvas. 3. Students have to answer 5 questions, selecting one from each unit, covering concepts around operators, loops, data types, OOPs, files handling, exceptions and GUI programming in Python.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Python Programming Sept 2021

1. The document contains questions from 5 units of a Python programming exam. It covers topics like operators, conditional statements, loops, functions, OOP concepts, files handling, and exceptions. 2. Questions test concepts like explicit type conversion, break and continue keywords, string operations, comparison of for and while loops, list methods, function with return values, installing packages using PIP, class and method creation, method overriding, exception handling, and GUI elements like radio buttons and canvas. 3. Students have to answer 5 questions, selecting one from each unit, covering concepts around operators, loops, data types, OOPs, files handling, exceptions and GUI programming in Python.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Code No: R201225 R20 SET - 1

I B. Tech II Semester Regular Examinations, September- 2021


PYTHON PROGRAMMING
(Com. To CSE, IT, CSE-AI&ML,CSE-AI, CSE-DS, CSE-AI&DS, AI&DS)
Time: 3 hours Max. Marks: 70
Answer any five Questions one Question from Each Unit
All Questions Carry Equal Marks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
UNIT-I
1 a) Summarize the precedence of mathematical operators in Python. (7M)

b) Illustrate various conditional statements used in Python programming. (7M)


Or
2 a) Write a Python program to demonstrate explicit type conversion. (7M)
b) Demonstrate the use of break and continue keywords in looping structure using a code (7M)
snippet.
UNIT-II
3 a) Write a program to compute only even numbers sum within the given natural number (7M)
using a continue statement.
b) Is String a mutable data type? Also explain the string operations length and slicing in (7M)
detail with an appropriate example
Or
4 a) Compare and contrast for loop and while loop. (7M)
b) Write a Python program to check whether a given number is Armstrong number or not. (7M)
UNIT-III
5 a) Does mutability support for list, if yes explain any two methods with example? (7M)
b) Write a program to read one subject mark and print pass or fail Use single return values (7M)
function with argument.
Or
6 a) Write a brief note on PIP. Explain installing packages via PIP. (7M)
b) Write a Python program to read a word and print the number of letters, vowels (7M)
and percentage of vowels in the word using a dictionary.
UNIT-IV
7 a) Create a class Employee with data members name, department and salary. Create suitable (7M)
methods for reading and printing employee information.
b) How to implement method overriding in Python? Explain. (7M)
Or
8 a) Write a Python program that reads a text file and changes the file by capitalizing each (7M)
character of file.
b) Illustrate the concept of pure function with Python code. (7M)
UNIT-V
9 a) What s the difference between else block and finally block in exception (7M)
handling? Explain with an example program.
b) How to create two radio button sets (one for gender and another for Indian or not) on the (7M)
same canvas? Illustrate.
Or
10 Illustrate the use of the four main elements of scratch- Programming palette, storage (14M)
area, Sprites and Script.
1 of 1

|''|'||||''|'''|||'|

You might also like