B.TechSemester 32021-22Python ProgrammingKNC-302

Python Programming (KNC-302) - AKTU Question Paper 2021-22

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 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 3
Session:2021-22
University:AKTU / UPTU

Rate this paper

Questions Asked in 2021-22

Python Programming (KNC-302) — complete question paper

Section AAttempt all q u e s t i o n s i n b r i e f . 2*5 = 10
  • a
    Explain the Programmin g Cycle for Python in detail. 1
  • b
    What will be the output of the following Python code? while i< 3: print(i) else: print(0)
  • c
    What will be the output of the following Python code? def cube(x): return x * x * x x = cube(3) print x
  • d
    How do we define an Interface for an ADT? 4
  • e
    How do you perform a search in Python? 5
Section BAttempt any three o f t h e f o l l o w i n g : 5*3 = 15
  • a
    What do you mean by Python IDE ? Explain in detail. 1
  • b
    How can you randomize the items of a list in place in Pytho n? 2
  • c
    Explain Tuples and Unpacki ng Sequences in Python Data Structure. 3
  • d
    What are File input and out put operations in Python Programming? 4
  • e
    Solve the Tower of Hanoi problem for n= 3 disk and show all the steps. 5
Section CAttempt any one p a r t o f t h e f o l l o w i n g : 5*1 = 5
  • a
    Write a program in Python to ex ecute the Selection sort algorithm. 5
  • b
    Explain why python is consider ed an interpreted language. 1
  • a
    Write a Python program to construct the following pattern, using a nested for loop
  • b
    Write a program to produce Fibonacci series in Python. 4
  • a
    Write a Python program to change a given string to a new string where the first and last chars have been exchanged
  • b
    Write a Python program to add an item in a tuple. 3
  • a
    How to create and import a module in Python? 4
  • b
    Explain the algorithm Sieve of Eratosthene used in Python Programming
  • a
    Write a Recursive function in python BinarySearch(Arr,l,R,X ) to search the given element X to be searched from the List Arr hav ing R elements, where l represent slower bound and R represents the u pper bound
  • b
    Explain the terms Merge Lis t and Merge Sort in Python Programming. 5

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)

2x

Explain the Programmin g Cycle for Python in detail. 1

Appeared in: 2021-22 · 2022-23

2x

How to create and import a module in Python? 4

Appeared in: 2021-22 · 2022-23

Syllabus & More PYQs

Paper solve karne se pehle unit-wise syllabus dekh lo