uiz Space

May 2025 term · Tools in Data Science · BSSE2002

Tools in Data Science End Term: 31 August 2025, Set QDD1 (May 2025 term)

The IIT Madras BS Tools in Data Science (Tools in Data Science (TDS)) End Term paper sat on 31 Aug 2025, in the May 2025 term, set QDD1: 34 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
34
Marks
40
Duration
180 min
MCQ
33
MSQ
1

Updated

Official paper: IIT M IMPROVEMENT AN EXAM QIA3 31 Aug 2025 · No negative marking.

Question 1

+2 marksOne correct option

When using uv for Python package management, which command sequence correctly creates a new project with a specific Python version and installs dependencies?

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

Correct answer

  • C

Question 2

+1 markOne correct option

In Git workflow for collaborative data science projects, what is the most appropriate sequence for integrating feature changes?

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

Correct answer

  • B

Question 3

+1 markOne correct option

When designing error handling in Python data processing pipelines, which approach generally offers the most robust and maintainable solution for unexpected runtime errors?

  1. A

    Using only generic try-except blocks

  2. B

    Using try-except-finally with specific exception types and proper logging

  3. C

    Using pre-emptive condition checks (if-else) without exception handling

  4. D

    Allowing all exceptions to propagate to the top level

Show answer

Correct answer

  • B

    Using try-except-finally with specific exception types and proper logging

Question 4

+1 markOne correct option

A data scientist needs to identify unique treatment combinations in a clinical trial dataset with 50,000 rows. Which pandas approach would be most memory-efficient for large datasets?

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

Correct answer

  • C

Question 5

+1 markOne correct option

A developer debugging an API integration notices intermittent 429 status codes. Which Chrome DevTools approach would best help identify the rate limiting pattern?

  1. A

    Console tab with error filtering

  2. B

    Network tab with timing analysis and request throttling simulation

  3. C

    Application tab for storage inspection

  4. D

    Performance tab for bottleneck analysis

Show answer

Correct answer

  • B

    Network tab with timing analysis and request throttling simulation

Question 6

+1 markOne correct option

For a geospatial analysis project involving buffer operations, spatial joins, and interactive mapping, which combination of libraries provides the most comprehensive solution?

  1. A

    Matplotlib + NumPy + Pandas

  2. B

    GeoPandas + Shapely + Folium

  3. C

    Plotly + Seaborn + SciPy

  4. D

    Bokeh + NetworkX + PyProj

Show answer

Correct answer

  • B

    GeoPandas + Shapely + Folium

Question 7

+1 markOne correct option

When cleaning a dataset with company names like "Microsoft Corp", "Microsoft Corporation", "MSFT", which OpenRefine technique would be most effective?

  1. A

    Simple find and replace operations

  2. B

    Clustering algorithms with fingerprinting and n-gram comparison

  3. C

    Regular expression matching only

  4. D

    Manual standardization

Show answer

Correct answer

  • B

    Clustering algorithms with fingerprinting and n-gram comparison

Question 8

+1 markOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 9

+2 marksOne correct option

When designing a SQLite database for time-series sensor data with millions of records, which indexing strategy optimizes both query performance and storage efficiency?

  1. A

    Primary key index only

  2. B

    Composite index on (timestamp, sensor_id) with partial indexes for active sensors

  3. C

    Individual indexes on all columns

  4. D

    No indexing to save storage space

Show answer

Correct answer

  • B

    Composite index on (timestamp, sensor_id) with partial indexes for active sensors

Question 10

+2 marksOne correct option

A data analyst needs to identify customers with purchase patterns similar to high-value segments. Which pandas operation most efficiently computes customer similarity?

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

Correct answer

  • B

Question 11

+1 markOne correct option

You are working with a very large CSV file that is too big to fit into memory. Which pandas method is the best way to read and process the file without running out of memory?

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

Correct answer

  • B

Question 12

+1 markOne correct option

A developer optimizing database-heavy applications needs to identify query bottlenecks and connection issues. Which monitoring approach provides comprehensive insights?

  1. A

    Application logs only

  2. B

    Database query profiling + connection pool metrics + application performance monitoring

  3. C

    Network traffic analysis only

  4. D

    Memory usage tracking exclusively

Show answer

Correct answer

  • B

    Database query profiling + connection pool metrics + application performance monitoring

Question 13

+1 markOne correct option

Scenario 1: AI-Powered Research Assistant Development
Dr. Kumar is developing an AI research assistant for environmental science students. The system needs to process academic papers, generate summaries, and answer domain specific questions while encouraging critical thinking.
Based on the above data, answer the given subquestions.

The research assistant uses a system prompt to guide its behavior. Which system prompt design principle is most important for educational effectiveness?

  1. A

    Providing direct answers to maximize efficiency

  2. B

    Balancing information delivery with Socratic questioning to promote learning

  3. C

    Limiting responses to prevent information overload

  4. D

    Using technical jargon to maintain academic rigor

Show answer

Correct answer

  • B

    Balancing information delivery with Socratic questioning to promote learning

Question 14

+2 marksOne or more correct options

Scenario 1: AI-Powered Research Assistant Development
Dr. Kumar is developing an AI research assistant for environmental science students. The system needs to process academic papers, generate summaries, and answer domain specific questions while encouraging critical thinking.
Based on the above data, answer the given subquestions.

When students submit complex research queries, which factors most significantly impact the LLM's operational costs and response quality? (Select all that apply)

Select all that apply.

  1. A

    Token count of input prompts and generated responses

  2. B

    Complexity and specificity of the query requiring deeper reasoning

  3. C

    Time of day when queries are submitted

  4. D

    Context window utilization for multi-turn conversations

  5. E

    Student's academic level

Show answer

Correct answers

  • A

    Token count of input prompts and generated responses

  • B

    Complexity and specificity of the query requiring deeper reasoning

  • D

    Context window utilization for multi-turn conversations

Question 15

+1 markOne correct option

Scenario 1: AI-Powered Research Assistant Development
Dr. Kumar is developing an AI research assistant for environmental science students. The system needs to process academic papers, generate summaries, and answer domain specific questions while encouraging critical thinking.
Based on the above data, answer the given subquestions.

Which prompt engineering technique would generate the most pedagogically valuable response for environmental research?

  1. A

    "Explain climate change impacts"

  2. B

    "Write about environmental issues"

  3. C

    "Analyze the interconnected effects of ocean acidification on marine ecosystems, considering pH changes, species adaptation, and food web dynamics. What research methodologies would be most appropriate for studying these relationships?"

  4. D

    "Discuss environmental problems briefly"

Show answer

Correct answer

  • C

    "Analyze the interconnected effects of ocean acidification on marine ecosystems, considering pH changes, species adaptation, and food web dynamics. What research methodologies would be most appropriate for studying these relationships?"

Question 16

+1 markOne correct option

Scenario 2: Smart City Traffic Management System
A metropolitan city is implementing a real-time traffic management system that processes data from IoT sensors, traffic cameras, and GPS devices to optimize traffic flow across 500+ intersections.
System Architecture:
● IoT sensors at intersections (Lat/Long coordinates provided)
● Central processing hub: (28.6139^(o) N, 77.2090^(o) E)
● Real-time data streams: traffic density, weather conditions, accident reports
● ML models for traffic prediction and route optimization
Based on the above data, answer the given subquestions.

The development team uses Git for version control of traffic algorithms. When a critical traffic routing bug is discovered in production, which Git workflow ensures rapid deployment of fixes while maintaining code integrity?

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

Correct answer

  • B

Question 17

+2 marksOne correct option

Scenario 2: Smart City Traffic Management System
A metropolitan city is implementing a real-time traffic management system that processes data from IoT sensors, traffic cameras, and GPS devices to optimize traffic flow across 500+ intersections.
System Architecture:
● IoT sensors at intersections (Lat/Long coordinates provided)
● Central processing hub: (28.6139^(o) N, 77.2090^(o) E)
● Real-time data streams: traffic density, weather conditions, accident reports
● ML models for traffic prediction and route optimization
Based on the above data, answer the given subquestions.

Traffic engineers need to analyze historical data patterns. Which command-line approach efficiently processes large log files to extract peak traffic periods and route preferences?

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

Correct answer

  • B

Question 18

+2 marksOne correct option

Scenario 2: Smart City Traffic Management System
A metropolitan city is implementing a real-time traffic management system that processes data from IoT sensors, traffic cameras, and GPS devices to optimize traffic flow across 500+ intersections.
System Architecture:
● IoT sensors at intersections (Lat/Long coordinates provided)
● Central processing hub: (28.6139^(o) N, 77.2090^(o) E)
● Real-time data streams: traffic density, weather conditions, accident reports
● ML models for traffic prediction and route optimization
Based on the above data, answer the given subquestions.

For deploying the traffic management system across distributed edge computing nodes at intersections, which containerization strategy optimizes resource utilization and ensures consistent performance?

  1. A

    Single monolithic container with all services

  2. B

    Multi-stage Docker builds with service mesh architecture and resource constraints

  3. C

    Virtual machines for each intersection

  4. D

    Direct installation on edge hardware without containerization

Show answer

Correct answer

  • B

    Multi-stage Docker builds with service mesh architecture and resource constraints

Question 19

+1 markOne correct option

