Python Programming (KNC-302) - AKTU Question Paper 2022-23
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 2022-23. Published by Dr. A.P.J. Abdul Kalam Technical University (AKTU/UPTU), Lucknow. Free PDF download — no login required.
Rate this paper
Questions Asked in 2022-23
Python Programming (KNC-302) — complete question paper
- aExplain the Programming Cycle for Python in detail
- bDescribe the concept of List Slicing with a suitable example
- cShow the way to import the module in python
- dDifferentiate between Python Arrays and lists?
- eDefine floor divis ion with an example
- fExplain the difference betwee n 'append' and 'extend' in Python?
- gWhat is a dictionary in Python?
- hWhat is object-oriented progr amming (OOP) in Python? Give an example. (i) What will be the output of the following python code def count1(s): vowels = "AEIOUaeiou" count = 0 for c in s: if c in vowels: count += 1 return count print(count1(‘I love India’)) (j) What will be the outpu t of the following code? list1 = ['M', 'o', 'n', 'k', 'y'] print("@".join(list1))
- aDemonstrate five d ifferent built in functions used in the s tring. Write a program to check whether a string is a palindrome or not
- bExplain the following loops with a flow diagram, syntax, an d suitable examples. I) For II) while
- cExplain the continue, break , and pass statements with a suitable example
- dDevelop a program to calculat e the reverse of any entered number
- eExplain the list Comprehen sion with any suitable example
- aIllustrate Unpacking Sequences, Mutable Sequences, and List comprehension with examples
- bExplain the lambda function. How it is helpful in the highe r order function. Explain map() function with a suitable example
- aDiscuss the different types o f argument-passing methods in python. Explain the variable length argument with any suitable example
- bWrite short notes on the following with a suitable example I) Encapsulation II) Inheritance
- aDemonstrate the fi le handling procedure in detail. Write a python code to create a file with ‘P.txt’ name and write your name and father’ s name in this file and then read this file to print it
- bDemonstrate the ‘Sieve of Er atosthenes’ theorem and write t he python function to print prime numbers between 1 to 100
- aDevelop and write the python code of selection sort to sort 41,65,43,91,12,14,62 elements. Also, explain its complexity
- bExplain Binary search with its python code and complexity
- aExplain the importance of Ex ception handling in any object- oriented programming language. Explain try exceptions and finally block with any suitable example
- bSummarize the ‘Tower of Hanoi’ puzzle and write its recursi ve function to implement it
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.
Repeated Questions — KNC-302
Questions that appeared in more than one session, found by comparing 2 years of Python Programming papers (2021-22, 2022-23)
Explain the Programming Cycle for Python in detail
Appeared in: 2021-22 · 2022-23
Show the way to import the module in python
Appeared in: 2021-22 · 2022-23
Python Programming — Other Year Papers
AKTU Python Programming PYQs from other sessions
More B.Tech Semester 3 (2022-23) Papers
Other subjects from same semester and session
Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo