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

Python PDF

This document is a model question paper for the MGU BCA (Honours) third semester examination on Python programming. It includes three parts: Part A with very short answer questions, Part B with short answer questions, and Part C with essay questions, covering various Python programming concepts. The exam duration is 1.5 hours and the maximum marks are 50.

Uploaded by

antonyashik2006
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)
25 views2 pages

Python PDF

This document is a model question paper for the MGU BCA (Honours) third semester examination on Python programming. It includes three parts: Part A with very short answer questions, Part B with short answer questions, and Part C with essay questions, covering various Python programming concepts. The exam duration is 1.5 hours and the maximum marks are 50.

Uploaded by

antonyashik2006
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

MAHATMA GANDHI UNIVERSITY, KOTTAYAM

MGU BCA (HONOURS)

THIRD SEMESTER EXAMINATION

(2024 ADMISSION ONWARDS)

MG3SECBCA200: PYTHON PROGRAMMING

MODEL QUESTION PAPER

Duration: 1.5 Hrs Maximum Marks: 50

Students should attempt at least one question from each course outcome to enhance their
overall outcome attainability.

Part A: Very Short Answer Questions.

Answer All Questions. Each question carries 2 marks.

1. Demonstrate the significance of indentation in Python programming. [U][1]


2. Discuss the difference between `=` and `==` operators in Python. [U][1]
3. Write a Python statement to extract "gram" from "Programming". [U][1]
4. State the functions of break and continue statement in Python. [K][1]
5. Write a user-defined function to find largest of two numbers. [A][2]
6. Show with an example how to add a key-value pair to a dictionary. [A][2]
7. State the difference between `import module` and `from module import function`.
[K][2]
8. Write a Python code using Numpy to generate an array of even numbers between 10
and 20. [A][2]
9. Define a text file and a binary file. [A][3]
10. State the purpose of the try block in Python? [K][3]

(10 X 2 = 20 Marks)
Part B: Short Answer Questions.
Answer any 3 out of 5 Questions. Each question carries 5 marks
11. Construct a python program that checks whether a given year is leap year or not.[A][1]
12. Write a program that uses the `assert` statement to check if a given number is
positive, and display an error message if it is not. [A][2]
13. Differentiate between `pop()`, `popitem()`, and `clear()` functions in dictionaries with
suitable illustrations. [U][2]
14. Differentiate between stacked bar chart and grouped bar chart. [U][3]
15. Compare 2D and 3D plotting with examples. [U][3]
(3X 5 = 15 Marks)
Part C: Essay Questions.
Answer any 1 out of 2 Questions. Each question carries 15 marks
16. Explain the role of `append()`, `extend()`, `insert()`, `remove()`, `pop()`, `clear()`, and
`sort()` in lists with proper code illustrations. [U][2]
17. Outline different loop control statements in Python with suitable examples. [U][1]

(1 X 15 = 15 Marks)

You might also like