Papers / AKTU / MCA / Python Programming
AKTU · MCA · 3rd semester

AKTU MCA Python Programming (BMC301) Question Paper 2025-26

UniversityDr. A.P.J. Abdul Kalam Technical University (AKTU), Lucknow
CourseMCA, Semester III
SubjectPython Programming (BMC301)
ExamTheory Examination 2025-26 (odd semester)
Time · Marks3 hours · 70 marks
SourceAKTU question paper, from the ABESIT question paper bank
View original PDF Other years

Note: Attempt all Sections. In case of any missing data; choose suitably.

Section A

Q1. Attempt all questions in brief · 2 × 7 = 14 marks

  1. What is the purpose of the id() function in Python?
  2. How does list slicing differ from string slicing in Python?
  3. State one key property that distinguishes a dictionary from a list in Python.
  4. What is the role of the __init__.py file in a Python package?
  5. Define an 'exception' in the context of Python programming.
  6. Differentiate between the break and continue statements in a loop.
  7. Why are tuples considered 'immutable' data types?

Section B

Q2. Attempt any three of the following · 7 × 3 = 21 marks

  1. CO-1 number or not. Explain the logic used. Demonstrate with an example how negative indexing and slicing work on Python
  2. 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
  3. CO-3 to calculate the factorial of a number. Describe the different file opening modes in Python. Write a program to read a
  4. 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
  5. 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

  1. CO-1 conventions, and line length. Why is adherence to these standards important?
  2. 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

  1. 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
  2. CO-2 list containing only the even numbers. Use list comprehension.

Q5

Attempt any one part of the following · 7 × 1 = 7 marks

  1. CO-3 How does this distinction affect the way arguments are passed to functions?
  2. 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

  1. 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
  2. CO-4 in a given text file.

Q7

Attempt any one part of the following · 7 × 1 = 7 marks

  1. 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
  2. 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.