Python Programming (BCC302) - AKTU Question Paper 2024-25
B.Tech · Semester 3 · Free PDF Download
This is the official AKTU Python Programming Previous Year Question Paper for B.Tech Semester 3, academic session 2024-25. Published by Dr. A.P.J. Abdul Kalam Technical University (AKTU/UPTU), Lucknow. Free PDF download — no login required.
Course:B.Tech
Semester:Semester 3
Session:2024-25
University:AKTU / UPTU
Rate this paper
Questions Asked in 2024-25
Python Programming (BCC302) — complete question paper · 70 marks · 3 Hours
Section AAttempt all questions in brief. 2 x 07 = 14
- aState how to handle exceptions in Python? Provide a simple example
- bWhat will be the output of the following Python co de? def compute(x): return [i**2 for i in x if i%2==0] print(compute([1, 2, 3, 4, 5])) def compute(x): return [i**2 for i in x if i%2==0] print(compute([1, 2, 3, 4, 5]))
- cExplain floor division with an example
- dDescribe the purpose of the ‘with’ statement in fi le handling?
- eBriefly describe the use of lambda functions in Py thon
- fDemonstrate how to assign a single value to a tupl e
- gExplain why numpy is used instead of python arrays for mathematical calculations?
Section BAttempt any three of the following: 07 x 3 = 21
- aDesign a basic calculator in Python that support s addition, subtraction, multiplication, division
- bDefine Membership and Identity Operators. Given
- b= 3 Distinguish between: (a is b) and (a = = b) ?
- cWrite a Python function to count the frequency o f each character in a
given string and return the output in a dictionary. Example: char_frequency("HELLO") returns {"H":1, "E":1, "L":2, "O":1} "O":1} - dWrite a program to reverse the contents of a fil e character by character, separating each character with a comma
- eCreate a pie chart using matplotlib to represent the following data: Languages Popularity Python 30 Java 25 JavaScript 15 Ruby 10
Section CAttempt any one part of the following: 07 x 1 = 07
- aWrite short notes on the following with examples
- a+ (Operator Precedence)
- c+A2 (Type Conversion)
- bWrite a program to validate email addresses usin g regular expressions. Criteria
- 1Must contain @ symbol
- 2Must contain domain name
- 3Should not have spaces
- aWrite a program to create a hollow pyramid patte rn given below
- bExplain the why loops are needed and the types o f loops in python. Discuss break and continue with example
- aWrite a function to find the longest word in a g iven list of words. Example: longest_word([‘apple’, ‘banana’, ‘cherry’]) returns ‘banana’
- bDistinguish between a Tuple and a List with exam ples. Explain with examples atleast 4 built-in methods of Dictionary
- aDiscuss different types of file modes in Python? Explain with examples
- bWrite a program to read a CSV file and display t he rows where a specific column value exceeds a given threshold
- aDiscuss the role of event handling in Tkinter. H ow can you bind events to widgets? Provide examples
- bWrite a program to read data from a CSV file 'st udents.csv', calculate the average marks for each student, and display the results
Question text is extracted from the official AKTU question paper PDF above. Hindi translations are omitted — every question is printed in English in the original paper. Last verified: 2026-08-23.
Python Programming — Other Year Papers
AKTU Python Programming PYQs from other sessions
More B.Tech Semester 3 (2024-25) Papers
Other subjects from same semester and session
Energy Science Engineering2024-25Food Science And Nutrition2024-25Data Structure2024-25Cyber Security2024-25Basics Data Structure Algorithms2024-25Universal Human Values And Professional Ethics2024-25Automation And Robotics2024-25Sensor Instrumentation2024-25
View all B.Tech Semester 3 2024-25 papers →Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo