0% found this document useful (0 votes)
4 views3 pages

U23cs382 ND24

This document is a question paper for the Python Programming course (U23CS382) at Sri Eshwar College of Engineering, detailing the exam structure for the November/December 2024 semester. It includes two parts: Part A with 10 short answer questions worth 20 marks and Part B with 5 detailed questions worth 80 marks. The questions cover various topics in Python programming, including data types, file operations, object-oriented programming, and data analysis.
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)
4 views3 pages

U23cs382 ND24

This document is a question paper for the Python Programming course (U23CS382) at Sri Eshwar College of Engineering, detailing the exam structure for the November/December 2024 semester. It includes two parts: Part A with 10 short answer questions worth 20 marks and Part B with 5 detailed questions worth 80 marks. The questions cover various topics in Python programming, including data types, file operations, object-oriented programming, and data analysis.
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
You are on page 1/ 3

Register Number

Question Paper Code: 6600

Sri Eshwar College of Engineering


(An Autonomous Institution)
Approved by AICTE, New Delhi and Affiliated to Anna University, Chennai
Kondampatti (Post), Kinathukadavu (Tk), Coimbatore – 641 202

Autonomous Semester End UG/PG Degree Examinations – Nov/Dec 2024

Second Semester
B.E. – Computer Science and Engineering
(Common to B.E. – ECE, CCE and B.Tech. – IT, CSBS)

U23CS382 – Python Programming

(Regulations 2023)

Duration: 3 Hours Maximum Marks: 100

Answer ALL Questions

Part A – (10 X 2 = 20 Marks)

Q. No. Question M CO# KL


1. What are the conditional statements used in python? 2 CO1 K1
2. Explain below operations with the example (i)Concatenation 2 CO1 K2
(ii)Repetition
3. Considering a list a= [1,2,3,4], How are you going to print each 2 CO2 K2
entry in this list by iterating through it?
4. What is indexing and negative indexing in Tuple? Identify the 2 CO2 K2
output of print tuple [1:3] if tuple = ( 'abcd', 786 , 2.23, 'john',
70.2 )?
5. Write a python program to open and write “hello world” into a 2 CO3 K1
file?
6. Enumerate the various ways a file can be read. 2 CO3 K2
7. Is OOP used in Python? 2 CO4 K1
8. What is the importance of data validation in CRUD operation in 2 CO4 K1
python?
9. How are data analysis libraries used in Python? What are some 2 CO5 K1
of the most common libraries?
10. Explain the rationale behind the Python Web Frameworks. 2 CO5 K2

Page 1 of 3
SECE/CoE/QPT/002/Rev. 00/03.05.2022
Part B – (5 X 16 = 80 Marks)
11 a) (i) Explain in detail about various data types in Python with an 8 CO1 K2
example?
(ii) Write a program to perform addition, subtraction, 8 CO1 K2
multiplication, integer division, floor division and modulo
division on two integer and float.
(Or)
11 b) (i) Illustrate the purpose of Iteration statements with relevant 8 CO1 K2
examples in python
(ii) Illustrate the need for and importance of functions in python. 8 CO1 K2
Write a python program to accept three numbers and find
the largest among them using functions.

12 a) (i) What are the basic list operations that can be performed in 10 CO2 K2
Python? Explain each operation with its syntax and example
(ii) Develop a program to sort the dictionary elements based on 6 CO2 K2
values.
(Or)
12 b) (i) Differentiate between lists, tuples and dictionaries? Give an 10 CO2 K2
example for their usage.
(ii) Develop a program to sort the elements of a list based on 6 CO2 K3
the length of the elements.

13 a) (i) Differentiate and demonstrate the Errors and Exceptions 10 CO3 K2


with examples
(ii) Develop a python program to print the no. of days to write 6 CO3 K3
to reach your birthday using module.
(Or)
13 b) (i) Explain in detail about Python Files, its types, functions and 10 CO3 K2
operations that can be performed on files with examples.
(ii) Write a program using regular expressions to verify the 6 CO3 K2
given number is an integer or float.

14 a) (i) Provide examples of how to set up a MongoDB database 10 CO4 K3


class for Python interactions.
(ii) Create a class and object with class and instance attributes 6 CO4 K3

Page 2 of 3
SECE/CoE/QPT/002/Rev. 00/03.05.2022
(Or)
14 b) (i) Demonstrate the concept of Python oops inheritance and 10 CO4 K3
method overriding in Python classes with an example.
(ii) Outline the basic methods of interacting with a MongoDB 6 CO4 K3
server

15 a) (i) Describe Array Indexing, Accessing Single Elements, Array 10 CO5 K3


Slicing: Accessing Subarrays using NumPy with examples
(ii) How can you handle missing data in pandas? 6 CO5 K2
(Or)
15 b) (i) Assume you have a CSV file named "student_data.csv" that 10 CO5 K3
contains a dataset of student data. Columns like "Name,"
"Age," "Gender," "Math_Score," and "Science_Score" are
included in the dataset. You wish to examine this data,
modify it in various ways, take some details out of the
dataset, and make a new Data Frame that only includes male
students who scored higher than average.
(ii) Which python library is used for interactive data 6 CO5 K2
visualization? Using this library create a Multiline Plot

Page 3 of 3
SECE/CoE/QPT/002/Rev. 00/03.05.2022

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy