Python Programming (BCC302) AKTU previous year questions 2020–2026
Every Python Programming question from 11 AKTU papers, tagged by unit, topic and marks. A few recent questions from each unit are listed below; open the page to filter by unit, topic or mark type.
Unit 1: Introduction to Python – AKTU PYQs
- What are Python variables? Give an example of declaring numeric data types. (2 marks, 2026, Python Variables & Data Types)
- What are variables in Python? (2 marks, 2026, Python Variables & Data Types)
- What is a block in Python? (2 marks, 2026, Understanding Python Blocks)
- Explain Python basic operators and data types. Write a program to check if a number is even or odd using if-else. (7 marks, 2026, Python Basic Operators)
- Explain different types of basic operators in Python with examples. (7 marks, 2026, Python Basic Operators)
Unit 2: Program Flow Control – AKTU PYQs
- Differentiate between for loop using range and while loop in Python. (2 marks, 2026, For Loops)
- What is a while loop in Python? (2 marks, 2026, While Loops)
- Describe loop manipulation statements: pass, continue, break. Write a program to print prime numbers between 1 to 50 using for loop. (7 marks, 2026, Loop Manipulation)
- What are conditional statements in Python? Explain if, else, and elif with examples. (7 marks, 2026, Conditional Statements)
- Discuss for loops with strings and lists. Write a program to sum elements of a list. (7 marks, 2026, For Loops)
Unit 3: Complex Data Types & Functions – AKTU PYQs
- Explain string slicing in Python with an example. (2 marks, 2026, Strings)
- What is a tuple in Python? How is it different from a list? (2 marks, 2026, Tuples)
- What are functions in Python? (2 marks, 2026, Functions)
- Define dictionary in Python and give an example of its manipulation. (2 marks, 2026, Dictionaries)
- Discuss string operations and built-in functions. Write a program to count vowels in a string. (7 marks, 2026, Strings)
Unit 4: File Operations & Regular Expressions – AKTU PYQs
- What is a file pointer in Python? (2 marks, 2026, File Pointer Manipulation)
- What are read() and readline() functions in file handling? (2 marks, 2026, File Reading)
- What is the purpose of the seek() method in file handling? Demonstrate a program that copies content from one file to another. (7 marks, 2026, File Pointer Manipulation)
- Describe file writing functions: write(), writelines(). Write a program to write student records to a file. (7 marks, 2026, File Writing)
- Explain manipulating file pointer using seek(). Write a program to read last n lines from a file. (7 marks, 2026, File Pointer Manipulation)
Unit 5: Packages, GUI & OOP – AKTU PYQs
- What is an IDE in Python programming? (2 marks, 2026, Python Packages)
- Explain encapsulation in Python OOP. (2 marks, 2026, Object-Oriented Programming)
- What are Tkinter widgets? (2 marks, 2026, GUI Programming with Tkinter)
- What are Python packages? Explain the purpose of packages like NumPy, Pandas, and Matplotlib. (7 marks, 2026, Python Packages)
- Explain inheritance and polymorphism. Write a program showing multipleinheritance. (7 marks, 2026, Object-Oriented Programming)