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

SEM II Python

The document is a question paper for a Python Programming exam. It contains 3 parts with multiple choice and long answer questions testing concepts like operators, conditional statements, strings, files, functions, classes, exceptions, algorithms and data visualization in Python.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

SEM II Python

The document is a question paper for a Python Programming exam. It contains 3 parts with multiple choice and long answer questions testing concepts like operators, conditional statements, strings, files, functions, classes, exceptions, algorithms and data visualization in Python.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Reg. No.

Question Paper Code 12112

B.E. /B.Tech. - DEGREE EXAMINATIONS, APRIL /MAY 2023


Second Semester
Information Technology
(Common to Computer Science and Engincering. Artificial Intelligence and Data
Science, Computer Science andEngincering (10T), Computer Science and Engineering
(AIML), Computer Science and Engineering (Cyber Security) &M.Tech. - Computer
Science and Engineering)
20ESIT202 - PYTHON PROGRAMMING
(Regulations 2020)
Duration: 3 Hours Max. Marks: 100
PART - A(10 x2= 20 Marks)
Answer ALL Questions
Marks,
K-Level, co
1 2,K1,CO!
What is operator precedence?
2 2,KI, CO!
List the features of Python.
3 Write a C program to find whether the given number is odd or even. 2,K2,CO2

4 Write a Python program to find whether set Ais subset of set B. 2.K2,CO2

5 Comment with an example on the use of local and global variable. 2, K2,CO3
2.KI,CO3
What is Aliasing? Give Example.
2.KI.CO4
7. Define Errors and list its types.
8 What are classes and objects? 2,K1,CO4
2,K1.CO5
What do you mean by data visualization?
2,K1,CO
10. Name some common data structure of python's Pandas library.

PART - B (5 x 13 = 65 Marks)
Answer ALL Questions

|1. a) i) Illustrate Membership operators, ldentity operators and Logical 2A2cO


Operators.
(ii) Demonstrate a program to find Sum of n numbers Using for and 6.K2, CO!
While statement.
OR
/3K2Co
b) Explain Conditional if, alternative if, and chained conditional statements
with syntax, flowchart and example Python Programs.

12. a) What is string manipulation? Explain different functions of string 3.k2,c0


nanipulations in detail.
Al- Remember; K2 - Understand: K3 Appy: K4 -Anulyze, K5 - Evaluate, Ko -Create 12112
OR
b) txplain Lincar and binaty search with an cxlple.

a) Discuss the concept of passng the airay as an argunnent in a lunction with 3tt(u1
an exaniple program.
OR
b) Explain Packages in Python with suitable example.
14. a) llustrate in detail how text files are Read and Write in Python with 13k2 o
various COmmands.
OR
!3 K3C04
b) Write a Pthon program to handle exceptions like ZeroDivision Error.
Name Error. Type Eror. Key Error, Index Error.
7.K3COS
15. a) (i)Write a python program to plot a line graph.
6.K2 COS
(ii) Explain Array Indexing in Numpy.
OR
13 K2CO3
b) Describe various access specifiers with examples.
PART -C(1x 15 = 15 Marks)
7,K3.CO6
16. a) (i) Write aPython program to copy afilecharacter,
line by line into anew file.
word and line count in a 8K3.CO6
(i) Write a pvthon program to perform
file.
OR
b) (i) Define recursive function. Discuss with suitable example. 7,K2,CO6

(ii) Write a Python program to store 'n' numbers in a list and sort the list 8k3,CO6
using selection sort.

K5 - Evaluate: K6 -- Create 12112


K] -Remember, K2 - Understand: K3 - Appl: K4-Analyze;

You might also like