Python Programming PYQ 2022-23 AKTU Question Paper

AKTU · BTECH · Semester 3 · Python Programming · Session 2022-23 · PYQ

AKTU Python Programming previous year question paper 2022-23 for B.Tech Semester 3. Covers Introduction to Python, Program Flow Control, Complex Data Types…

Open the interactive reader to study this resource on AcademicArk.

Python Programming AKTU syllabus

  1. Unit 1: Introduction to Python
  2. Unit 2: Program Flow Control
  3. Unit 3: Complex Data Types & Functions
  4. Unit 4: File Operations & Regular Expressions
  5. Unit 5: Packages, GUI & OOP

Questions in Python Programming AKTU PYQ 2022-23

  1. Q1a. Explain the Programming Cycle for Python in detail. (1 marks, 2022-23)
  2. Q1a. Define the programming cycle for Python. (2 marks, 2022-23)
  3. Q1b. Describe the concept of List Slicing with a suitable example. (1 marks, 2022-23)
  4. Q1b. Describe the use of class `__init__()` method. (2 marks, 2022-23)
  5. Q1c. Show the way to import the module in python. (1 marks, 2022-23)
  6. Q1c. Explain features of any two Python IDEs. (2 marks, 2022-23)
  7. Q1d. Differentiate between Python Arrays and lists? (1 marks, 2022-23)
  8. Q1d. Discuss the purpose of the break and continue statement in loops. (2 marks, 2022-23)
  9. Q1e. Define floor division with an example. (1 marks, 2022-23)
  10. Q1e. Explain mutable sequences in Python. (2 marks, 2022-23)
  11. Q1f. Explain the difference between 'append' and 'extend' in Python? (1 marks, 2022-23)
  12. Q1f. Explain 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]) (2 marks, 2022-23)
  13. Q1g. What is a dictionary in Python? (1 marks, 2022-23)
  14. Q1g. Discuss the special methods __le__ and __ne__. (2 marks, 2022-23)
  15. Q1h. What is object-oriented programming (OOP) in Python? Give an example. (1 marks, 2022-23)
  16. Q1h. Discuss various file opening modes of python. (2 marks, 2022-23)
  17. Q1i. 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')) (1 marks, 2022-23)
  18. Q1i. Compare assert, try-except and raise statements. (2 marks, 2022-23)
  19. Q1j. What will be the output of the following code? list1 = ['M', 'o', 'n', 'k', 'y'] print("@".join(list1)) (1 marks, 2022-23)
  20. Q1j. Write python function to perform linear search. (2 marks, 2022-23)
  21. Q2a. Demonstrate five different built in functions used in the string. Write a program to check whether a string is a palindrome or not. (5 marks, 2022-23)
  22. Q2a. Write Python code snippet to display n terms of Fibonacci series using recursion. (10 marks, 2022-23)
  23. Q2b. Explain the following loops with a flow diagram, syntax, and suitable examples. I) For II) while (5 marks, 2022-23)
  24. Q2b. Write and explain an algorithm through python code to generate prime numbers. (10 marks, 2022-23)
  25. Q2c. Explain the continue, break, and pass statements with a suitable example. (5 marks, 2022-23)
  26. Q2c. Compare list and tuple data structure with suitable examples. Explain the concept of list comprehension. (10 marks, 2022-23)
  27. Q2d. Develop a program to calculate the reverse of any entered number. (5 marks, 2022-23)
  28. Q2d. Explain the python implementation of stack ADT. (10 marks, 2022-23)
  29. Q2e. Explain the list Comprehension with any suitable example. (5 marks, 2022-23)
  30. Q2e. Describe python program to implement selection sort. Simulate your code on the following data 2,52,1,5,2,54,62,64. (10 marks, 2022-23)
  31. Q3a. Illustrate Unpacking Sequences, Mutable Sequences, and List comprehension with examples. (5 marks, 2022-23)
  32. Q3a. Discuss various categories of operators in python. Find and explain stepwise solution of following expressions if a=3, b=5, c=10. i) a &b<<2//5**2+c^b ii) b>>a**2<<2 >> b**2^c**3 (10 marks, 2022-23)
  33. Q3b. Explain the lambda function. How it is helpful in the higher order function. Explain map() function with a suitable example. (5 marks, 2022-23)
  34. Q3b. Discuss why python is interpreted language. Explain history and features of python while comparing python version 2 and 3. (10 marks, 2022-23)
  35. Q4a. Discuss the different types of argument-passing methods in python. Explain the variable length argument with any suitable example. (5 marks, 2022-23)
  36. Q4a. Write a python program to count the vowels present in given input string. Explain the output of program through example. (10 marks, 2022-23)
  37. Q4b. Write short notes on the following with a suitable example I) Encapsulation II) Inheritance (5 marks, 2022-23)
  38. Q4b. Write a program that accepts sequence of lines as input and prints the lines after making all characters in the sentence capitalized. (10 marks, 2022-23)
  39. Q5a. Demonstrate the file 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. (5 marks, 2022-23)
  40. Q5a. Discuss list data structure of python. Explain various inbuilt methods of list with suitable example of each. (10 marks, 2022-23)

AKTU paper codes: BCC302, BCC402, BCC302H, BCC402H, KNC302, KNC402

Python Programming previous year papers

More Python Programming resources

Browse all notes · Semester 3 notes