This document is an examination question paper for the M.C.A Degree in Python Programming, covering various topics such as Python syntax, data structures, exception handling, and object-oriented programming. It consists of three parts: Part A with short answer questions, Part B with detailed questions requiring explanations and coding examples, and Part C with practical programming tasks. The exam is scheduled for April/May 2022 and has a maximum score of 100 marks.
This document is an examination question paper for the M.C.A Degree in Python Programming, covering various topics such as Python syntax, data structures, exception handling, and object-oriented programming. It consists of three parts: Part A with short answer questions, Part B with detailed questions requiring explanations and coding examples, and Part C with practical programming tasks. The exam is scheduled for April/May 2022 and has a maximum score of 100 marks.
(woo 1ew6@zoveazus6) uso Aq pepeouMog
noopnys ==»
Siqoyene s susuinaen Stat
Reg.No:[ [ | | [ [ [|
Question Paper Code : 90245
M.C.A DEGREE EXAMINATIONS, APRIL/MAY 2022
First Semester
MC 4103 - PYTHON PROGRAMMING
(Regulations 2021)
Time : Three hours Maximum : 100 marks
Answer ALL questions.
PART A — (10 x 2= 20 marks)
1, What is python interpreter?
2. Differentiate break and continue statement in python.
3. What is tuple? What is the difference between list and tuple?
4, How do you define a package in python?
5. Which method is used to read the contents of a file which is already created?
6. List some few common Exception types
7. What is the use of dir() function?
8. State the purpose of flask in python.
9. How to define a class in python
10. Differentiate between an object and a class.
PART B — (5 x 13 = 65 marks)
11. (9) List the different operators available in Python. Elaborate the precedence
and associatively of operators with an example
Or
(b) List the three types of conditional statements. Explain them with
suitable examples,(woo'yew6®zoLe22us8) Usp fq papeomMoG
12.
13.
14
15,
ro)
b)
(a)
(a)
)
(b)
Explain the following with examples
4) Creating the list, . =
(ii) Accessing values in the h
(iii) Updating the list,
(iv) Deleting the list elements.
Or
(i) Write a python program to check whether given string is
palindrome or not 6)
(i) What is string slicing? Explain it with examples. Explain any four
methods used in Python string. (8)
Explain how exceptions are handled in Python with suitable examples.
Or
() 4 Write a Python code to count the number of words, number of
characters, number of lines in a text file. ®
(ii) State and explain various file modes used in Python. (6)
(i) Explain about the import statement in Python. (3)
(ii) Write a Python program to develop your own calculator package
and use the same. (10)
Or
Explain about python pandas framework pre-defined methods.
Explain about python OOPs concept with suitable examples.
Or
Explain about python inheritance and its type with examples
90245,(woo yew6Dsosegus6) Uso fq papeojMog,
NIOPNAS FY eee esse: wmesrommene
16. (a)
(b)
PART C— (1 15 = 15 marks)
Create a class cmployee with data members: name, department and
salary and ereate suitable methods for reading and printing employee
information
Or
() Write a Python programming to display a bar chart of the
popularity of programming Languages. (6)
Sample data:
Programming languages: Java, Python, PHP, Java Seript, C#, C++
Popularity: 22.2, 17.6, 8.8, 8, 7.7, 6.7
m to draw a scatter plot comparing two
Use marks of
a)
(i) Write a Python progra
subject. marks of Mathematics and Science.
10 students.
Test Data:
math_marks = [88
92, 80, 89, 100, 80, 60, 100, 80, 34]
science_marks = [35, 79, 79, 48, 100, 88, 32, 45, 20, 30]
marks-range = (10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
3 90245