Scenario 2: Smart City Traffic Management System
A metropolitan city is implementing a real-time traffic management system that processes data from IoT sensors, traffic cameras, and GPS devices to optimize traffic flow across 500+ intersections.
System Architecture:
● IoT sensors at intersections (Lat/Long coordinates provided)
● Central processing hub: (28.6139^(o) N, 77.2090^(o) E)
● Real-time data streams: traffic density, weather conditions, accident reports
● ML models for traffic prediction and route optimization
Based on the above data, answer the given subquestions.

When optimizing traffic routes for emergency vehicles during peak hours, which algorithmic approach best balances computational efficiency with real-time requirements?

  1. A

    Brute force calculation of all possible routes

  2. B

    A pathfinding with dynamic edge weights based on real-time traffic data

  3. C

    Random route selection

  4. D

    Static pre-computed emergency routes

Show answer

Correct answer

  • B

    A pathfinding with dynamic edge weights based on real-time traffic data

Question 20

+1 markOne correct option

Scenario 2: Smart City Traffic Management System
A metropolitan city is implementing a real-time traffic management system that processes data from IoT sensors, traffic cameras, and GPS devices to optimize traffic flow across 500+ intersections.
System Architecture:
● IoT sensors at intersections (Lat/Long coordinates provided)
● Central processing hub: (28.6139^(o) N, 77.2090^(o) E)
● Real-time data streams: traffic density, weather conditions, accident reports
● ML models for traffic prediction and route optimization
Based on the above data, answer the given subquestions.

The system calculates distances between intersections for route optimization. What is the primary computational advantage of implementing the Haversine formula in the traffic management context?

  1. A

    Provides accurate great-circle distances for GPS coordinates without requiring road network data

  2. B

    Calculates exact travel time including traffic conditions

  3. C

    Determines elevation changes for fuel efficiency

  4. D

    Measures road surface quality for vehicle routing

Show answer

Correct answer

  • A

    Provides accurate great-circle distances for GPS coordinates without requiring road network data

Question 21

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

Which of the following Apache log entries correctly represents a successful mobile checkout transaction that occurred during the peak analysis window (12:00–15:59)?

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

Correct answer

  • A

Question 22

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

To extract essential fields for the analysis "mobile checkout transactions between 12:00-15:59 with successful status codes", which data elements are required?

  1. A

    IP, UserAgent, Referrer, VirtualHost

  2. B

    Timestamp, HTTP_METHOD, URL, StatusCode, UserAgent

  3. C

    RemoteUser, AuthUser, ResponseSize, ServerIP

  4. D

    IP, Timestamp, Referrer, ResponseSize

Show answer

Correct answer

  • B

    Timestamp, HTTP_METHOD, URL, StatusCode, UserAgent

Question 23

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

  1. A

    %d/%b/%Y:%H:%M:%S

  2. B

    %d/%b/%Y:%H:%M:%S %z

  3. C

    %Y-%m-%d %H:%M:%S %Z

  4. D

    %d-%b-%Y:%H:%M:%S GMT

Show answer

Correct answer

  • B

    %d/%b/%Y:%H:%M:%S %z

Question 24

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

To identify checkout transactions occurring between 12:00 and 15:59, which Python condition correctly validates the time range?

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

Correct answer

  • C

Question 25

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

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

Correct answer

  • B

Question 26

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

To identify mobile traffic from the UserAgent string, which Python approach provides the most reliable mobile device detection?

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

Correct answer

  • B

Question 27

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

For determining successful transactions, which condition correctly identifies HTTP status codes indicating success?

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

Correct answer

  • C

Question 28

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

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

Correct answer

  • B

Question 29

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

If the transaction count appears unexpectedly high, which systematic debugging approach would identify the root cause?

  1. A

    Assume data corruption and discard results

  2. B

    Validate each filter condition independently: time range → HTTP method → URL pattern → status code

  3. C

    Reduce the dataset size randomly

  4. D

    Check only the timestamp filter

Show answer

Correct answer

  • B

    Validate each filter condition independently: time range → HTTP method → URL pattern → status code

Question 30

+1 markOne correct option

Scenario 3: E-commerce Platform Log Analysis
You're analyzing Apache access logs from a major e-commerce platform. The logs contain customer browsing patterns, purchase behaviors, and system performance metrics during Black Friday sales.
Log Format Specification:

Analysis Requirements:
● Filter purchases (POST to /checkout/) during peak hours (12:00-15:59)
● Identify mobile vs desktop traffic patterns
● Track successful transactions (status codes 200-299)
● Analyze product category performance
Based on the above data, answer the given subquestions.

When processing very large Apache log files (10GB+), which of the following Python approaches offers the best memory efficiency?

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

Correct answer

  • B

Question 31

+1 markOne correct option

