uiz Space

January 2025 term · Tools in Data Science · BSSE2002

Tools in Data Science End Term: 13 April 2025, Set QDD3 (January 2025 term)

The IIT Madras BS Tools in Data Science (Tools in Data Science (TDS)) End Term paper sat on 13 Apr 2025, in the January 2025 term, set QDD3: 35 questions for 40 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
35
Marks
40
Duration
180 min
MCQ
32
MSQ
3

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD3 13 Apr 2025 · No negative marking.

Question 1

+1 markOne correct option

You have a spreadsheet with values containing leading zeros (e.g., "001234"). What's the most effective way to preserve these zeros during Text-to-Columns?

  1. A

    Save as CSV before applying Text-to-Columns

  2. B

    Format cells as Text before using Text-to-Columns

  3. C

    Change the delimiter to semicolons

  4. D

    Manually change the affected cells back to numbers

Show answer

Correct answer

  • B

    Format cells as Text before using Text-to-Columns

Question 2

+1 markOne correct option

What is the correct order of execution in a Python try-except-finally block if no exception occurs?

  1. A

    try → finally

  2. B

    try → except → finally

  3. C

    try only

  4. D

    finally → try

Show answer

Correct answer

  • A

    try → finally

Question 3

+1 markOne correct option

A data scientist needs to count non-null values in each column of a DataFrame. Which pandas method should they use?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 4

+1 markOne correct option

What Git command would you use to discard changes in your working directory and revert to the last committed state?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 5

+1 markOne correct option

To debug a memory leak in a JavaScript application, which Chrome DevTools panel is most useful?

  1. A

    Network

  2. B

    Application

  3. C

    Memory

  4. D

    Console

Show answer

Correct answer

  • C

    Memory

Question 6

+1 markOne correct option

A data scientist is analyzing the relationship between advertising spend and sales. Which statistical test would be most appropriate to determine if there's a linear relationship?

  1. A

    Chi-square test

  2. B

    Pearson correlation coefficient

  3. C

    ANOVA

  4. D

    Kolmogorov-Smirnov test

Show answer

Correct answer

  • B

    Pearson correlation coefficient

Question 7

+1 markOne correct option

Which OpenRefine feature allows you to track and reapply the same cleaning operations to similar datasets?

  1. A

    Clustering history

  2. B

    Extraction of operations as JSON

  3. C

    Project templates

  4. D

    Snapshot management

Show answer

Correct answer

  • B

    Extraction of operations as JSON

Question 8

+1 markOne correct option

A web developer wants to analyze the load time and resources of a webpage. Which Chrome DevTools feature provides comprehensive network request information?

  1. A

    Console tab

  2. B

    Network tab

  3. C

    Elements tab

  4. D

    Sources tab

Show answer

Correct answer

  • B

    Network tab

Question 9

+1 markOne correct option

Which of the following is NOT typically a built-in feature of modern IDEs?

  1. A

    Git integration

  2. B

    Code completion

  3. C

    Automated code review and security scanning

  4. D

    Terminal access

Show answer

Correct answer

  • C

    Automated code review and security scanning

Question 10

+1 markOne correct option

In Kumu, what feature allows you to highlight specific parts of your visualization based on element properties?

  1. A

    Decorators

  2. B

    Focus filters

  3. C

    Clustering algorithms

  4. D

    Color palettes

Show answer

Correct answer

  • B

    Focus filters

Question 11

+2 marksOne correct option

Which HTTP method is considered safe because it doesn't modify server state?

  1. A

    DELETE

  2. B

    PUT

  3. C

    GET

  4. D

    POST

Show answer

Correct answer

  • C

    GET

Question 12

+2 marksOne or more correct options

If a researcher needs to perform advanced spatial analysis and calculate the distance between geometric objects, which library is most appropriate?

Select all that apply.

  1. A

    Geopandas

  2. B

    Shapely

  3. C

    Matplotlib

  4. D

    Pillow

Show answer

Correct answers

  • A

    Geopandas

  • B

    Shapely

Question 13

+1 markOne correct option

