Gujarat Technological UniversityWinter 2025 Examination

GTU 3150713 Python for Data Science Winter 2025 Paper Solution & PDF

B.E. · Computer Engineering · Semester 5 · Subject Code: 3150713
Download Official GTU PDF
Share:
Total Marks70 MarksExternal theory exam
Passing Marks23 Marks33% minimum cutoff
Exam Duration2.5 Hours10:30 AM – 1:00 PM
Paper Structure5 QuestionsWith internal OR choices
Jump toQ1Q2Q3Q4Q5

Question 1

14 MarksMedium
(a)

What are the advantages of python as a preferred programming language for data science?

3 Marks
(b)

Write a program that takes a list of words as input and returns the longest word in the list.

4 Marks
(c)

In EDA, why is it essential to analyze both covariance and correlation when exploring relationships between variables? Provide examples of scenarios where covariance might indicate a strong relationship while correlation might suggest otherwise.

7 Marks

Question 2

14 MarksMedium
(a)

Describe the difference between a list and a tuple in Python (Provide at- least three points).

3 Marks
(b)

Implement a function that takes a string as input and returns the count of each character in the string as a dictionary.

4 Marks
(c)
Explain Data Science Pipeline in detail.
7 Marks
OR OPTION
(c)
Write a note on python ecosystem for data science.
7 Marks

Question 3

14 MarksMedium
(a)
What are the advantages of Jupyter Notebook?
3 Marks
(b)

Explain how one-hot encoding is performed on a given text snippet, such as "The quick brown fox jumps over the lazy dog." What specific steps are involved in transforming this text into one-hot encoded vectors?

4 Marks
(c)

Describe the process of parsing an HTML document using the Beautiful Soup library in Python.

7 Marks
OR OPTION
(a)
Discuss the advantages of pandas library in python.
3 Marks
(b)

Explain the process of calculating the TF-IDF score for a term in a document with proper example.

4 Marks
(c)

Discuss different options to deal with missing data as part of data cleaning process.

7 Marks

Question 4

14 MarksMedium
(a)
Discuss importance of pie chart and box plot in data visualization.
3 Marks
(b)
What are magic functions? Briefly explain any two magic functions.
4 Marks
(c)

Write code to create an undirected graph of six nodes using networkx and matplotlib.

7 Marks
OR OPTION
(a)

How can we add labels, annotations and legends in our graphs using matplotlib?

3 Marks
(b)

Given the sample CSV file "trigonometry_data.csv" containing trigonometry data (Angle (degrees), Sine, Cosine, Tangent), how would you use Pandas to read the file in DataFrame and print the angle in degrees and its corresponding cosine value from the DataFrame? Content of “trigonometry_data.csv” file is as below. Angle (degrees), Sine, Cosine, Tangent 0,0.0,1.0,0.0 30,0.5,0.866,0.577 45,0.707,0.707,1.0 60,0.866,0.5,1.732 90,1.0,0.0,undefined

4 Marks
(c)

What is the importance of histogram in data visualization? Write code to create histogram using matplotlib.

7 Marks

Question 5

14 MarksMedium
(a)
What role does the chi-square test play in data analysis?
3 Marks
(b)
Briefly discuss skewness and kurtosis.
4 Marks
(c)

Describe various methods for slicing rows and columns in a Pandas DataFrame, supported by relevant examples.

7 Marks
OR OPTION
(a)
What is z-score standardization and why it is useful in EDA?
3 Marks
(b)
Explain working of %timeit and %memit magic functions.
4 Marks
(c)

Elaborate on the concepts of sorting data row-wise, column-wise, and shuffling data within a DataFrame by providing appropriate examples.

7 Marks
College Exam Groups

Studying for Python for Data Science?

Circulate this solved paper with KaTeX formulas and 1-click AI step solvers to your batchmates on WhatsApp or Telegram.

About this Examination Paper & Attribution

Official Gujarat Technological University (GTU) examination paper and step-by-step solutions for Python for Data Science (Winter 2025, B.E. · Computer Engineering, Sem 5). Features complete 70-mark regular & remedial examination pattern, official marking distribution across all 5 questions, and direct 1-click official PDF download.

Transcribed for student exam preparation from Gujarat Technological University official examination archives. Questions, syllabus guidelines, and curriculum marking schemes remain the intellectual property of Gujarat Technological University.

Download PDF