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.
Course:B.Tech
Semester:Semester 3
Session:2022-23
University:AKTU / UPTU
Rate this paper
Questions Asked in 2022-23
Python Programming (KNC-302) — extracted question text
Section AAttempt all questions in brief. 1x10 = 10
- 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))
Section BAttempt any three of the following: 5x3 = 15
- 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
Section CAttempt any one part of the following: 5x1 = 5
- 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. Check the original PDF for equations, diagrams and complete wording. Extracted: 2026-08-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
Computer Organization And Architecture2022-23Fluid Mechanics And Fluid Machines2022-23Energy Science And Engineering2022-23Fluid Mechanics2022-23Electronic Devices2022-23Mathematics Iv2022-23Computer System Security2022-23Engineering Mechanics2022-23
View all B.Tech Semester 3 2022-23 papers →Syllabus & More PYQs
Paper solve karne se pehle unit-wise syllabus dekh lo