[go: up one dir, main page]

0% found this document useful (0 votes)
50 views9 pages

PDS Question Paper

QP
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)
50 views9 pages

PDS Question Paper

QP
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/ 9

Seat No.: ________ Enrolment No.

___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE- SEMESTER–V (NEW) EXAMINATION – WINTER 2020
Subject Code:3150713 Date:22/01/2021
Subject Name:Python for Data Science
Time:10:30 AM TO 12:30 PM Total Marks: 56
Instructions:
1. Attempt any FOUR questions out of EIGHT questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.

MARKS

Q.1 (a) Discuss the role of indentation in python. 03


(b) Explain range() function with suitable examples. 04
(c) Write a python program to find the factorial of a given number using 07
recursion.

Q.2 (a) Explain sampling in terms of data science? 03


(b) List and explain different coding styles supported by python. 04
(c) Discuss why python is a first choice for data scientists? 07

Q.3 (a) Explain TF-IDF transformations. 03


(b) Explain categorical variables in detail. 04
(c) Write a python program to read the data from XML file using pandas 07
library.

Q.4 (a) Describe date time transformation using datetime module. 03


(b) Explain a bag of words model in detail. 04
(c) Explain imputation in detail with example. 07

Q.5 (a) List the features of matplotlib. 03


(b) Write a python program to read data from a text file using pandas 04
library.
(c) Explain time series plot with appropriate examples. 07

Q.6 (a) List the type of plots that can be drawn using matplotlib. 03
(b) Write a python program to read data from CSV files using pandas. 04
(c) Explain pie chart plot with appropriate examples. 07

Q.7 (a) List and explain interfaces of SciKit-learn. 03


(b) List the multiprocessing tasksthat can be done using SciKit-learn? 04
(c) Define the classification problem. How can it be solved using 07
1
SciKit-learn?

Q.8 (a) Define EDA. List the tasks need to be carried out in EDA? 03
(b) How hash functions can be useful to solve data science problems? 04
(c) Define the regression problem. How can it be solved using SciKit- 07
learn?

*************

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–V (NEW) EXAMINATION – WINTER 2021
Subject Code:3150713 Date:15/12/2021
Subject Name:Python for Data Science
Time:02:30 PM TO 05:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Simple and non-programmable scientific calculators are allowed.

MARKS
Q.1 (a) What is the role of Python in Data science? 03
(b) Differentiate List and Tuple in Python 04
(c) Explain data science pipeline in details. 07

Q.2 (a) What is HTML parsing? 03


(b) Write a python code to find factorial of number using function. 04
(c) Explain Dictionary in Python with example 07
OR
(c) Is String a mutable data type? Also explain the string operations 07
length, indexing and slicing in detail with an appropriate
example

Q.3 (a) List and explain any three Magic function. 03


(b) Explain Slicing rows and columns with example. 04
(c) What do you mean by missing values? Explain the different ways 07
to handle the missing value with example.
OR
Q.3 (a) What is Categorical Variables? Explain it with example. 03
(b) How to read data from relational database? Briefly explain it. 04
(c) What is the use of following operations on Panda’s Data Frames? 07
Explain with a small example of each.
1. shape 2. tail() 3. describe()

Q.4 (a) Explain hist() function with code. 03


(b) Write a program using Numpy to count number of “C” element 04
wise in a given array.
(c) What do you understand by Data visualization? Discuss some 07
Python’s data visualization techniques.
OR
Q.4 (a) Explain bar() function with code. 03
(b) What are the different ways to remove duplicate values from 04
dataset?
(c) Write a simple python program that draws a line graph where x 07
= [1,2,3,4] and y = [1,4,9,16] and gives both axis label as “X-
axis”and “Y-axis”.

Q.5 (a) What is Scikit-learn? 03


(b) Explain Box plot with example. 04
Page 1 of 2
(c) Write a Python programming to create a pie chart with a title of 07
the popularity of programming Languages.
Sample data:
Programming languages: Java, Python, PHP, JavaScript, C#,
C++
Popularity: 22.2, 17.6, 8.8, 8, 7.7, 6.7
OR
Q.5 (a) Define covariance and correlation 03
(b) Explain scatterplots with example. 04
(c) What is Data Wrangling process? Define data exploratory data 07
analysis? Why EDA is required in data analysis?

******All THE BEST*******

Page 2 of 2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–V (NEW) EXAMINATION – SUMMER 2021
Subject Code:3150713 Date:07/09/2021
Subject Name:Python for Data Science
Time:10:30 AM TO 01:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Simple and non-programmable scientific calculators are allowed.

MARKS
Q.1 (a) Differentiate the list and dictionary data types of python by their 03
characteristics along with example in brief.
(b) What do you mean by slicing operation in string of python? Write an 04
example of slicing to fetch first name and last name from full name
of person and display it.
(c) Which are the basic activities we performed as a part of data science 07
pipeline? Summarize and explain in brief.

Q.2 (a) What is the core competencies needed to become a data scientist? 03
Explain in brief.
(b) Compare and summarize four different coding styles supported by 04
Python language.
(c) Summarize the characteristics of NumPy, Pandas, Scikit-Learn and 07
matplotlib libraries along with their usage in brief.
OR
(c) What do you mean by prototyping? List the phases of prototyping 07
and experimentation process and explain in brief.
Q.3 (a) Compare the numpy and pandas on the basis of their characteristics 03
and usage.
(b) For what purpose sampling is used. Demonstrate random sampling 04
with example.
(c) What is the need of streaming the data? Explain data uploading and 07
streaming data with example.
OR
Q.3 (a) How XPath is useful for analysis of html data? Explain in brief. 03
(b) Define term n-gram. Explain the TF-IDF techniques. 04
(c) List the techniques to handle missing data. Explain various 07
techniques with example.

Q.4 (a) List various types of graph/chart available in the pyplot of matplotlib 03
library for data visualization. Explain any two of them in brief.
(b) What kind data is analyzed with Bag of word model? Explain it with 04
example.
(c) What do you mean by time series data? How can we plot it? Explain 07
it with example to plot trend over time

OR

1
Q.4 (a) Compare bar graph, box-plot and histogram with respect to their 03
applicability in data visualization.
(b) Define stemming. Explain the concept of stemming with example. 04
(c) What is the use of scatter-plot in data visualization? Can we draw 07
trendline in scatter-plot? Explain it with example.

Q.5 (a) Define the term Data wrangling. Explain the steps needed to perform 03
data wrangling.
(b) Why we need to perform Z-score standardization in EDA? Justify it 04
with example.
(c) What is the use of hash function in EDA? Express various hashing 07
trick along with example.
OR
Q.5 (a) What do you mean by Exploratory Data Analysis (EDA)? How t-test 03
is useful for EDA?
(b) What do you mean by covariance? What is the importance of 04
covariance in data analysis? Explain it with example.
(c) List different way for defining descriptive statistics for 07
Numeric Data. Explain them in brief.

*************

2
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–V (NEW) EXAMINATION – WINTER 2022
Subject Code:3150713 Date:04-01-2023
Subject Name:Python for Data Science
Time:10:30 AM TO 01:00 PM Total Marks:70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Simple and non-programmable scientific calculators are allowed.

Q.1 (a) What is the role of python in data science? 03


(b) Explain the input function of python that demonstrates type casting. 04
(c) Explain following data structures of python with suitable example. 07
1. String
2. List
3. Tuple
4. Dictionary
Q.2 (a) Differentiate: C and Python. 03
(b) How to format Date and Time in python. Explain it with example. 04
(c) Give comparison between Numpy and Pandas. 07
OR
(c) Write a python code to read data from text file. 07
Q.3 (a) Explain %matplotlib magic function. 03
(b) Explain stemming and stop words removal operation in python. 04
(c) Write a python program to implement Fibonacci sequence for given input. 07
OR
Q.3 (a) What are the magic functions in Jupyter? Explain with example. 03
(b) With example explain the concept of bags of words model. 04
(c) Write a python program that finds the factorial of a natural number n. 07
Q.4 (a) Explain labels, annotations and legends. 03
(b) Explain with example how to parse XML and HTML. 04
(c) Write a python code that demonstrate hashing trick. 07
OR
Q.4 (a) Explain any three functions from Scikit learn. 03
(b) Explain how to create data science pipeline. 04
(c) Write a python program to demonstrate the concept of skewness and kurtosis. 07
Q.5 (a) Explain EDA in detail. 03
(b) Write a python code to access data from web. 04
(c) Write a small code to perform following operations on data: Slicing, Dicing, 07
Concatenation, Transformation.
OR
Q.5 (a) Explain Z-score standardization. 03
(b) How to Obtain online graphics and multimedia. Explain with example. 04
(c) Write a code to draw pie chart using python’s library. 07

*************

1
Seat No.: ________ Enrolment No.___________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–V(NEW) EXAMINATION – SUMMER 2022
Subject Code:3150713 Date:02/06/2022
Subject Name:Python for Data Science
Time:02:30 PM TO 05:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
4. Simple and non-programmable scientific calculators are allowed.

MARKS
Q.1 (a) List Advantages of Python. 03
(b) Differentiate Numpy and Pandas. 04
(c) Explain Exploratory Data Analysis (EDA). 07

Q.2 (a) Explain String Slicing in python with Example. 03


(b) List and Explain different programming styles in python. 04
(c) Write a program to check whether the given number is prime or not. 07
OR
(c) Write a program to print Fibonacci series up to number given by user. 07

Q.3 (a) Differentiate rand and randn function in Numpy. 03


(b) Explain DataFrame in Pandas with example. 04
(c) Write a program to print following patterns. 07
1)
*
**
***
****
2)
$$$$
$$$
$$
$
3)
#####
###
#
###
#####
OR
Q.3 (a) Explain Groupby function in pandas with example. 03
(b) Explain how to deal with missing data in Pandas. 04
(c) Explain Web Scrapping with Example using Beautiful Soup library. 07

Q.4 (a) Explain Bag of Word model. 03


(b) Differentiate join and merge functions in pandas. 04
(c) Write a program which takes 2 digits, X,Y as input and generates a 2- 07
dimensional array of size X * Y. The element value in the i-th row
and j-th column of the array should be i*j.
1
OR
Q.4 (a) Explain Hashing Trick in python with example. 03
(b) Write a brief note on NetworkX library. 04
(c) List and Explain different graphs in MatPlotLib. 07

Q.5 (a) Explain Labels, Annotation and Legends in MatPlotLib. 03


(b) Differentiate Supervised and Unsupervised learning. 04
(c) Explain Regression with example. 07
OR
Q.5 (a) Write a program to print Current date and time. 03
(b) Write a program to interchange the List elements on two positions 04
entered by a user
(c) Explain Classification with example. 07

*************

You might also like