python model question paper
python model question paper
USN 1 B Y
Note:Answer FIVE full questions, choosing ONE full question from each module.
Module – 1 CO,
Q. No Marks
RBT
1a. Brief out the different features of python programming language. 1 CO1, K2
1b Describe different datatypes available in python. 0 CO1, K2
. OR 1
2a With suitable examples, illustrate formatting the output using print( ) method. 10 CO1, K2
0
Give the importance of operator precedence and associativity rules. Evaluate the
following expression by applying the operator precedence and associativity rules
2b. 10 CO1, K2
For a=5, b=3,c=12,d=10 and e=3
i. a+b**(c//d)*e ii. a*(e+c)-d/b
Module – 2
Page 1 of 2
Downloaded by Dhanush R S ([email protected])
BDS306B
OR
Define list. List out the important features of list and demonstrate adding an
6a. 10 CO3, K2
element to the list using + operator, append( ) and insert ( ) methods.
Write a python program to read N elements in the list, search for a key in the list
6b. using binary search algorithm. 5 CO3, K3
Describe the shallow copy and deep copy operations with respected to data
6c. structures like list, tuple 5 CO3, K2
Module – 4
Develop python program to read Numpy array and print row (sum,mean std) and
7a. 5 CO4, K3
column (sum,mean,std)
How Ndarray differs from list? Demonstrate Create an Array, Intrinsic Creation
7b. 10 CO4, K2
of an Array, dtype Option of Ndarray.
How it is possible to convert a one dimensional array into a matrix? Illustrate
7c. with suitable example/s. 5 CO4, K2
OR
Write a python program using NumPy module reading and writing array data on
8a. 10 CO4, K3
files.
8b. Demonstrate Indexing, Slicing, and Iterating of Ndarray. 10 CO4, K2
How the array can be manipulated using NumPy module? Illustrate with suitable
8c. 5 CO4, K2
example/s.
Module – 5
9a. Develop a python program to read and print in the console CSV file. 10 CO5, K3
Define data frame in pandas. Describe how to define the dataframe, accessing of CO5, K2
9b. 10
elements from the dataframe with suitable examples.
OR
Develop a program for Reading and Writing Data on Microsoft Excel Files using CO5, K2
10a 10
Pandas.
. Illustrate the concept of data aggregation in Pandas with group iteration. 10 CO5, K2
10b
Course Outcomes (COs):
.
COs At the end of the course, the student will be able to
CO1 Describe the constructs of python programming
CO2 Use looping and conditional constructs to build programs.
CO3 Apply the concept of data structure to solve the real world problem
CO4 Use the NumPy constructs for matrix manipulations
CO5 Apply the Panda constructs for data analytics.
K1- Remembering K2 - Understanding K3 – Applying K4- Analyzing K5 - Evaluating K6 -Creating
“Satisfaction lies in the effort, not in the attainment, full effort is full victory”