Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
233 views

29 Python Programming March 2023

This document outlines the questions for a Python Programming exam, divided into three parts. Part A contains 6 short answer questions worth 2 marks each. Part B contains 5 longer answer questions worth 5 marks each. Part C contains the most in-depth questions, with 4 worth 8 marks each. Overall, the exam tests students' knowledge of Python features, data types, functions, control flow, files, classes, objects, data visualization, and serialization.

Uploaded by

Bhagya T G
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
233 views

29 Python Programming March 2023

This document outlines the questions for a Python Programming exam, divided into three parts. Part A contains 6 short answer questions worth 2 marks each. Part B contains 5 longer answer questions worth 5 marks each. Part C contains the most in-depth questions, with 4 worth 8 marks each. Overall, the exam tests students' knowledge of Python features, data types, functions, control flow, files, classes, objects, data visualization, and serialization.

Uploaded by

Bhagya T G
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

r iiltiilfifi ffi tililtiiltffitiili NP - 318

2g
Ill Semester B.C.A. Degree Exhmination, March/April 2023
(NEP) (Freshers) (2022-23 and Onwards)
COMPUTER SCIENCE
Python Programming
Time : 2Tz Haurs Max. Marks:60

lnstruction : Answer all the Pafis.

PART _ A

Answer any 4 questions. Each question carries 2 marks : (4x2=$)

1. Why python is an interpreted language ?


2. Explain membership operators.

3. What is a tuple ? Give an example.


4. Define encapsulation and inheritance.

5. What is constructor method in python ?


6. What is a file ? Mention the type of files.

PART _ B

Answer any 4 questions. Each question carries 5 marks : (4x5=20)

7 - Explain the features o{*python.

8. What is string slicing in python ? Explain with examples.


L What is the difference between lists and tuples ? Explain with examples.

10. Explain how you create classes and objects in python.

11. Explain different file modes in python.

12. What is data visualization ? List the libraries that are used for data
visualization in python.

P.T.O.

1
NP - 318 I tiliilll tiilt ilt iilil ililt rui ilil

PART _ C

Answer any 4 questions. Each question carries 8 marks (4x8=$!)


. ^:;
:

13. a) What are tokens ? Explain various tokens in python with examples. 4
b) Explain core data types in python. 4

14. What are functions ? How to define and call a function in python ? Explain
with example. I
15. a) Explain if... elif... else control flow statement with example. 4
b) Write a program to perform indexing and slicing in lists. 4
16. How do you perform reading and writing files in python ? Explain with an
example program. I
17. Define pickling in python. Explain serialization and deserialization. I
18. a) Explain matplotlib. 4
b) Write oython code to create a simple plot using matolotlib module. 4

You might also like