Scenario 1:
Aisha is a medical student researching the latest advancements in cancer treatments for her thesis. She decides to use an LLM to help organize her research and generate draft sections. Based on the above data, answer the given subquestions.

Aisha prompts the LLM: "Provide a detailed analysis of immunotherapy developments for cancer treatment." What aspect of the system prompt most significantly impacts how the LLM formulates its response?

  1. A

    The character limit set by the system prompt

  2. B

    The knowledge domain and expertise level that the system prompt instructs the LLM to adopt

  3. C

    The formatting requirements specified in the system prompt

  4. D

    The language model version identified in the system prompt

Show answer

Correct answer

  • B

    The knowledge domain and expertise level that the system prompt instructs the LLM to adopt

Question 14

+2 marksOne or more correct options

Scenario 1:
Aisha is a medical student researching the latest advancements in cancer treatments for her thesis. She decides to use an LLM to help organize her research and generate draft sections. Based on the above data, answer the given subquestions.

When Aisha uses the LLM for her medical research, which of the following statements are TRUE regarding LLM capabilities and limitations?

Select all that apply.

  1. A

    LLMs can directly access and cite the most recent peer-reviewed medical studies published after their training cutoff

  2. B

    LLMs may generate plausible-sounding but incorrect medical information if not properly prompted

  3. C

    LLMs have real-time access to patient data to provide personalized medical advice

  4. D

    The quality of LLM responses is unaffected by how specific or vague the user's prompt is

  5. E

    LLMs can evaluate the statistical validity of medical research methodologies when properly prompted

Show answer

Correct answers

  • B

    LLMs may generate plausible-sounding but incorrect medical information if not properly prompted

  • E

    LLMs can evaluate the statistical validity of medical research methodologies when properly prompted

Question 15

+1 markOne correct option

Scenario 1:
Aisha is a medical student researching the latest advancements in cancer treatments for her thesis. She decides to use an LLM to help organize her research and generate draft sections. Based on the above data, answer the given subquestions.

Aisha needs to gather information about a specific cancer treatment approach. Which of these prompts would likely generate the most accurate and useful response?

  1. A

    "Tell me about cancer treatments"

  2. B

    "What is immunotherapy?"

  3. C

    "Summarize the clinical outcomes, mechanism of action, and patient selection criteria for CAR T-cell therapy in treating B-cell lymphomas, citing key studies from 2018-2023 where possible"

  4. D

    "Write a paragraph about new cancer treatments researchers are excited about"

Show answer

Correct answer

  • C

    "Summarize the clinical outcomes, mechanism of action, and patient selection criteria for CAR T-cell therapy in treating B-cell lymphomas, citing key studies from 2018-2023 where possible"

Question 16

+1 markOne correct option

Scenario 2:
Hospital Emergency Response to Mass Casualty Incident
Background:
A major traffic accident involving multiple vehicles has occurred on a highway near a metropolitan area, resulting in mass casualties. Nearby hospitals must coordinate emergency response efforts to manage the influx of patients, ensure adequate medical supplies, and maintain operational continuity. The Emergency Operations Center (EOC) at the main hospital will oversee coordination between healthcare facilities, ambulance services, and emergency responders.
Key locations:
● Main Hospital (EOC): Coordinates response efforts.
● Satellite Clinics: Provide overflow care.
● Accident Site: Initial triage and stabilization.
Based on the above data, answer the given subquestions.

During the emergency response, multiple teams are updating patient intake records. Which Git command would a team member use to get the latest updates?

  1. A

    git commit

  2. B

    git checkout

  3. C

    git pull

  4. D

    git add

Show answer

Correct answer

  • C

    git pull

Question 17

+1 markOne correct option

Scenario 2:
Hospital Emergency Response to Mass Casualty Incident
Background:
A major traffic accident involving multiple vehicles has occurred on a highway near a metropolitan area, resulting in mass casualties. Nearby hospitals must coordinate emergency response efforts to manage the influx of patients, ensure adequate medical supplies, and maintain operational continuity. The Emergency Operations Center (EOC) at the main hospital will oversee coordination between healthcare facilities, ambulance services, and emergency responders.
Key locations:
● Main Hospital (EOC): Coordinates response efforts.
● Satellite Clinics: Provide overflow care.
● Accident Site: Initial triage and stabilization.
Based on the above data, answer the given subquestions.

An administrator needs to search through patient records to find all entries related to "Accident Site Triage". Which command would be most useful?

  1. A

    find -name "Accident Site Triage"

  2. B

    grep "Accident Site Triage" patient-records.txt

  3. C

    ls "Accident Site Triage"

  4. D

    cat patient-records.txt

Show answer

Correct answer

  • B

    grep "Accident Site Triage" patient-records.txt

Question 18

+1 markOne correct option

Scenario 2:
Hospital Emergency Response to Mass Casualty Incident
Background:
A major traffic accident involving multiple vehicles has occurred on a highway near a metropolitan area, resulting in mass casualties. Nearby hospitals must coordinate emergency response efforts to manage the influx of patients, ensure adequate medical supplies, and maintain operational continuity. The Emergency Operations Center (EOC) at the main hospital will oversee coordination between healthcare facilities, ambulance services, and emergency responders.
Key locations:
● Main Hospital (EOC): Coordinates response efforts.
● Satellite Clinics: Provide overflow care.
● Accident Site: Initial triage and stabilization.
Based on the above data, answer the given subquestions.

In a resource-constrained hospital environment, which deployment method would be MOST appropriate for the patient management system?

  1. A

    Running scripts locally on a single emergency responder's laptop

  2. B

    Distributing Python source code to all emergency personnel

  3. C

    Containerized deployment with Docker for consistent execution across multiple devices

  4. D

    Full cloud migration requiring constant internet connectivity

Show answer

Correct answer

  • C

    Containerized deployment with Docker for consistent execution across multiple devices

Question 19

+1 markOne correct option

Scenario 2:
Hospital Emergency Response to Mass Casualty Incident
Background:
A major traffic accident involving multiple vehicles has occurred on a highway near a metropolitan area, resulting in mass casualties. Nearby hospitals must coordinate emergency response efforts to manage the influx of patients, ensure adequate medical supplies, and maintain operational continuity. The Emergency Operations Center (EOC) at the main hospital will oversee coordination between healthcare facilities, ambulance services, and emergency responders.
Key locations:
● Main Hospital (EOC): Coordinates response efforts.
● Satellite Clinics: Provide overflow care.
● Accident Site: Initial triage and stabilization.
Based on the above data, answer the given subquestions.

Which computational tool would be MOST APPROPRIATE for optimizing ambulance routes to transport patients efficiently?

  1. A

    Microsoft Excel for manual distance calculations

  2. B

    Google Maps for route visualization

  3. C

    Python libraries like NetworkX or OR-Tools for route optimization

  4. D

    QGIS for static route mapping

Show answer

Correct answer

  • C

    Python libraries like NetworkX or OR-Tools for route optimization

Question 20

+1 markOne correct option

Scenario 2:
Hospital Emergency Response to Mass Casualty Incident
Background:
A major traffic accident involving multiple vehicles has occurred on a highway near a metropolitan area, resulting in mass casualties. Nearby hospitals must coordinate emergency response efforts to manage the influx of patients, ensure adequate medical supplies, and maintain operational continuity. The Emergency Operations Center (EOC) at the main hospital will oversee coordination between healthcare facilities, ambulance services, and emergency responders.
Key locations:
● Main Hospital (EOC): Coordinates response efforts.
● Satellite Clinics: Provide overflow care.
● Accident Site: Initial triage and stabilization.
Based on the above data, answer the given subquestions.

What is the primary advantage of using the Haversine formula in ambulance route planning?

  1. A

    Calculating exact road distances

  2. B

    Determining travel time under specific conditions

  3. C

    Computing great-circle distances on a spherical Earth

  4. D

    Measuring elevation changes in mountainous terrain

Show answer

Correct answer

  • C

    Computing great-circle distances on a spherical Earth

Question 21

+2 marksOne or more correct options

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

Which of the following is a valid log entry based on the provided format?

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • D

Question 22

+1 markOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

Which of the following fields are necessary to filter "POST requests made for pages under /images/ from 15:00 to 18:00 on Mondays"?

  1. A

    Time, Request, Method, URL

  2. B

    Time, Method, Status, Size

  3. C

    Time, Method, URL, Referer

  4. D

    Time, Status, URL, Server

Show answer

Correct answer

  • A

    Time, Request, Method, URL

Question 23

+1 markOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 24

+2 marksOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

Which method is best for identifying if a log entry’s timestamp corresponds to a Saturday?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • D

Question 25

+1 markOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

How would you identify log entries where the time is between 14:00 and 16:59 on Fridays?

  1. A

    Check if 14 <= timestamp.hour < 16

  2. B

    Check if 14 <= timestamp.hour < 17

  3. C

    Check if 14 < timestamp.hour < 17

  4. D

    Check if timestamp.hour in range(14, 18)

Show answer

Correct answer

  • B

    Check if 14 <= timestamp.hour < 17

Question 26

+1 markOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

How would you extract the HTTP protocol version (e.g., HTTP/1.1) from the Request field "GET /blog/ HTTP/1.1"?

  1. A

    Use request.split('/')[1]

  2. B

    Use request.split(' ')[2]

  3. C

    Use request.split(' ')[1]

  4. D

    Use request.split('/')[2]

Show answer

Correct answer

  • B

    Use request.split(' ')[2]

Question 27

+1 markOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 28

+1 markOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 29

+1 markOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

How would you identify if the log entry’s HTTP status code indicates a redirection request? (Assume that status is correctly stored in the variable ‘status’)

  1. A

    status in [301, 302, 303]

  2. B

    200 < status < 400

  3. C

    300 <= status < 400

  4. D

    status in range(299, 400)

Show answer

Correct answer

  • C

    300 <= status < 400

Question 30

+1 markOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

After filtering the log entries (in a list filtered_entries), which of the following is the best way to count the number of requests with a 404 status code for pages under /error/?

  1. A

    Use len(filtered_entries)

  2. B

    Use len(entries)

  3. C

    Use sum(1 for entry in entries)

  4. D

    None of these

Show answer

Correct answer

  • D

    None of these

Question 31

+1 markOne correct option

Scenario 3:
You are provided with a Gzipped Apache log file from a website having the below data in each row.

