Python Programming (BCC302) - AKTU Question Paper 2023-24
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 2023-24. 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:2023-24
University:AKTU / UPTU
Rate this paper
Questions Asked in 2023-24
Python Programming (BCC302) — complete question paper · 70 marks · 3 Hours
Section AAttempt all q u e s t i o n s i n b r i e f .
- aDescribe the concept of list co mprehension with a suitable example 2
- bDifferentiate between / and // operator with an example 2
- cCompute the output of th e following python code: def count(s): for str in string.split(): s = “&”.join(str) return s print(count(“Python is fun to learn.”))
- dHow to use the functions define d in library.py in main.py 2
- eDescribe the difference be tween linspace and argspace. 2
- fExplain why the program generates an error. x = [‘12’, ’hello’, 456]
- gDescribe about different func tions of matplotlib and pandas. 2
Section BAttempt any three o f t h e f o l l o w i n g :
- aIllustrate Unpacking tuples, mutable sequences, and string c oncatenation with examples
- bIllustrate different list slicing constructs for the followi ng operations on the following list
- 1Return a list of numbers starting from the last to second item of the list
- 2Return a list that start from 3rd item to second last item
- 3Return a list that has only even position elements of list L to list M
- 4Return a list that starts from the middle of the list L
- 5Return a list that reverses all the elements starting from elem ent at index 0 to middle index only and return the entire list. Divide each element of the list b y 2 and replace it with the remainder
- cConstruct a function perfect_s quare(number) that returns a number if it is a perfect square otherwise it returns -1. For example: perfect_square(1) returns 1 perfect _square (2) returns -1
- dConstruct a program to change the contents of the file by re versing each character separated by comma: Hello!! Output
- eConstruct a plot for following dataset using matplotlib : 7 Food Calories Potassium fat Meat 250 40 8 Banana 130 55 5 Avocados 140 20 3 Sweet Potatoes 120 30 6 Spinach 20 40 1 Watermelon 20 32 1.5 Coconut wate Beans 50 26 2 Legumes 40 25 1.5 Tomato 19 20 2.5
Section CAttempt any one p a r t o f t h e f o l l o w i n g :
- aDetermine a python function re moventh(s,n) that takes an inp ut a string and an integer n>=0 and removes a character at index n. If n is beyond the length of s, then whole s is returned. For example: removenth(“MANGO”,1) returns MNGO removenth(“MANGO”,3) returns MANO
- bConstruct a program that accepts a comma separated sequence of words as input and prints the words in a comma-separated sequence after sortin g them alphabetically. Suppose the following input is supplied to the program: without, hello, bag, world Then, the output should be: bag, hello, without, world
- aA website requires the users to input username and password to register. Construct
- aprogram to check the validity of password input by users. Following are the criteria for checking the password
- 1At least 1 letter between [a-z]
- 2At least 1 number between [0-9]
- 3At least 1 letter between [A-Z]
- 4At least 1 character from [$#@]
- 5Minimum length of transaction password: 6
- 6Maximum length of transaction password: 12 Your program should accept a sequence of comma separated passwo rds and will check them according to the above criteria. Passwords that matc h the criteria are to be printed, each separated b y a comma
- bExplore the working of while , and for loop with examples. 7
- aConstruct a function ret smaller(l) that returns smallest li st from a nested list. If two lists have same length then return the first list that is e ncountered. For example: ret smaller([ [ -2, -1, 0, 0.12, 1, 2], [3, 4, 5], [6 , 7, 8, 9, 10], [11, 12, 13, 14, 15]]) returns [3,4,5] ret smaller([ [ -2, -1, 0, 0.12, 1, 2], [‘a’, ’b’, ’c’, ’d’, 3, 4, 5], [6 , 7, 8, 9, 10], [11, 12, 13, 14, 15]]) returns [6 , 7, 8, 9, 10]
- bConstruct following filters
- 1Filter all the numbers
- 2Filter all the strings starting with a vowel
- 3Filter all the strings that contains any of the following noun: A g r a , Ramesh, Tomato, Patna. Create a program that implements these filters to clean the text
- aChange all the numbers in the file to text. Construct a program for the same. Example: Given 2 integer numbers, return their product only if the product is equal to or lower than 10. And the result should be: Given two integer numbers, return their product only if the product is equal to or lower than one zero
- bConstruct a program which accepts a sequence of words separa ted by whitespace as file input. Print the words composed of digits only
- aConstruct a program to read cities.csv dataset, remove last column and save it in an array. Save the last column to another array. Plot the first two columns
- bDesign a calculator with the following buttons and functiona lities like addition, subtraction, multiplication, division and clear
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 (2023-24) Papers
Other subjects from same semester and session
Energy Science Engineering2023-24Fluid Mechanics2023-24Electronic Devices2023-24Data Structure2023-24Basic Signals Systems2023-24Cyber Security2023-24Basics Data Structure Algorithms2023-24Universal Human Values And Professional Ethics2023-24
View all B.Tech Semester 3 2023-24 papers →Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo