0% found this document useful (0 votes)
6 views

python model question paper

This document is a model question paper for the Third Semester B.E. Degree Examination in Python Programming for Data Science at BMS Institute of Technology and Management. It outlines various modules covering topics such as Python features, data types, control statements, data structures, NumPy, and Pandas, with specific questions for each module. The paper is structured to assess students' understanding and application of Python programming concepts, with a total of 100 marks available.

Uploaded by

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

python model question paper

This document is a model question paper for the Third Semester B.E. Degree Examination in Python Programming for Data Science at BMS Institute of Technology and Management. It outlines various modules covering topics such as Python features, data types, control statements, data structures, NumPy, and Pandas, with specific questions for each module. The paper is structured to assess students' understanding and application of Python programming concepts, with a total of 100 marks available.

Uploaded by

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

BDS306B

USN 1 B Y

BMS INSTITUTE OF TECHNOLOGY AND MANAGEMENT


(An Autonomous Institute affiliated to Visvesvaraya Technological University,Belagavi)
SEMESTER END EXAMINATION MODEL QUESTION PAPER

Third Semester B.E. Degree Examination


Model Question Paper
Python Programming for Data Science
Time: 3 hrs. Max. Marks: 100

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

Describe the different types of conditional statements of python programming


3a. 10 CO2, K2
language with suitable examples.
Design and develop a python program to generate N elements in the Fibonacci
3b. series. 10 CO2, K3
OR
Describe the different types of looping statements of python programming
4a. language with suitable examples. 10 CO2, K2
Apply the suitable control statements and write a python program which read a
4b. word or a sentence as input and count the frequency of each vowel, number of 10 CO2, K3
digits, white space and total number of consonants.
Module – 3
Outline the concept of slicing of a list or tuple.
Consider lst=[10,20.5,3+5j,'py th on',[10,20]]
5a. Give the output of the following: 10 CO3, K2
i. lst[:len(lst):] ii. lst[1::] iii. lst[::2]
iv. lst[2:4] v. lst[:4:] vi. lst[-1::-1]
Write a python program create dictionary and print the frequency of every
5b. 5 CO3, K3
character in the given word or sentence.
Illustrate the operations for adding an element to the set, removing an element
5c. from set, set union, set intersection. 5 CO3, K2

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”

BMS INSTITUTE OF TECHNOLOGY AND MANAGEMENT Page 2 of 2


Downloaded by Dhanush R S ([email protected])

You might also like