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

PDS_PYQ

The document outlines the examination details for the 'Python for Data Science' course at Gujarat Technological University, including the schedule, total marks, and instructions for students. It contains a series of questions covering various Python concepts, data structures, and data science methodologies, structured into five main questions with sub-questions. The examination is set for both Winter 2024 and Summer 2024 sessions, with a focus on practical applications and theoretical understanding of Python in data science.
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)
17 views

PDS_PYQ

The document outlines the examination details for the 'Python for Data Science' course at Gujarat Technological University, including the schedule, total marks, and instructions for students. It contains a series of questions covering various Python concepts, data structures, and data science methodologies, structured into five main questions with sub-questions. The examination is set for both Winter 2024 and Summer 2024 sessions, with a focus on practical applications and theoretical understanding of Python in data science.
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/ 4

Enrolment No.

/Seat No_______________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE- SEMESTER–IV (NEW) EXAMINATION – WINTER 2024
Subject Code:3144601 Date:22-11-2024
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) 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

Q.4 (a) Explain string comparison with an example. 03


(b) Explain read_csv function in pandas with example. 04
(c) Write Python Program to count the number of times an item appears in the 07
list
OR
Q.4 (a) Write a short note on Data Visualization. 03
(b) Describe file handling functions in python. 04
(c) Write a python program to find the factorial of any number. 07

Q.5 (a) Write a short note on Classes in Scikit-learn library. 03


(b) Explain syntax of read(), readline() and readlines() functions. 04
(c) What do you mean by Exploratory Data Analysis? List and explain the task 07
which needs to be performed in EDA.
OR
Q.5 (a) Differentiate Supervised and Unsupervised learning. 03
(b) Justify your views on Data wrangling with suitable example. 04
(c) Justify chi-square test? Why it is necessary in data analysis? 07

*************
Enrolment No./Seat No_______________

GUJARAT TECHNOLOGICAL UNIVERSITY


BE - SEMESTER–IV (NEW) EXAMINATION – SUMMER 2024
Subject Code:3144601 Date:20-07-2024
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) Give the output of following Python code. 03
print(10//3)
print(10/3)
print(10**3)
(b) List various looping statements used in Python and explain anyone in 04
detail.
(c) Explain list, tuple and dictionary data structures used in Python. 07

Q.2 (a) Demonstrate the use of membership operator in Python. 03


(b) Give the output of following Python code. 04
X = 'This is Python for Data Science'
print (X[-1:-8:-1])
print (X[-23:15])
(c) Demonstrate the use of following Python concepts with an example. 07
i. Default argument ii. global keyword
OR
(c) Demonstrate the use of try, except, finally and raise keyword used in 07
exception handling.

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.

Q.4 (a) What is the use of scatter-plot in data visualization? 03


(b) Demonstrate the use of DataFrame in Pandas with an example. 04
(c) Explain Simple Linear Regression in detail. 07

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.

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

You might also like