Python Programming (KNC-402) - AKTU Question Paper 2022-23
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 2022-23. 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:2022-23
University:AKTU / UPTU
Rate this paper
Questions Asked in 2022-23
Python Programming (KNC-402) — complete question paper
Section AAttempt all questions in brief. 2 x 10 = 20
- aDefine the programming cycle for Python
- bDescribe the use of class `__init__()` method
- cExplain features of any two Python IDEs
- dDiscuss the purpose of the break and continue stat ement in loops
- eExplain mutable sequences in Python
- fExplain the output of following function. defprintalpha (abc_list, num_list): for char in abc_list: for num in num_list: print(char, num) return printalpha (['a', 'b', 'c'], [1, 2, 3])
- gDiscuss the special methods __le__ and __ne__
- hDiscuss various file opening modes of python. i. Compare assert, try -except and raise statements. j. Write python function to perform linear search
Section BAttempt any three of the following: 10x3=30
- aWrite Python code snippet to display n terms of Fibonacci series using recursion
- bWrite and e xplain an algorithm through python code to generate prime numbers
- cCompare list and tuple data structure with suitable example s. Explain the concept of list comprehension
- dExplain the python implementation of stack ADT
- eDescribe python program to implement selection s ort. Simulate your code on the following data
Section CAttempt any one part of the following: 10x1=10
- aDiscuss various categories of operators in python. Find and explain stepwise solution of following expressions if a=3, b=5, c=10
- bDiscuss why python is interpreted language. Expl ain history and features of python while comparing python version 2 and 3
- aWrite a python program to count the vowels present in given input string. Explain the output of program through example
- bWrite a program that accepts sequence of lines as i n put and prints the lines after making all characters in the sentence capitalized. e.g. If Input: Hello world Practice makes perfect Then, Output: HELLO WORLD PRACTICE MAKES PERFECT
- aDiscuss list data structure of python. Explain v arious inbuilt methods of list with suitable example of each
- bCompare list and dictionary data structure. Expl ain various dictionary methods with suitable examples of each
- aDiscuss the concept of Iterators in python . Explain , how we can create text file in python? Describe python program to write the num ber of letters and digits in given input string into a File object
- bIllustrate through examples, how we can implemen t different type of inheritance in python? Explain the static, instance and class method through suitable example
- aExplain the Tower of Hanoi problem and its recur sive solution in Python
- bWrite python program to implement merge sort alg orithm. Discuss, how we can compare the time complexity of two algorithms?
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 (2022-23) Papers
Other subjects from same semester and session
Mathematics V2022-23Introduction To Soft Computing2022-23Networks Analysis Synthesis2022-23Engineering Mathematics Iv2022-23Technical Communication2022-23Microprocessor2022-23Material Testing And Construction Practices2022-23Energy Science And Engineering2022-23
View all B.Tech Semester 4 2022-23 papers →Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo