Python Programming (KNC402) - AKTU Question Paper 2021-22
B.Tech · Semester 4 · Free PDF Download
This is the official AKTU Python Programming Previous Year Question Paper for B.Tech Semester 4, academic session 2021-22. Published by Dr. A.P.J. Abdul Kalam Technical University (AKTU/UPTU), Lucknow. Free PDF download — no login required.
Course:B.Tech
Semester:Semester 4
Session:2021-22
University:AKTU / UPTU
Rate this paper
Questions Asked in 2021-22
Python Programming (KNC402) — complete question paper
Section AAttempt all q u e s t i o n s i n b r i e f . 2.5*4 = 10
- aDiscuss why Python is called as dynamic and strongly typed language? 1
- bHow pass statement is different from a comment? 2
- cWrite a for loop that prints numbers from 0 to 57, using range function. 2
- dWhat is the difference between Python Arrays and Lists? 3
Section B
- aWrite a python function named ComputeAverage to find averag e of a list of numbers. It should handle the exception if the list is empty an d return 0 in that case
- bImplement the binary search technique. 5
- cExplain the use of break and continue with a suitable examp le. 2
Section CAttempt any two p a r t o f t h e f o l l o w i n g : 4*2 = 8
- aWhat do you mean by operator precedence and associativity. Explain. 1
- bWrite short notes on i. The programming cycle for python ii. Type conversion in python
- cWrite Python program to swap two numbers without using Intermediate/Temporary variables. Prompt the user for input
- aWrite a program to check an input number is prime or not. 2
- bWrite a program that accepts a sentence and calculate the n umber of digits, uppercase and lowercase letters
- cWrite a program to check an input year is leap year or not. 2 Qno Questions CO
- aThere is a file named Input.Txt. Enter some positive number s into the file named Input.Txt. Read the contents of the file and if it is an odd number write it to ODD.TXT and if the number is even, write it to EVEN.TXT
- bDiscuss Exceptions and Assertions in Python. Explain with a suitable example. Explain any two built-in exceptions
- cWhat is the significance of module in Python? What are the methods of importing a module? Explain with suitable example
- aWhat do you mean by recursion? Write a recursive function t o compute the factorial of an input number N
- bImplement selection sort using Python 5
- cWhat are different types of inheritance supported by Python? Explain. 4
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 4 (2021-22) Papers
Other subjects from same semester and session
Communication Engineering2021-22Manufacturing Processes2021-22Networks Analysis Synthesis2021-22Basic Data Structure And Algorithms2021-22Operating Systems2021-22Technical Communication2021-22Material Science2021-22Maths Iv2021-22
View all B.Tech Semester 4 2021-22 papers →Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo