Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Tools in Data Science
All 2025 papers
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- MSQ: One or more options correct. Select all to score.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
End Term · 31 Aug 2025 (FN)End Term
- Q1MCQ2 Marks·Choose one option
When using uv for Python package management, which command sequence correctly creates a new project with a specific Python version and installs dependencies?
- A

- B

- C

- D

- A
- Q2MCQ1 Mark·Choose one option
In Git workflow for collaborative data science projects, what is the most appropriate sequence for integrating feature changes?
- A

- B

- C

- D

- A
- Q3MCQ1 Mark·Choose one option
When designing error handling in Python data processing pipelines, which approach generally offers the most robust and maintainable solution for unexpected runtime errors?
- AUsing only generic try-except blocks
- BUsing try-except-finally with specific exception types and proper logging
- CUsing pre-emptive condition checks (if-else) without exception handling
- DAllowing all exceptions to propagate to the top level
- Q4MCQ1 Mark·Choose one 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?
- A

- B

- C

- D

- A
- Q5MCQ1 Mark·Choose one option
A developer debugging an API integration notices intermittent 429 status codes. Which Chrome DevTools approach would best help identify the rate limiting pattern?
- AConsole tab with error filtering
- BNetwork tab with timing analysis and request throttling simulation
- CApplication tab for storage inspection
- DPerformance tab for bottleneck analysis
- Q6MCQ1 Mark·Choose one option
For a geospatial analysis project involving buffer operations, spatial joins, and interactive mapping, which combination of libraries provides the most comprehensive solution?
- AMatplotlib + NumPy + Pandas
- BGeoPandas + Shapely + Folium
- CPlotly + Seaborn + SciPy
- DBokeh + NetworkX + PyProj
- Q7MCQ1 Mark·Choose one option
When cleaning a dataset with company names like "Microsoft Corp", "Microsoft Corporation", "MSFT", which OpenRefine technique would be most effective?
- ASimple find and replace operations
- BClustering algorithms with fingerprinting and n-gram comparison
- CRegular expression matching only
- DManual standardization
- Q8MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A
- Q9MCQ2 Marks·Choose one 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?
- APrimary key index only
- BComposite index on (timestamp, sensor_id) with partial indexes for active sensors
- CIndividual indexes on all columns
- DNo indexing to save storage space
- Q10MCQ2 Marks·Choose one option
A data analyst needs to identify customers with purchase patterns similar to high-value segments. Which pandas operation most efficiently computes customer similarity?
- A

- B

- C

- D

- A
- Q11MCQ1 Mark·Choose one 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?
- A

- B

- C

- D

- A
- Q12MCQ1 Mark·Choose one option
A developer optimizing database-heavy applications needs to identify query bottlenecks and connection issues. Which monitoring approach provides comprehensive insights?
- AApplication logs only
- BDatabase query profiling + connection pool metrics + application performance monitoring
- CNetwork traffic analysis only
- DMemory usage tracking exclusively
Read the passage below, then answer Q13–Q15
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.
Q13MCQ1 Mark·Choose one optionThe research assistant uses a system prompt to guide its behavior. Which system prompt design principle is most important for educational effectiveness?
- AProviding direct answers to maximize efficiency
- BBalancing information delivery with Socratic questioning to promote learning
- CLimiting responses to prevent information overload
- DUsing technical jargon to maintain academic rigor
- Q14MSQ2 Marks·Choose all correct options
When students submit complex research queries, which factors most significantly impact the LLM's operational costs and response quality? (Select all that apply)
- AToken count of input prompts and generated responses
- BComplexity and specificity of the query requiring deeper reasoning
- CTime of day when queries are submitted
- DContext window utilization for multi-turn conversations
- EStudent's academic level
- Q15MCQ1 Mark·Choose one option
Which prompt engineering technique would generate the most pedagogically valuable response for environmental research?
- A"Explain climate change impacts"
- B"Write about environmental issues"
- 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?"
- D"Discuss environmental problems briefly"
Read the passage below, then answer Q16–Q20
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.
Q16MCQ1 Mark·Choose one optionThe 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?
- A

- B

- C

- D

- A
- Q17MCQ2 Marks·Choose one option
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?
- A

- B

- C

- D

- A
- Q18MCQ2 Marks·Choose one option
For deploying the traffic management system across distributed edge computing nodes at intersections, which containerization strategy optimizes resource utilization and ensures consistent performance?
- ASingle monolithic container with all services
- BMulti-stage Docker builds with service mesh architecture and resource constraints
- CVirtual machines for each intersection
- DDirect installation on edge hardware without containerization
- Q19MCQ1 Mark·Choose one option
When optimizing traffic routes for emergency vehicles during peak hours, which algorithmic approach best balances computational efficiency with real-time requirements?
- ABrute force calculation of all possible routes
- BA pathfinding with dynamic edge weights based on real-time traffic data
- CRandom route selection
- DStatic pre-computed emergency routes
- Q20MCQ1 Mark·Choose one option
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?
- AProvides accurate great-circle distances for GPS coordinates without requiring road network data
- BCalculates exact travel time including traffic conditions
- CDetermines elevation changes for fuel efficiency
- DMeasures road surface quality for vehicle routing
Read the passage below, then answer Q21–Q30
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.
Q21MCQ1 Mark·Choose one optionWhich of the following Apache log entries correctly represents a successful mobile checkout transaction that occurred during the peak analysis window (12:00–15:59)?
- A

- B

- C

- D

- A
- Q22MCQ1 Mark·Choose one option
To extract essential fields for the analysis "mobile checkout transactions between 12:00-15:59 with successful status codes", which data elements are required?
- AIP, UserAgent, Referrer, VirtualHost
- BTimestamp, HTTP_METHOD, URL, StatusCode, UserAgent
- CRemoteUser, AuthUser, ResponseSize, ServerIP
- DIP, Timestamp, Referrer, ResponseSize
- Q23MCQ1 Mark·Choose one option

- A%d/%b/%Y:%H:%M:%S
- B%d/%b/%Y:%H:%M:%S %z
- C%Y-%m-%d %H:%M:%S %Z
- D%d-%b-%Y:%H:%M:%S GMT
- Q24MCQ1 Mark·Choose one option
To identify checkout transactions occurring between 12:00 and 15:59, which Python condition correctly validates the time range?
- A

- B

- C

- D

- A
- Q25MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A
- Q26MCQ1 Mark·Choose one option
To identify mobile traffic from the UserAgent string, which Python approach provides the most reliable mobile device detection?
- A

- B

- C

- D

- A
- Q27MCQ1 Mark·Choose one option
For determining successful transactions, which condition correctly identifies HTTP status codes indicating success?
- A

- B

- C

- D

- A
- Q28MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A
- Q29MCQ1 Mark·Choose one option
If the transaction count appears unexpectedly high, which systematic debugging approach would identify the root cause?
- AAssume data corruption and discard results
- BValidate each filter condition independently: time range → HTTP method → URL pattern → status code
- CReduce the dataset size randomly
- DCheck only the timestamp filter
- Q30MCQ1 Mark·Choose one option
When processing very large Apache log files (10GB+), which of the following Python approaches offers the best memory efficiency?
- A

- B

- C

- D

- A
Read the passage below, then answer Q31–Q34
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.
Q31MCQ1 Mark·Choose one optionWhat is the primary advantage of multi-modal RAG systems over text-only approaches in academic research contexts?
- AReduced computational complexity for information retrieval
- BComprehensive understanding through integration of textual concepts, visual data, and computational methods
- CSimplified system architecture and maintenance
- DLower storage requirements for research materials
- Q32MCQ1 Mark·Choose one option
Which system prompt design best supports interdisciplinary research collaboration and knowledge synthesis?
- A

- B

- C

- D

- A
- Q33MCQ1 Mark·Choose one option
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?
- A"Machine learning can predict energy demand and optimize grid operations through various algorithms."
- B"Here are 10 recent papers on ML applications in renewable energy: [lists papers with summaries]"
- 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?"
- D"This is a complex topic requiring extensive literature review across multiple disciplines."
- Q34MCQ1 Mark·Choose one option
Which processing sequence correctly describes the multi-modal RAG system's comprehensive research synthesis workflow?
- AResearch Query → Text Search Only → Generate Literature Summary
- BResearch Query → Keyword Matching → Return Most Recent Papers
- CResearch Query → Multi-Modal Embedding (text + code + visual + data) → Cross-Disciplinary Retrieval → Concept Mapping → Synthesized Research Insights with Method Integration
- DResearch Query → Database Search → Template Response Generation
End Term · 31 Aug 2025 (AN)End Term
- Q35MCQ1 Mark·Choose one option
In a data science team using Git with feature branches, what is the recommended approach for integrating experimental analysis without disrupting the main workflow?
- ACommit directly to main branch with descriptive messages
- BCreate feature branch, conduct experiments, squash commits, and merge via pull request after peer review
- CUse git stash for all experimental work
- DCreate separate repository for each experiment
- Q36MCQ2 Marks·Choose one option
A retail analyst wants to find the total sales per store from a Pandas DataFrame df with columns store_id and sales_amount. Which is the most efficient Pandas command?
- Adf['sales_amount'].sum()
- Bdf.groupby('store_id')['sales_amount'].sum()
- Cdf['sales_amount'].groupby('store_id')
- Ddf.pivot_table(index='sales_amount', values='store_id')
- Q37MCQ1 Mark·Choose one option
A team is troubleshooting why a page loads slowly due to an API call taking a long time. Which Chrome DevTools tab should they use to find the slow request?
- ASources
- BNetwork
- CConsole
- DApplication
- Q38MCQ1 Mark·Choose one option
When standardizing inconsistent date formats in a dataset using OpenRefine, which transformation approach is most effective for handling multiple date patterns?
- ASimple text replacement operations
- BGREL expressions with multiple conditional date parsing functions
- CManual editing row by row
- DExport to Excel and use built-in date formatting
- Q39MCQ2 Marks·Choose one option
For a MySQL database storing e-commerce analytics with complex joins and time-based queries, which indexing approach optimizes query performance?
- ASingle primary key index per table
- BComposite indexes on frequently joined columns, covering indexes for common queries, and partitioning by date ranges
- CUnique indexes on all columns
- DNo indexes to avoid write overhead
- Q40MCQ1 Mark·Choose one option
When processing a streaming data source that generates CSV files every minute, which approach handles the data most efficiently without memory overflow?
- A

- B

- C

- D

- A
- Q41MCQ1 Mark·Choose one option
When working with uv in a team environment, which approach ensures reproducible dependency management across different development machines?
- A

- B

- C

- D

- A
- Q42MCQ1 Mark·Choose one option
For analyzing urban traffic patterns using GPS coordinate data, which combination of Python libraries provides the most comprehensive geospatial analysis capabilities?
- APandas + Matplotlib + NumPy
- BGeoPandas + Shapely + Folium + Contextily
- CPlotly + Seaborn + SciPy
- DBokeh + PyProj
- Q43MCQ2 Marks·Choose one option
For a web scraper that encounters 429 (Too Many Requests) status codes, which response strategy demonstrates ethical behavior?
- ASwitch to different IP addresses to bypass the limit
- BImplement exponential backoff starting with the Retry-After header value, reduce request frequency permanently
- CContinue scraping but filter out 429 responses
- DUse browser automation to appear more human-like
- Q44MCQ1 Mark·Choose one option
A data scientist accidentally committed sensitive credentials to a Git repository. Which sequence of commands safely removes the credentials from history?
- A

- B

- C

- D

- A
- Q45MCQ1 Mark·Choose one option
For analyzing a massive time-series dataset that exceeds available RAM, which pandas strategy optimizes memory usage during aggregation operations?
- A

- B

- C

- D

- A
- Q46MCQ1 Mark·Choose one option
For a machine learning API serving models with inconsistent response times, which monitoring strategy provides the most actionable insights?
- ATrack only HTTP response status codes
- BModel inference time + request queue depth + resource utilization + error rate tracking
- CMonitor only successful prediction accuracy
- DFocus exclusively on network bandwidth usage
Read the passage below, then answer Q47–Q49
Scenario 1: Healthcare Data Analytics Platform
A hospital system is developing a HIPAA-compliant analytics platform to process electronic health records, predict patient outcomes, and support clinical decision-making while ensuring data privacy and regulatory compliance.
Based on the above data, answer the given subquestions.
Q47MCQ1 Mark·Choose one optionWhen designing prompts for a clinical AI assistant, which approach best balances medical accuracy with regulatory compliance?
- AProvide definitive medical diagnoses to assist doctors
- BFocus on pattern recognition while explicitly requiring human clinical judgment and including appropriate medical disclaimers
- CRestrict responses to general medical information only
- DAvoid medical topics entirely to prevent liability
- Q48MSQ2 Marks·Choose all correct options
Which factors most significantly impact computational costs when processing large-scale clinical datasets with LLMs?(Select all that apply)
- AToken density of clinical notes and medical terminology
- BComplexity of medical reasoning required for clinical insights
- CHIPAA compliance overhead and security measures
- DContext window usage for patient history analysis
- EGeographic location of healthcare facility
- Q49MCQ1 Mark·Choose one option
Which prompt engineering approach generates the most clinically valuable insights for patient care optimization?
- A"Analyze patient symptoms"
- B"Review medical records"
- C"Based on this patient's lab results (glucose: 180 mg/dL, HbA1c: 8.2%), vital signs, and medication history, identify potential adjustment strategies for diabetes management while considering contraindications and monitoring requirements."
- D"Suggest treatments for diabetes"
Read the passage below, then answer Q50–Q54
Scenario 2: Smart Manufacturing Quality Control System
An automotive manufacturer implements an IoT-based quality control system that monitors production line metrics, detects defects in real-time, and optimizes manufacturing processes across multiple assembly plants.
System Architecture:
● IoT sensors at production stations (coordinates provided for each plant)
● Quality control hub: (42.3601^o N, 71.0589^o W)
● Real-time data streams: temperature, pressure, vibration, visual inspection
● ML models for defect prediction and process optimization
Based on the above data, answer the given subquestions.
Q50MCQ1 Mark·Choose one optionWhen a critical defect pattern is identified requiring immediate production line adjustment, which Git workflow ensures rapid deployment of updated quality parameters while maintaining manufacturing compliance?
- APush changes directly to production branch to minimize downtime
- BCreate quality-hotfix branch, implement changes with detailed validation, require quality engineer approval, and deploy with rollback capability
- CApply temporary manual overrides and update version control later
- DUse email to communicate changes without version control
- Q51MCQ2 Marks·Choose one option
Quality engineers need to analyze sensor data to identify equipment performance degradation patterns. Which command-line approach efficiently processes large sensor log files to extract anomalous readings?
- A

- B

- C

- D

- A
- Q52MCQ2 Marks·Choose one option
For deploying the quality control system across geographically distributed manufacturing plants with strict latency and reliability requirements, which architecture approach ensures optimal performance?
- ACentralized cloud-only deployment
- BEdge computing with local ML inference, container orchestration, and federated data synchronization
- CSingle server per plant without redundancy
- DManual quality control without automated systems
- Q53MCQ1 Mark·Choose one option
When detecting defects in real-time during high-speed production, which algorithmic approach best balances accuracy with processing speed requirements?
- AData based statistical analysis
- BOptimized computer vision pipeline with cascaded classifiers and early rejection mechanisms
- CManual visual inspection only
- DRandom sampling for quality checks
- Q54MCQ1 Mark·Choose one option
The system uses GPS coordinates to optimize supply chain logistics between plants. What is the computational advantage of using the Haversine formula in manufacturing logistics?
- AAccurate distance calculations for optimizing transportation routes and delivery scheduling
- BCalculating exact production times
- CDetermining equipment maintenance schedules
- DMeasuring network latency between plants
Read the passage below, then answer Q55–Q64
Scenario 3: Gaming Platform User Behavior Analysis
You're analyzing server logs from a multiplayer gaming platform during a major tournament event. The logs contain player actions, performance metrics, and system resource utilization data.

Analysis Requirements:
●Filter competitive gaming actions (kills, deaths, objectives) during tournament hours (14:00- 20:59)
●Differentiate between PC and console gaming patterns
●Track successful game events (status codes 200-299)
●Analyze player performance across different game modes
Based on the above data, answer the given subquestions.
Q55MCQ1 Mark·Choose one optionWhich log entry correctly represents a successful console objective action during the tournament window?
- A

- B

- C

- D

- A
- Q56MCQ1 Mark·Choose one option
For analyzing "competitive gaming actions during tournament hours with successful responses", which log fields are essential?
- APlayerIP, PlayerID, Platform, MatchID
- BTimestamp, ACTION, GameMode, StatusCode, ActionType
- CPlayerID, ResponseTime, UserAgent, Level
- DPlayerIP, Timestamp, Platform, ResponseTime
- Q57MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A
- Q58MCQ1 Mark·Choose one option
To filter gaming actions between 14:00 and 20:59 tournament hours, which condition correctly validates the time range?
- A

- B

- C

- D

- A
- Q59MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A
- Q60MCQ1 Mark·Choose one option
Which approach most accurately identifies console gaming platforms from the Platform field?
- A

- B

- C

- D

- A
- Q61MCQ1 Mark·Choose one option
For identifying successful gaming events, which status code condition is most appropriate?
- A

- B

- C

- D

- A
- Q62MCQ1 Mark·Choose one option
To efficiently count different action types (KILL, DEATH, OBJECTIVE) from filtered tournament data, which approach is optimal?
- A

- B

- C

- D

- A
- Q63MCQ1 Mark·Choose one option
If tournament action counts appear inconsistently high, which systematic debugging approach identifies the issue?
- AAssume tournament data corruption and exclude results
- BValidate each filter systematically: time range → game mode → action type → status codes → platform detection
- CReduce dataset randomly and extrapolate
- DFocus only on successful status codes
- Q64MCQ1 Mark·Choose one option
For processing massive gaming log files (100GB+) with memory constraints, which Python approach provides optimal performance?
- A

- B

- C

- D

- A
Read the passage below, then answer Q65–Q68
Scenario 4: Supply Chain Optimization RAG System.
A global logistics company implements an advanced RAG system that integrates supplier data, transportation networks, demand forecasting, and regulatory information to optimize supply chain decisions across multiple industries and geographical regions.
Multi-Modal Supply Chain RAG Architecture:
●Supplier Intelligence: Vendor profiles, performance metrics, capacity data, compliance records ●Transportation Networks: Route optimization, carrier performance, fuel costs, delivery tracking ●Market Analysis: Demand forecasting, price volatility, seasonal patterns, economic indicators ●Regulatory Compliance: Trade regulations, customs requirements, sustainability standards ●Risk Assessment: Supply disruptions, geopolitical factors, weather impacts, financial stability Based on the above data, answer the given subquestions.
Q65MCQ1 Mark·Choose one optionWhat is the primary advantage of multi-modal RAG systems for supply chain management compared to traditional ERP systems?
- ALower implementation costs and simpler maintenance
- BReal-time integration of supplier performance, market dynamics, and regulatory changes for adaptive supply chain optimization
- CExclusive focus on historical transaction data
- DReduced data storage requirements
- Q66MCQ1 Mark·Choose one option
Which system prompt design best supports strategic supply chain decision-making across multiple stakeholders?
- A

- B

- C

- D

- A
- Q67MCQ1 Mark·Choose one option
A supply chain manager asks: "Given current semiconductor shortages, rising fuel costs, and new sustainability regulations, how should we restructure our electronics component sourcing strategy for the next quarter?" Which response demonstrates optimal supply chain synthesis?
- A"Semiconductor shortages require finding alternative suppliers and adjusting inventory levels."
- B"Here are 20 suppliers with current pricing and availability data: [lists suppliers with specifications]"
- C"Let's analyze this systematically: Current semiconductor lead times average 16-24 weeks (vs. normal 4-6 weeks). Three strategic options emerge: 1) Dual-sourcing with 60% Asian suppliers, 40% nearshore (reduces risk but increases costs 12-18%), 2) Forward buying with 90-day inventory (capital impact: $2.3M, storage costs: $45K/month), 3) Design modifications using available components (6-week timeline, engineering costs). Fuel cost increases affect logistics by 8-15%. New EU sustainability regs require supplier carbon disclosure. Which risk tolerance and capital constraints guide your preference?"
- D"Supply chain restructuring requires comprehensive analysis of multiple interdependent factors."
- Q68MCQ1 Mark·Choose one option
Which processing sequence correctly describes the supply chain RAG system's comprehensive optimization workflow?
- ASupply Chain Query → Supplier Database Search → Cost Comparison Report
- BSupply Chain Query → Keyword Matching → Return Cheapest Options
- CSupply Chain Query → Multi-Modal Analysis (supplier performance + market conditions + regulatory requirements + risk factors) → Scenario Modeling → Optimization Recommendations with Risk-Adjusted Trade-offs
- DSupply Chain Query → Historical Data Retrieval → Standard Report Generation
End Term · 13 Apr 2025 (FN)End Term
- Q69MCQ1 Mark·Choose one option
You receive a tab-delimited file where some numeric fields are interpreted as dates (e.g., "3/10" becomes "March 10" in Excel). What is the most effective way to handle this in Text to-Columns?
- AChange the delimiter to commas before opening the file
- BFormat the column as Text before applying Text-to-Columns
- CUse the General data format option in Text-to-Columns
- DManually change the affected cells back to numbers after splitting
- Q70MCQ1 Mark·Choose one option
In Python, which statement correctly handles exceptions and ensures that cleanup code is executed?
- A

