AKTU MCA Python Programming (BMC301) Question Paper 2025-26
| University | Dr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow |
|---|---|
| Course | MCA, Semester III |
| Subject | Python Programming (BMC301) |
| Exam | Theory Examination 2025-26 (odd semester) |
| Time · Marks | 3 hours · 70 marks |
| Source | AKTU question paper, from the ABESIT question paper bank |
Note: Attempt all Sections. In case of any missing data; choose suitably.
Section A
Q1. Attempt all questions in brief · 2 × 7 = 14 marks
- What is the purpose of the id() function in Python?
- How does list slicing differ from string slicing in Python?
- State one key property that distinguishes a dictionary from a list in Python.
- What is the role of the __init__.py file in a Python package?
- Define an 'exception' in the context of Python programming.
- Differentiate between the break and continue statements in a loop.
- Why are tuples considered 'immutable' data types?
Section B
Q2. Attempt any three of the following · 7 × 3 = 21 marks
- CO-1 number or not. Explain the logic used. Demonstrate with an example how negative indexing and slicing work on Python
- CO-2 strings. Write a code snippet to reverse a string using slicing. Explain the concept of 'recursion' in Python functions. Write a recursive function
- CO-3 to calculate the factorial of a number. Describe the different file opening modes in Python. Write a program to read a
- CO-4 text file and count the number of lines in it. What is a DataFrame in the context of Python for data analysis? How is it
- CO-5 different from a Series? Write code to create a simple DataFrame using pandas.
Section C
Q3
Attempt any one part of the following · 7 × 1 = 7 marks
- CO-1 conventions, and line length. Why is adherence to these standards important?
- Write a Python program that takes a number as input and prints its multiplication table up to 10, using nested loops. Also, handle invalid input using exception handling.
Q4
Attempt any one part of the following · 7 × 1 = 7 marks
- CO-2 Under what circumstances would you prefer using a tuple over a list? Write a Python program that takes a list of numbers and returns a new
- CO-2 list containing only the even numbers. Use list comprehension.
Q5
Attempt any one part of the following · 7 × 1 = 7 marks
- CO-3 How does this distinction affect the way arguments are passed to functions?
- Write a Python function that accepts a dictionary as an argument and returns a new dictionary with keys and values swapped. Handle cases where values are not unique.
Q6
Attempt any one part of the following · 7 × 1 = 7 marks
- CO-4 each. How do these modules enhance the functionality of Python? Write a Python program that uses regular expressions to find all email addresses
- CO-4 in a given text file.
Q7
Attempt any one part of the following · 7 × 1 = 7 marks
- CO-5 suitable example. How do user-defined exceptions improve error handling? Write a Python program to read a CSV file using pandas, display its first five
- CO-5 rows, and handle any potential file-related exceptions.
Other years
More AKTU Python Programming papers on LearnAIFast.
This paper is reproduced for study purposes only. Copyright belongs to AKTU. Source: the question paper bank of ABES Institute of Technology, an AKTU-affiliated college. If you own the copyright and want it removed, email learnwithskillnest@gmail.com and we will take it down.