MId Question Bank - PDS
MId Question Bank - PDS
UNIT-1
Q.1. Explain the data type available in Python .
Q.2. Is String a mutable data type in python? Also explain the string operations length, indexing and
slicing in detail with an appropriate example.
Q.3. Write an python code for slicing to fetch first name and last name from full name of person and
display it.
Q.4. Explain range() function with suitable examples
Q.5. Compare and summarize four different coding styles supported by Python language. List Advantages
of Python
Q.6. Explain List, Tuple, Set and Dictionary in Python with example.
Q.7. Differentiate List, Tuple, Set and dictionary data types of python.
Q.8. Write a python code to find factorial of number using function and also with using recursion.
Q.9. Write a program to print Fibonacci series up to number given by user
Write a program to print following patterns.
1) 2) 3)
Q.10. * $$$$ #####
** $$$ ###
*** $$ #
**** $ ###
#####
UNIT-2
Q.1. What is the role of Python in Data science?
Q.2. Discuss why python is a first choice for data scientists?
Q.3. Which are the basic activities we performed as a part of data science pipeline? Summarize and
explain in brief. OR Explain different stages of the data science pipeline
Q.4 Discuss the role of indentation in python.
Q.5 Discuss major libraries available with python language with its application in the field of Data
Science.
UNIT-4
Q.1. List the features of matplotlib.
Q.2. What do you understand by Data visualization? Discuss some Python’s data visualization techniques.
Q.3. List various types of graph/chart available in the pyplot of matplotlib library for data visualization.
Explain any two of them in brief.
Q.4. Explain pie chart plot with appropriate examples.
Q.5. Explain scatterplots with example.
Q.6. Explain time series plot with appropriate examples.
Q.7. Compare bar graph, box-plot and histogram with respect to their applicability in data visualization.
Q.8. What is the use of scatter-plot in data visualization? Can we draw trendline in scatter-plot? Explain
it with example.
Q.9. Explain Labels, Annotation and Legends in MatPlotLib.
Q.10. Explain hist() function with code.
Q.11. Explain bar() function with code.
Q.12. Write a simple python program that draws a line graph where x = [1,2,3,4] and y = [1,4,9,16] and
gives both axis label as “X- axis”and “Y-axis”.
Q.13. Explain Box plot with example.
Write a Python programming to create a pie chart with a title of the popularity of programming
Q.14. Languages. Sample data:
Programming Langugage: Java, Python, PHP, JavaScript, C#, C++
Popularity: 22.2, 17.6, 8.8, 7.7, 6.7