- B

- C

- D

- A
- Q71MCQ1 Mark·Choose one option
A research team has a pandas dataframe of medical trial participants. To quickly identify how many different treatment groups exist, which Pandas method would be most efficient?
- A`len(set(column))`
- B`column.count()`
- C`column.nunique()`
- D`column.value_counts()`
- Q72MCQ1 Mark·Choose one option

- ATo track changes to specific files
- BTo specify files that Git should not track
- CTo define Git repository settings
- DTo list contributors to the repository
- Q73MCQ1 Mark·Choose one option
A developer wants to examine API request headers and responses to debug an issue with a failing API call. Where in Chrome DevTools should they look?
- AConsole tab
- BApplication tab
- CNetwork tab
- DSources tab
- Q74MCQ1 Mark·Choose one option
A pharmaceutical researcher is testing a new drug's effectiveness. If the p-value is 0.03 in a regression analysis, what can be concluded about the drug's impact?
- AThe drug has no significant effect
- BThe result is statistically significant at a 5% significance level
- CMore data collection is needed
- DThe sample size is too small
- Q75MCQ1 Mark·Choose one option
A data analyst receives a messy dataset with inconsistent company names like "Apple", "Apple Inc.", and "Apple Incorporated". Which tool would best standardize these entries?
- AExcel's Find and Replace
- BOpenRefine's clustering feature
- CPython's string manipulation
- DManual editing
- Q76MCQ1 Mark·Choose one option
A web developer wants to analyze the load time and resources of a webpage. Which Chrome DevTools feature provides comprehensive network request information?
- AConsole tab
- BNetwork tab
- CElements tab
- DSources tab
- Q77MCQ1 Mark·Choose one option
Which of the following is NOT a feature typically found in modern IDEs?
- ASyntax highlighting
- BIntegrated debugger
- CVersion control integration
- DNative hardware virtualization
- Q78MCQ1 Mark·Choose one option
Which of the following describes the primary use of Kumu?
- ABuilding financial models
- BCreating system maps and visualizing relationships
- CPerforming real-time data analysis
- DDesigning geographic maps for navigation
- Q79MCQ2 Marks·Choose one option
Which HTTP method is idempotent, meaning multiple identical requests have the same effect as a single request?
- APOST
- BPUT
- CGET
- DDELETE
- Q80MSQ2 Marks·Choose all correct options
A researcher needs to perform spatial data operations like buffering and visualize the results on an interactive map. Which libraries would be most suitable?
- AGeopandas
- BFolium
- CMatplotlib
- DShapely
Read the passage below, then answer Q81–Q83
Scenario 1:
Sarah is working on a research paper about renewable energy technologies and decides to use an LLM to help her draft some sections.
Based on the above data, answer the given subquestions.
Q81MCQ1 Mark·Choose one optionSarah prompts the LLM: "Write a comprehensive overview of solar energy advancements in the last decade." The instructor wants to ensure that the LLM provides concise, clear, and helpful answers. What is the role of the system prompt in guiding the LLM's behavior?
- AIt defines the LLM’s tone, behavior, and response style to align with the instructor's teaching goals.
- BIt provides a list of pre-written responses to be used in all classroom scenarios.
- CIt prevents the LLM from ever deviating from pre-determined responses, regardless of the context.
- DIt configures the LLM to only respond to specific commands, disregarding any other input.
- Q82MSQ2 Marks·Choose all correct options
When Sarah submits increasingly complex prompts about solar energy, which of the following statements are TRUE regarding LLM cost and usage
- ALLM costs are primarily calculated based on the number of tokens processed
- BLLM usage is always free for academic research
- CThe total length of both input prompt and output response impacts the overall cost
- DLLM costs are fixed regardless of the complexity of the query
- EToken count has no relation to computational resources required
- Q83MCQ1 Mark·Choose one option
Sarah wants to improve the specificity of her LLM prompt. Which prompt is likely to generate the most precise and useful response?
- A"Tell me about solar energy"
- B"Discuss solar energy advancements"
- C"Outline 4 key solar energy technological breakthroughs from 2014-2024, including specific efficiency improvements and implementation challenges"
- D"Write a paragraph about solar energy"
Read the passage below, then answer Q84–Q88
Scenario 2
Wildfire Emergency Evacuation Planning
Background:
A wildfire is threatening a rural mountain region, and emergency services need to coordinate evacuation routes for four remote communities. The Emergency Management Center is located at a central command post, and must plan the most efficient evacuation route to ensure rapid and safe community evacuation.
The four communities are:
Pine Ridge Settlement (Latitude: 38.7456, Longitude: -120.8765)
Mountain View Village (Latitude: 38.6987, Longitude: -120.9234)
River Valley Community (Latitude: 38.7123, Longitude: -120.7654)
Forest Creek Hamlet (Latitude: 38.6789, Longitude: -120.8901)
Central Command Post Location:
(Latitude: 38.7200, Longitude: -120.8500)
Based on the above data, answer the given subquestions.
Q84MCQ1 Mark·Choose one optionDuring the wildfire emergency, multiple teams are updating evacuation plans. Which Git command would a team member use to get the latest evacuation route updates?
- Agit commit
- Bgit checkout
- Cgit pull
- Dgit add
- Q85MCQ1 Mark·Choose one option
An emergency responder needs to search through evacuation logs to find all entries related to "Pine Ridge". Which command would be most useful?
- A

