MCASemester 32025-26Python ProgrammingBMC301

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

MCA · Semester 3 · Free PDF Download

This is the official AKTU Python Programming Previous Year Question Paper for MCA Semester 3, academic session 2025-26. Published by Dr. A.P.J. Abdul Kalam Technical University (AKTU/UPTU), Lucknow. Free PDF download — no login required.

Course:MCA
Semester:Semester 3
Session:2025-26
University:AKTU / UPTU

Rate this paper

5 · 1 rating

Questions Asked in 2025-26

Python Programming (BMC301) — complete question paper · 70 marks · 3 Hours

Section A
  • a
    What is the purpose of the id() function in Python? CO
  • b
    How does list slicing differ from string slicing in Python? CO
  • c
    State one key property that distinguishes a dictionary from a list in Python. CO
  • d
    What is the role of the __init__.py file in a Python package? CO
  • e
    Define an 'exception' in the context of Python programming. CO
  • f
    Differentiate between the break and continue statements in a loop. CO
  • g
    Why are tuples considered 'immutable' data types? CO
Section B
  • a
    Write a Python program to check whether a given number is an Ar mstrong number or not. Explain the logic used. CO
  • b
    Demonstrate with an example how negative indexing and slicing work on Python strings. Write a code snippet to reverse a string using slicing. CO
  • c
    Explain the concept of 'recursion' in Python functions. Write a recursive function to calculate the factorial of a number. CO
  • d
    Describe the different file opening modes in Python. Write a pr ogram to read a text file and count the number of lines in it. CO
  • e
    What is a DataFrame in the context of Python for data analysis? H o w i s i t different from a Series? Write code to create a simple DataFrame using pandas. CO
Section C
  • a
    Explain Python coding standards (PEP 8) with respect to indenta tion, naming conventions, and line length. Why is adherence to these standards important? CO-1 K4 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. 4.Attempt any one part of the following: 07 x 1 = 07
  • a
    Compare the methods and operations available for lists and tupl es in Python. Under what circumstances would you prefer using a tuple over a list? CO
  • b
    Write a Python program that takes a list of numbers and returns a new list containing only the even numbers. Use list comprehension. CO-2 K3 5.Attempt any one part of the following: 07 x 1 = 07
  • a
    Discuss the difference between mutable and immutable data types in Python. How does this distinction affect the way arguments are passed to functions? CO-3 K4 Write a Python function that accepts a dictionary as an argumen t and returns a new dictionary with keys and values swapped. Handle cases where values are not unique. 6.Attempt any one part of the following: 07 x 1 = 07
  • a
    Explain the use of the random and math modules in Python with two examples each. How do these modules enhance the functionality of Python? CO
  • b
    Write a Python program that uses regular expressions to find al l email addresses in a given text file. CO-4 K3 7.Attempt any one part of the following: 07 x 1 = 07
  • a
    Explain the try, except, else, and finally clauses in Python exception handling with a suitable example. How do user-defined exceptions improve error handling? CO
  • b
    Write a Python program to read a CSV file using pandas, display i t s f i r s t f i v e rows, and handle any potential file-related exceptions. CO

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.