0% found this document useful (0 votes)
6 views2 pages

Question Model in Python

Uploaded by

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

Question Model in Python

Uploaded by

nithyasree9344
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Here’s a concise and well-structured model question paper for a 2nd-year BCA Python

programming course. It covers a mix of theoretical and practical questions to test


understanding and application skills.

Model Question Paper


Subject: Python Programming

Time: 3 Hours

Maximum Marks: 100

Part A – Short Answer Questions (10 × 2 = 20 Marks)

Answer ALL questions. Each question carries 2 marks.

1. What are Python's key features that make it popular for programming?
2. Differentiate between mutable and immutable data types in Python.
3. Write the syntax for a for loop in Python.
4. What is the purpose of the pass statement in Python?
5. Define a Python dictionary with an example.
6. Explain the difference between is and == operators.
7. What is the use of the break statement in loops?
8. Write a Python program to find the length of a string.
9. What is the purpose of the try-except block in Python?
10. How do you create a virtual environment in Python?

Part B – Descriptive Questions (5 × 10 = 50 Marks)

Answer ANY FIVE questions. Each question carries 10 marks.

1. Explain Python's data types with examples.


2. Write a Python program to check if a given number is prime or not.
3. Discuss the concept of functions in Python. Write a program to demonstrate the use of
default arguments.
4. Explain file handling in Python. Write a program to read a file and count the number
of words in it.
5. What are Python modules? Explain how to create and import a module with an
example.
6. Write a Python program to sort a list of tuples based on the second element.
7. Explain the concept of object-oriented programming in Python with an example of a
class and object.
Part C – Practical Questions (2 × 15 = 30 Marks)

Answer ANY TWO questions. Each question carries 15 marks.

1. Write a Python program to implement a simple calculator that performs addition,


subtraction, multiplication, and division.
2. Write a Python program to generate Fibonacci numbers up to a given number using
recursion.
3. Create a Python class Student with attributes name, roll_no, and marks. Write
methods to display student details and calculate the grade based on marks.
4. Write a Python program to demonstrate the use of map(), filter(), and reduce()
functions with examples.

Instructions:

 Use proper comments in your code for clarity.


 Ensure your answers are neat and legible.
 Attempt all parts for full credit.

This paper is designed to assess both theoretical understanding and practical coding skills,
ensuring a balanced evaluation.

You might also like