Scenario 4: Academic Research RAG System with Multi-Modal Analysis
A research university implements an advanced RAG system that processes academic papers, datasets, code repositories, and experimental results to support interdisciplinary research across STEM fields.
Advanced Multi-Modal RAG Architecture:
● Text Processing: Research papers, grants, technical documentation
● Code Analysis: GitHub repositories, computational notebooks, algorithm implementations ● Data Integration: Experimental datasets, simulation results, sensor data
● Visual Processing: Figures, charts, experimental images, technical diagrams
● Semantic Linking: Cross-reference relationships between concepts, methods, and findings Based on the above data, answer the given subquestions.

What is the primary advantage of multi-modal RAG systems over text-only approaches in academic research contexts?

  1. A

    Reduced computational complexity for information retrieval

  2. B

    Comprehensive understanding through integration of textual concepts, visual data, and computational methods

  3. C

    Simplified system architecture and maintenance

  4. D

    Lower storage requirements for research materials

Show answer

Correct answer

  • B

    Comprehensive understanding through integration of textual concepts, visual data, and computational methods

Question 32

+1 markOne correct option

Scenario 4: Academic Research RAG System with Multi-Modal Analysis
A research university implements an advanced RAG system that processes academic papers, datasets, code repositories, and experimental results to support interdisciplinary research across STEM fields.
Advanced Multi-Modal RAG Architecture:
● Text Processing: Research papers, grants, technical documentation
● Code Analysis: GitHub repositories, computational notebooks, algorithm implementations ● Data Integration: Experimental datasets, simulation results, sensor data
● Visual Processing: Figures, charts, experimental images, technical diagrams
● Semantic Linking: Cross-reference relationships between concepts, methods, and findings Based on the above data, answer the given subquestions.

Which system prompt design best supports interdisciplinary research collaboration and knowledge synthesis?

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

Correct answer

  • C

Question 33

+1 markOne correct option

Scenario 4: Academic Research RAG System with Multi-Modal Analysis
A research university implements an advanced RAG system that processes academic papers, datasets, code repositories, and experimental results to support interdisciplinary research across STEM fields.
Advanced Multi-Modal RAG Architecture:
● Text Processing: Research papers, grants, technical documentation
● Code Analysis: GitHub repositories, computational notebooks, algorithm implementations ● Data Integration: Experimental datasets, simulation results, sensor data
● Visual Processing: Figures, charts, experimental images, technical diagrams
● Semantic Linking: Cross-reference relationships between concepts, methods, and findings Based on the above data, answer the given subquestions.

A researcher asks: "How can machine learning techniques be applied to optimize renewable energy grid integration, and what interdisciplinary approaches show promise?" Which response demonstrates the most effective research synthesis approach?

  1. A

    "Machine learning can predict energy demand and optimize grid operations through various algorithms."

  2. B

    "Here are 10 recent papers on ML applications in renewable energy: [lists papers with summaries]"

  3. C

    "Let's explore the intersection of several fields: What specific grid integration challenges interest you? ML approaches range from demand forecasting (time series analysis) to real-time optimization (reinforcement learning), while power systems engineering provides domain constraints. Materials science advances in energy storage create new optimization opportunities. Which aspect aligns with your research focus?"

  4. D

    "This is a complex topic requiring extensive literature review across multiple disciplines."

Show answer

Correct answer

  • C

    "Let's explore the intersection of several fields: What specific grid integration challenges interest you? ML approaches range from demand forecasting (time series analysis) to real-time optimization (reinforcement learning), while power systems engineering provides domain constraints. Materials science advances in energy storage create new optimization opportunities. Which aspect aligns with your research focus?"

Question 34

+1 markOne correct option

Scenario 4: Academic Research RAG System with Multi-Modal Analysis
A research university implements an advanced RAG system that processes academic papers, datasets, code repositories, and experimental results to support interdisciplinary research across STEM fields.
Advanced Multi-Modal RAG Architecture:
● Text Processing: Research papers, grants, technical documentation
● Code Analysis: GitHub repositories, computational notebooks, algorithm implementations ● Data Integration: Experimental datasets, simulation results, sensor data
● Visual Processing: Figures, charts, experimental images, technical diagrams
● Semantic Linking: Cross-reference relationships between concepts, methods, and findings Based on the above data, answer the given subquestions.

Which processing sequence correctly describes the multi-modal RAG system's comprehensive research synthesis workflow?

  1. A

    Research Query → Text Search Only → Generate Literature Summary

  2. B

    Research Query → Keyword Matching → Return Most Recent Papers

  3. C

    Research Query → Multi-Modal Embedding (text + code + visual + data) → Cross-Disciplinary Retrieval → Concept Mapping → Synthesized Research Insights with Method Integration

  4. D

    Research Query → Database Search → Template Response Generation

Show answer

Correct answer

  • C

    Research Query → Multi-Modal Embedding (text + code + visual + data) → Cross-Disciplinary Retrieval → Concept Mapping → Synthesized Research Insights with Method Integration