PDS_PYQ
PDS_PYQ
/Seat No_______________
Marks
Q.1 (a) Define Python? List the important features of python. 03
(b) Explain following data structures of python with suitable 04
Example.
example.
1.1.String
List 2. Tuple
(c) List
2. ListExplain different programming styles in python. .
3. and
Tuple 07
4.
3. Dictionary
Tuple
Q.2 (a) 4. Dictionary
Differentiate rand and randn function in Numpy. 03
(b) ?Explain for and while loop in python with example. 04
(c) Explain Data science pipeline in Details. 07
OR
(c) Write a python program to check if a string is palindrome or not. 07
Q.3 (a) Explain Series in Pandas with example 03
(b) What are Python's dictionaries? Explain how to create a dictionary in 04
python?
(c) Explain following List methods in python with appropriate example. 07
a) append() b) insert() c) remove() d) clear() e) reverse()
OR
Q.3 (a) Compare the numpy and pandas based on their characteristics and usage. 03
(b) Explain break and continue statement in python? 04
(c) Explain Loops in Python with suitable example. 07
*************
Enrolment No./Seat No_______________
Q.3 (a) Write a Python program to copy the content of one file into other file. 03
(b) Differentiate the working of append() and extend() methods of list data 04
structure in Python with an example.
(c) What is the need of variable length argument? Demonstrate the use of 07
variable length argument with an example.
OR
Q.3 (a) List all the parameters of train_test_split() function and give the 03
significance of each parameter.
(b) Discuss the use of Heatmap in data science. How Heatmap can be plotted 04
using Python?
(c) Write a Python program to make sum of particular range using reduce and 07
lambda.
1
OR
Q.4 (a) What is the significance of Structured Array used in NumPy. Demonstrate 03
with an example.
(b) Differentiate join() and merge() functions in pandas. 04
(c) What is classification? Explain how logistic regression can be used for 07
classification?
Q.5 (a) List aggregations functions available in NumPy and demonstrate the use 03
of any two aggregation functions.
(b) Discuss the significance of box plot and histogram plot in data science. 04
(c) Explain the process of data wrangling in detail. 07
OR
Q.5 (a) List different ways for defining descriptive statistics for numeric data. 03
Explain any two in brief.
(b) Justify the use of dimensionality reduction in data science with suitable 04
example.
(c) Give the significance of data cleaning. Demonstrate the methods used for 07
data cleaning in Python.
*************