0% found this document useful (0 votes)
3 views5 pages

Aktu Python Programming Model Question Paper

This set gives you model questions for you python exam conducted by aktu

Uploaded by

vishishthkumarj
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

Aktu Python Programming Model Question Paper

This set gives you model questions for you python exam conducted by aktu

Uploaded by

vishishthkumarj
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MODEL QUESTION PAPER (AKTU PATTERN)

Subject: Python Programming (BCC402)


Time: 3 Hours
Maximum Marks: 70

Instructions:
1. Attempt all Sections.
2. Assume suitable data wherever required.
3. Draw neat diagrams wherever necessary.
4. Use proper syntax and indentation in programming questions.

SECTION A
Short Answer Type Questions
Attempt all questions. (2 × 7 = 14 Marks)
Q1.
(a) Differentiate between the == operator and the is operator with a suitable code
example.
(b) What will be the output of the following statement?
print([i**2 for i in range(5) if i % 2 == 0])

(c) Name the NumPy function used to create an identity matrix.


(d) What is the significance of [Link]() in a Tkinter application?
(e) Explain the difference between / and // operators using examples.
(f) What does the readline() function return when End of File (EOF) is reached?
(g) Differentiate between local variables and global variables.
SECTION B
Long Answer Type Questions
Attempt any three questions. (7 × 3 = 21 Marks)
Q2.
Explain the Tower of Hanoi problem. Write a recursive Python program to solve the
Tower of Hanoi problem for n disks. Also explain its time complexity.

Q3.
Discuss the concept of Inheritance in Python. Differentiate between: 1. Multiple
Inheritance 2. Multi-level Inheritance
Illustrate both with suitable examples.

Q4.
Compare NumPy Arrays with Python Lists. Why is NumPy preferred for mathematical
and engineering applications?

Q5.
Explain the concept of Dictionary in Python. Write a Python program to sort a list of
dictionaries based on a specific key using a lambda function.

Q6.
Describe the purpose of try, except, else, and finally blocks in Exception Handling.
Write a Python program that handles ZeroDivisionError.

SECTION C
Unit-Wise Long Answer Questions
Attempt one part from each question. (7 × 5 = 35 Marks)

Q7. (Unit 1 & Unit 2)


(a)
Explain Higher Order Functions with respect to Lambda Expressions. Write a Python
program to filter even numbers from a list using the filter() function.
OR
(b)
Discuss the Python Programming Cycle. Explain why Python is called: 1. An Interpreted
Language 2. A Dynamically Typed Language

Q8. (Unit 3)
(a)
Explain List Comprehension in detail with syntax and examples. Write a Python
program using List Comprehension to generate all prime numbers between 1 and 50.

OR
(b)
Compare Sets and Tuples in Python. Explain the following set operations with suitable
examples: 1. Union 2. Intersection

Q9. (Unit 4)
(a)
Discuss different File Opening Modes in Python:
 r
 w
 a
 rb
 wb

Also write a Python program to count the total number of words in a text file.

OR
(b)
What are Generators in Python? How are they different from regular functions? Explain
the role of the yield keyword with a suitable example.
Q10. (Unit 5 – GUI)
(a)
Explain the three Tkinter Geometry Managers: 1. pack() 2. grid() 3. place()
Also discuss where each geometry manager should be used.

OR
(b)
Design a simple Tkinter Calculator Interface having:
 Two Entry fields for input numbers
 One Button to calculate sum
 One Label to display the result
Write the complete Python program.

Q11. (Unit 5 – Data & IDEs)


(a)
Explain the concept of DataFrames in Pandas. Write a Python program to: 1. Read a
CSV file 2. Display only those rows where a specific column value is greater than 100

OR
(b)
Compare the following IDEs: 1. PyCharm 2. VS Code 3. Spyder
Which IDE is best suited for Data Science applications and why?

Examination Strategy & Important Notes


Section A
 Focus on technical accuracy and syntax.
 Carefully revise:
o is vs ==
o / vs //
o Local vs Global variables
o Basic NumPy and Tkinter functions
Section B
 Recursion and OOP questions are highly important.
 Practice:
o Tower of Hanoi
o Fibonacci using recursion
o Types of inheritance
o Exception handling syntax

Section C
 Use diagrams and structured answers.
 For GUI questions, draw rough Tkinter window layouts.
 For Pandas/DataFrame questions, sketch sample table structures.
 Always write syntax with proper indentation.
 Mention advantages, applications, and examples wherever possible.

Pattern Reference
This model paper is designed according to the AKTU examination pattern and prepared
using previous year paper references. filecite turn0file0

You might also like