- B

- C

- D

- A
- Q86MCQ1 Mark·Choose one option
In a resource-constrained emergency environment, which deployment method would be MOST appropriate for the Python-based evacuation management system?
- ARunning scripts locally on a single emergency responder's laptop
- BDistributing Python source code to all emergency personnel
- CContainerized deployment with Docker for consistent execution across multiple devices
- DFull cloud migration requiring constant internet connectivity
- Q87MCQ1 Mark·Choose one option
Which computational tool would be MOST APPROPRIATE for optimizing the complex evacuation route considering multiple communities?
- AMicrosoft Excel for manual distance calculations
- BGoogle Maps for route visualization
- CPython libraries like NetworkX or OR-Tools for route optimization
- DQGIS for static route mapping
- Q88MCQ1 Mark·Choose one option
What is the primary advantage of using the Haversine formula in emergency route planning?
- ACalculating exact road distances
- BDetermining travel time under specific conditions
- CComputing great-circle distances on a spherical Earth
- DMeasuring elevation changes in mountainous terrain
Read the passage below, then answer Q89–Q99
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 given and answer the sub-questions.
Note: Assume that you are using Python codes for log analysis
Q89MCQ2 Marks·Choose one optionWhich of the following is a valid log entry based on the provided format?
- A192.168.1.1 - - [12/Dec/2024:14:05:59 -0500] "GET /image.jpg HTTP/1.1" 200 1234 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" www.s-anand.net 192.254.190.217
- B192.168.1.1 - - [12/Dec/2024:14:05:59 -0500] "POST /image.jpg INVALID" 200 1234 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" www.s-anand.net 192.254.190.217
- C192.168.1.1 - - [12/Dec/2024:14:05:59 -0500] "PUT /image.jpg HTTP/1.1" OK 1234 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" www.s-anand.net 192.254.190.217
- D203.0.113.7 - - [14/Dec/2024:16:45:11 -0500] "GET /index.html HTTP/1.1" 200 3500 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36" www.s-anand.net 192.254.190.219
- Q90MCQ1 Mark·Choose one option
Which of the following fields are necessary to filter "POST requests made for pages under /images/ from 15:00 to 18:00 on Mondays"?
- ATime, Request, Method, URL
- BTime, Method, Status, Size
- CTime, Method, URL, Referer
- DTime, Status, URL, Server
- Q91MCQ1 Mark·Choose one option
If the time in the log is stored in the format [01/May/2024:00:00:00 -0500], which of the following time formats should you use to parse it correctly?
- A

- B

- C

- D

- A
- Q92MCQ2 Marks·Choose one option
Which of the following methods is best for identifying if a log entry’s timestamp corresponds to a Sunday?
- ACheck if timestamp.dayname() == 'Sunday'
- BCheck if timestamp.weekday() == 5
- CCheck if timestamp.strftime('%A') == 'Sunday'
- DCheck if timestamp.weekday() == 6
- Q93MCQ1 Mark·Choose one option
How would you identify log entries where the time is between 16:00 and 18:59 on Sundays?
- ACheck if 16 <= timestamp.hour < 18
- BCheck if 16 <= timestamp.hour < 19
- CCheck if 16 < timestamp.hour < 19
- DCheck if timestamp.hour in range(16, 20)
- Q94MCQ1 Mark·Choose one option
How would you extract the HTTP protocol version (e.g., HTTP/1.1) from the Request field "GET /blog/ HTTP/1.1"?
- AUse request.split('/')[1]
- BUse request.split(' ')[2]
- CUse request.split(' ')[1]
- DUse request.split('/')[2]
- Q95MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A
- Q96MCQ1 Mark·Choose one option

