Gujarat Technological UniversityWinter 2025 examination

GTU 3150713 Python for Data Science Winter 2025 Solved Paper & Solutions

B.E. · Computer Engineering · Semester 5 · Subject code 3150713
Download official PDFView PDF here
Share with your class
Total
70 marks
To pass
23 marks (33%)
Duration
2.5 Hours 10:30 AM – 1:00 PM
Questions
5 with internal choice
25 step by step solutions on this page

14 of 25 questions on this paper were also asked in other years. 2 more are types of question GTU sets again with new data. Each is marked below with the years it appeared.See all 37 repeated 3150713 questions, most asked first

Q.1

14 Marks
(a)
3 marksAsked in 2 of 7 papers

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

Also asked in Summer 2023 Q2a

(b)
4 marks

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

(c)
7 marks

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.

Q.2

14 Marks
(a)
3 marksAsked in 2 of 7 papers

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

Also asked in Winter 2024 Q1b

(b)
4 marks

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

(c)
7 marksAsked in 5 of 7 papers
Explain Data Science Pipeline in detail.

Also asked in Summer 2025 Q2c, Winter 2024 Q2b, Summer 2024 Q2c, Winter 2023 Q2b

(c)
7 marksAsked in 2 of 7 papers
Write a note on python ecosystem for data science.

Also asked in Summer 2024 Q2c OR

Q.3

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

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?

(c)
7 marksAsked in 3 of 7 papers

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

Also asked in Summer 2025 Q2c OR, Summer 2023 Q4b OR

(a)
3 marks
Discuss the advantages of pandas library in python.
(b)
4 marksAsked in 3 of 7 papers

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

Also asked in Summer 2025 Q4c OR, Summer 2024 Q2b

(c)
7 marksAsked in 4 of 7 papers

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

Also asked in Summer 2025 Q3b OR, Winter 2024 Q5c OR, Summer 2024 Q3c

Q.4

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

Also asked in Summer 2026 Q2b, Winter 2023 Q3a

(c)
7 marksSame type asked in 2 of 7 papers

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

Also asked in Summer 2024 Q4b OR

(a)
3 marksAsked in 5 of 7 papers

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

Also asked in Summer 2026 Q5c, Summer 2025 Q4a, Winter 2024 Q5a, Summer 2023 Q5b OR

(b)
4 marksSame type asked in 3 of 7 papers

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

Also asked in Summer 2025 Q3b, Summer 2024 Q3b

(c)
7 marksAsked in 2 of 7 papers

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

Also asked in Summer 2025 Q4a OR

Q.5

14 Marks
(a)
3 marksAsked in 3 of 7 papers
What role does the chi-square test play in data analysis?

Also asked in Summer 2024 Q5b OR, Summer 2023 Q1b

(b)
4 marksAsked in 2 of 7 papers
Briefly discuss skewness and kurtosis.

Also asked in Summer 2025 Q5b

(c)
7 marksAsked in 2 of 7 papers

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

Also asked in Summer 2026 Q2a

(a)
3 marksAsked in 5 of 7 papers
What is z-score standardization and why it is useful in EDA?

Also asked in Summer 2026 Q3a OR, Summer 2025 Q5b OR, Winter 2024 Q3a OR, Summer 2023 Q2c OR

(b)
4 marks
Explain working of %timeit and %memit magic functions.
(c)
7 marks

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

More Python for Data Science papers

Questions repeat across sessions. Working through two or three papers shows you which topics GTU asks most.

Preparing with friends?

Send this paper to your class group. Every question has its own link.

About this paper

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.

ViewDownload PDF