The fields are separated by spaces and quoted by double quotes ("). Unlike CSV files, quoted fields are escaped via " and not". All data is in the GMT-0500 timezone and the questions were based in this same time zone.
Use the information and answer the given sub-questions.
Note: Assume that you are using Python codes for log analysis

If the count of log entries appears much larger than expected, which of the following could be the reason?

  1. A

    The filter for Monday is incorrect.

  2. B

    The filter for time range is incorrect.

  3. C

    The filter for HTTP method is incorrect.

  4. D

    Any of these could be the reason.

Show answer

Correct answer

  • D

    Any of these could be the reason.

Question 32

+1 markOne correct option

Scenario 4:
A professor in computational biology is designing an AI-powered assistant called BioTutor to help students understand bioinformatics concepts and computational techniques for analyzing genomic data. The assistant aims to foster critical thinking, independent learning, and hands-on problem-solving skills.
Guidelines for BioTutor:
● Engage students with exploratory and reflective questions.
● Avoid providing direct answers; instead, guide students to discover solutions themselves. ● Focus on building conceptual understanding and technical skills.
● Encourage students to apply bioinformatics tools and algorithms independently.
Based on the above data, answer the given subquestions.

What is the primary purpose of the system prompt in controlling an AI learning assistant's behavior?

  1. A

    To create a fixed set of predetermined responses for every possible student query

  2. B

    To define the core communication strategy, learning approach, and interaction guidelines

  3. C

    To replace the need for human instructor guidance completely

  4. D

    To limit the AI's ability to understand complex scientific concepts

Show answer

Correct answer

  • B

    To define the core communication strategy, learning approach, and interaction guidelines

Question 33

+1 markOne correct option

Scenario 4:
A professor in computational biology is designing an AI-powered assistant called BioTutor to help students understand bioinformatics concepts and computational techniques for analyzing genomic data. The assistant aims to foster critical thinking, independent learning, and hands-on problem-solving skills.
Guidelines for BioTutor:
● Engage students with exploratory and reflective questions.
● Avoid providing direct answers; instead, guide students to discover solutions themselves. ● Focus on building conceptual understanding and technical skills.
● Encourage students to apply bioinformatics tools and algorithms independently.
Based on the above data, answer the given subquestions.

Choose the best system prompt that achieves the instructor's goals.

  1. A

    "You are a bioinformatics assistant. Provide direct answers and complete solutions whenever students ask."

  2. B

    "You are an interactive learning assistant for bioinformatics. Guide students through complex concepts by asking reflective questions. Avoid giving direct solutions. Encourage independent thinking and help students develop problem-solving skills."

  3. C

    "You are a simple computational tool for bioinformatics. Provide exact numerical answers and full code implementations for any genomic analysis question."

  4. D

    "You are a bioinformatics assistant. Help students and tell them to consult research papers or textbooks for all information."

Show answer

Correct answer

  • B

    "You are an interactive learning assistant for bioinformatics. Guide students through complex concepts by asking reflective questions. Avoid giving direct solutions. Encourage independent thinking and help students develop problem-solving skills."

Question 34

+1 markOne correct option

Scenario 4:
A professor in computational biology is designing an AI-powered assistant called BioTutor to help students understand bioinformatics concepts and computational techniques for analyzing genomic data. The assistant aims to foster critical thinking, independent learning, and hands-on problem-solving skills.
Guidelines for BioTutor:
● Engage students with exploratory and reflective questions.
● Avoid providing direct answers; instead, guide students to discover solutions themselves. ● Focus on building conceptual understanding and technical skills.
● Encourage students to apply bioinformatics tools and algorithms independently.
Based on the above data, answer the given subquestions.

A student asks: "How do I identify open reading frames (ORFs) in a DNA sequence?"
Choose the most pedagogically effective response:

  1. A

    "To identify ORFs, you need to scan the DNA sequence in all six reading frames (three forward and three reverse) and locate start codons (ATG) and stop codons (TAA, TAG, TGA). Here's the Python code to do it: [provides full code]."

  2. B

    "Open reading frames (ORFs) are stretches of DNA that can be translated into proteins. They start with a start codon like ATG and end with a stop codon like TAA, TAG, or TGA."

  3. C

    "Interesting question! What do you already know about codons and their role in protein synthesis? Have you thought about how you might systematically search for start and stop codons in a sequence?"

  4. D

    "I cannot help you with this task. Please refer to your bioinformatics textbook or online tutorials."

Show answer

Correct answer

  • C

    "Interesting question! What do you already know about codons and their role in protein synthesis? Have you thought about how you might systematically search for start and stop codons in a sequence?"

Question 35

+1 markOne correct option

Scenario 4:
A professor in computational biology is designing an AI-powered assistant called BioTutor to help students understand bioinformatics concepts and computational techniques for analyzing genomic data. The assistant aims to foster critical thinking, independent learning, and hands-on problem-solving skills.
Guidelines for BioTutor:
● Engage students with exploratory and reflective questions.
● Avoid providing direct answers; instead, guide students to discover solutions themselves. ● Focus on building conceptual understanding and technical skills.
● Encourage students to apply bioinformatics tools and algorithms independently.
Based on the above data, answer the given subquestions.

Assume that BioTutor uses a RAG (Retrieval-Augmented Generation) system to assist students with bioinformatics queries. The system works as follows:
1. Bioinformatics Data Storage: Comprehensive genomic research materials (e.g., papers, notes, tutorials) are split into smaller chunks, which are vectorized using an embedding model. 2. Vector Database: The vectorized chunks are stored in a FAISS or Weaviate vector database. 3. Retriever: When a student asks a question, the system retrieves relevant content from the database based on semantic similarity to the query.
4. LLM Contextualization: The retrieved content is added as context in the assistant's prompt, enabling the LLM to generate a personalized response.
Which of the following correctly describes the process flow of a RAG-based system for BioTutor?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C