- A

- B

- C

- D

- A
- Q97MCQ1 Mark·Choose one option
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’)
- Astatus in [301, 302, 303]
- B200 < status < 400
- C300 <= status < 400
- Dstatus in range(299, 400)
- Q98MCQ1 Mark·Choose one option
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/?
- AUse len(filtered_entries)
- BUse len(entries)
- CUse sum(1 for entry in entries)
- DNone of these
- Q99MCQ1 Mark·Choose one option
If the count of log entries appears much larger than expected, which of the following could be the reason?
- AThe filter for Monday is incorrect.
- BThe filter for time range is incorrect.
- CThe filter for HTTP method is incorrect.
- DAny of these could be the reason.
Read the passage below, then answer Q100–Q103
Scenario 4
A climate science professor is developing an AI-powered learning assistant called ClimateBot to help students understand complex climate modeling techniques and computational approaches to environmental data analysis.
Guidelines for ClimateBot:
- Engage students through thought-provoking questions
- Encourage independent problem-solving
- Guide students to discover solutions autonomously
- Provide conceptual insights, not direct answers
- Help students develop robust computational and analytical skills
Based on the above data, answer the given subquestions.
Q100MCQ1 Mark·Choose one optionWhat is the primary purpose of the system prompt in controlling an AI learning assistant's behavior?
- ATo create a fixed set of predetermined responses for every possible student query
- BTo define the core communication strategy, learning approach, and interaction guidelines
- CTo replace the need for human instructor guidance completely
- DTo limit the AI's ability to understand complex scientific concepts
- Q101MCQ1 Mark·Choose one option
Choose the best system prompt that achieves the instructor's goals.
- A"You are a climate science assistant. Provide direct answers and complete code solutions whenever students ask."
- B"You are an interactive learning assistant for climate science. Guide students through complex concepts by asking reflective questions. Avoid giving direct solutions. Encourage independent thinking and help students develop problem-solving skills."
- C"You are a simple computational tool. Provide exact numerical answers and full code implementations for any climate modeling question."
- D"You are a climate science assistant. Help students and tell them to consult textbooks for all information."
- Q102MCQ1 Mark·Choose one option
A student asks: "How do I calculate the global warming potential of different greenhouse gases?" Choose the most pedagogically effective response:
- A"The global warming potential (GWP) is calculated by multiplying the gas's radiative efficiency by its atmospheric lifetime. Here's the exact formula: [provides complete formula and calculation method]"
- B"Global warming potential (GWP) is determined by factors like a gas's molecular structure, atmospheric lifetime, and interaction with radiation. Different gases have different GWPs based on these characteristics."
- C"Let's break this down. What do you already know about greenhouse gases and their impact on climate? Have you considered how different molecules might have varying abilities to trap heat?"
- D"I cannot help you with this calculation. Please refer to your textbook for a complete explanation."
- Q103MCQ1 Mark·Choose one option
Assume that the ClimateBot, an advanced learning assistant for climate science students.Its primary mission is to foster critical thinking, scientific reasoning, and deep understanding of complex environmental systems by using a RAG (Retrieval-Augmented Generation) system. The RAG system works as follows: 1. Climate Data Storage: Comprehensive climate research materials (like reports, research papers and notes) are split into smaller chunks. Each chunk is 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 the most relevant content (based on semantic similarity) from the vector database. 4. LLM Contextualization: The retrieved content is added as context in the assistant's prompt, which is then used by the LLM (like GPT-4) to generate a personalized, context-aware response. Which of the following correctly describes the process flow of a RAG-based system for the IITM TDS Teaching Assistant?
- A

- B

- C

- D

- A
Official KeyMaster Answer Key & Explanations
Official answer keys from IIT Madras BS past papers. Click any question to review.
Reveal KeyCollapse Key
Master Answer Key & Explanations
Official answer keys from IIT Madras BS past papers. Click any question to review.