uiz Space

September 2024 term · Tools in Data Science · BSSE2002

Tools in Data Science End Term: 22 December 2024 (September 2024 term)

The IIT Madras BS Tools in Data Science (Tools in Data Science (TDS)) End Term paper sat on 22 Dec 2024, in the September 2024 term: 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
29
MSQ
6

Updated

Official paper: IIT M FOUNDATION DIPLOMA FN EXAM QDF1 22 Dec 2024 · No negative marking.

Question 1

+1 markOne correct option
  1. A

    The numeric part of the order (123, 456, 789, 101)

  2. B

    Only the first character of the order ID (O, O, O, O)

  3. C

    The column will remain unchanged

  4. D

    Each character of the order ID will be split into separate cells (O, r, d, e, r, I, D, 1, 2, 3)

Show answer

Correct answer

  • D

    Each character of the order ID will be split into separate cells (O, r, d, e, r, I, D, 1, 2, 3)

Question 2

+1 markOne correct option

You and your friend are building a KNN model to classify customers based on their shopping patterns. You use cross-validation to choose K = 6, while your friend guesses and sets K = 2. On the test set, you notice that your friend's model has a much higher training accuracy but much lower test accuracy than yours. Which of the following is the best explanation?

  1. A

    Your friend’s model has higher bias than yours

  2. B

    Your friend’s model has higher variance and overfits the data

  3. C

    Your model underfits the data compared to your friend’s model

  4. D

    Your model overfits the data compared to your friend’s model

Show answer

Correct answer

  • B

    Your friend’s model has higher variance and overfits the data

Question 3

+1 markOne correct option

You are running a K-means clustering algorithm on customer segmentation data. Each time you run the model, you get different cluster assignments, making it hard to compare results. Which parameter should you adjust in the kmeans() function to achieve more stable and consistent results?

  1. A

    algorithm

  2. B

    max_iter

  3. C

    n_clusters

  4. D

    n_init

Show answer

Correct answer

  • D

    n_init

Question 4

+1 markOne correct option

You are fitting an ARIMA model to a stock price time series. You want to use no moving average component, 5 lags for autoregression, and 1 difference to make the series stationary. Which of the following model specifications should you use?

  1. A

    ARIMA(..., trend = (5,1,0))

  2. B

    ARIMA(..., order = (5,1,0))

  3. C

    ARIMA(..., order = (0,5,1))

  4. D

    ARIMA(..., trend = (0,5,1))

Show answer

Correct answer

  • B

    ARIMA(..., order = (5,1,0))

Question 5

+1 markOne correct option

You are debugging a login issue on a website and want to check if the site is setting a "session" cookie properly. In Chrome DevTools, which tab should you open to view the cookies associated with the website?

  1. A

    Elements

  2. B

    Network

  3. C

    Source

  4. D

    Application

Show answer

Correct answer

  • D

    Application

Question 6

+1 markOne correct option

You are building a linear regression model to predict house prices based on the number of bedrooms. You obtain a p-value of 0.03 for the coefficient of "number of bedrooms." Which of the following conclusions can you draw?

  1. A

    The relationship between number of bedrooms and house prices is statistically significant

  2. B

    There is no relationship between number of bedrooms and house prices

  3. C

    The analysis is inconclusive

  4. D

    The model is overfitting

Show answer

Correct answer

  • A

    The relationship between number of bedrooms and house prices is statistically significant

Question 7

+1 markOne correct option

You have a dataset of customer names that includes duplicates due to inconsistent capitalization and extra whitespace (e.g., 'John Doe', 'JOHN DOE', 'John Doe'). Which of the following tools would be best for cleaning and de-duplicating this data?

  1. A

    OpenRefine

  2. B

    Tableau

  3. C

    MySQL

  4. D

    Microsoft Excel

Show answer

Correct answer

  • A

    OpenRefine

Question 8

+1 markOne correct option

You want to check if a button click on a website triggers an API call to the backend. Which tab in Chrome DevTools should you monitor to see the network request?

  1. A

    Elements

  2. B

    Console

  3. C

    Sources

  4. D

    Network

Show answer

Correct answer

  • D

    Network

Question 9

+1 markOne correct option

You are creating a Streamlit app to display COVID-19 statistics. At the top of the app, you want to display an introductory message explaining the purpose of the app. Which of the following commands will achieve this ?

  1. A

    st.add_text()

  2. B

    st.text()

  3. C

    st.insert_text()

  4. D

    st.display_text()

Show answer

Correct answer

  • B

    st.text()

Question 10

+1 markOne correct option

Your manager asks you to share your Tableau file with the sales team so they can see all the visualizations, dashboards, and underlying data. What type of file would you share with them to include everything needed for the team to view the content and access the data?

  1. A

    A Microsoft Excel workbook

  2. B

    A Tableau workbook file (.twb) containing sheets, dashboards, and stories

  3. C

    A Tableau story file (.twb) containing a sequence of sheets and dashboards

  4. D

    A Tableau Packaged Workbook (.twbx) including all sheets, dashboards, stories, and data

Show answer

Correct answer

  • D

    A Tableau Packaged Workbook (.twbx) including all sheets, dashboards, stories, and data

Question 11

+2 marksOne or more correct options

Select all that apply.

  1. A

    data_df.book_genre.unique()

  2. B

    data_df.book_genre.category_name()

  3. C

    data_df['book_genre'].distinct()

  4. D

    data_df['book_genre'].unique()

Show answer

Correct answers

  • A

    data_df.book_genre.unique()

  • D

    data_df['book_genre'].unique()

Question 12

+1 markOne or more correct options

You are asked to create an interactive map showing the locations of COVID-19 vaccination centers. Which of the following Python libraries would be most useful for geospatial analysis and visualization?

Select all that apply.

  1. A

    Geopandas

  2. B

    QGIS

  3. C

    Folium

  4. D

    OpenStreetMap

Show answer

Correct answers

  • A

    Geopandas

  • C

    Folium

Question 13

+1 markOne correct option

Scenario 1
Reema is working on her project report and decides to use an LLM (like ChatGPT) to generate content for the “Introduction” section of her report. Below is her interaction with the LLM. Reema: "Write an introduction on the impact of AI on employment. Make it sound academic and professional."
LLM:
The rise of artificial intelligence (AI) has significantly transformed employment patterns worldwide. While automation increases productivity and efficiency, it also leads to displacement of certain jobs. Sectors like manufacturing and logistics are experiencing reduced demand for human labor, while jobs requiring creativity, empathy, and complex problem-solving are on the rise. Policymakers and educators are now focusing on reskilling workers to adapt to this change. Based on the above data, answer the given subquestions.

Which of the following actions should Reema take to validate the LLM's claims?

  1. A

    Ask the LLM to provide sources for the claims it makes.

  2. B

    Use trusted sources (like academic journals, industry reports, or government publications) to verify the LLM's information.

  3. C

    Assume the LLM is always accurate and submit the report as-is.

  4. D

    Copy and paste the same prompt into another LLM (like Bard or Claude) and compare the responses.

Show answer

Correct answer

  • B

    Use trusted sources (like academic journals, industry reports, or government publications) to verify the LLM's information.

Question 14

+2 marksOne or more correct options

Scenario 1
Reema is working on her project report and decides to use an LLM (like ChatGPT) to generate content for the “Introduction” section of her report. Below is her interaction with the LLM. Reema: "Write an introduction on the impact of AI on employment. Make it sound academic and professional."
LLM:
The rise of artificial intelligence (AI) has significantly transformed employment patterns worldwide. While automation increases productivity and efficiency, it also leads to displacement of certain jobs. Sectors like manufacturing and logistics are experiencing reduced demand for human labor, while jobs requiring creativity, empathy, and complex problem-solving are on the rise. Policymakers and educators are now focusing on reskilling workers to adapt to this change. Based on the above data, answer the given subquestions.

Reema realizes that the LLM's response was too short, and she wants more details for the introduction. She tries the following prompt:
"Give a more detailed and comprehensive introduction on the impact of AI on employment. Include key trends, specific examples, and the role of governments in addressing employment issues."
The LLM takes longer to generate the response and produces a longer, more detailed introduction.Which of the following is TRUE about how this new prompt impacts usage and costs?

Select all that apply.

  1. A

    The cost of LLM usage increases as more words are included in the output.

  2. B

    The cost of LLM usage depends only on the number of requests, not the length of the response.

  3. C

    The time it takes for the LLM to generate the output depends on the size of the prompt and the complexity of the instructions.

  4. D

    The time it takes for the LLM is dependent only on the size of the prompt

Show answer

Correct answers

  • A

    The cost of LLM usage increases as more words are included in the output.

  • C

    The time it takes for the LLM to generate the output depends on the size of the prompt and the complexity of the instructions.

Question 15

+1 markOne correct option

Scenario 1
Reema is working on her project report and decides to use an LLM (like ChatGPT) to generate content for the “Introduction” section of her report. Below is her interaction with the LLM. Reema: "Write an introduction on the impact of AI on employment. Make it sound academic and professional."
LLM:
The rise of artificial intelligence (AI) has significantly transformed employment patterns worldwide. While automation increases productivity and efficiency, it also leads to displacement of certain jobs. Sectors like manufacturing and logistics are experiencing reduced demand for human labor, while jobs requiring creativity, empathy, and complex problem-solving are on the rise. Policymakers and educators are now focusing on reskilling workers to adapt to this change. Based on the above data, answer the given subquestions.

Reema notices that the LLM sometimes produces "generic" and "vague" responses. She wants more specific, detailed, and structured answers. Which of the following prompts would most likely produce a more specific and useful response from the LLM?

  1. A

    "Write a detailed introduction on the impact of AI on employment."

  2. B

    "List 3 key trends in the impact of AI on employment and provide a real-world example for each."

  3. C

    "Discuss how AI impacts employment in different sectors."

  4. D

    "Explain the impact of AI on employment."

Show answer

Correct answer

  • B

    "List 3 key trends in the impact of AI on employment and provide a real-world example for each."

Question 16

+1 markOne or more correct options

Scenario 2
Geospatial Distance Calculation for Emergency Response
Background:
As part of the course, you have been introduced with the concept of Haversine formula and its use in distance calculations between two points. The below is a transcript of the conversation between a student in TDS and ChatGPT while they were trying to solve the questions in Graded Assignment 6.
Student-ChatGPT Discussion Thread
Student:
Hi, I have two locations with the following coordinates:
- Location A: Latitude = 40.748817, Longitude = -73.985428
- Location B: Latitude = 40.761293, Longitude = -73.982294
I need to calculate the distance between them. I heard that the Haversine formula can be used for this. Can you help me understand how to do this step-by-step?

Student:
Ah, I see my mistake. I’ll correct the second part and continue with the calculation. Thanks! Assume that the student got the full marks for the answers in Graded Assignment 6. Use the information given in the above conversation to answer the given subquestions for the given scenario.
Emergency Medical Supply Delivery in Storm-Critical Zones
Background:
The city of Hillton has been hit by a severe storm, leading to power outages and road closures. The city’s emergency response team is tasked with delivering medical supplies to four hospitals located in different areas of the city. Due to time constraints, the response team wants to find the most optimal route to minimize travel distance.
The team has access to a file called hospital_locations.csv, which contains the following information:
- Hospital Name
- Business ID
- Latitude
- Longitude
The 4 hospitals in need of supplies are:
1. North Hill Hospital (Business ID: 2103) — (Latitude: 40.7128, Longitude: -74.0060) 2. Eastview Medical Center (Business ID: 2158) — (Latitude: 40.7306, Longitude: -73.9866) 3. Westbrook Hospital (Business ID: 1987) — (Latitude: 40.6995, Longitude: -74.1745) 4. Southend Clinic (Business ID: 2895) — (Latitude: 40.6526, Longitude: -73.9497)
The emergency response team is currently stationed at the Emergency Supply Center at (Latitude: 40.7222, Longitude: -74.0134). The team must deliver supplies to each of the 4 hospitals and return to the supply center.
The goal is to minimize the total distance traveled.
Based on the above data, answer the given subquestions.

The first step is to calculate the distance (in meters) between the Emergency Supply Center and each of the 4 hospitals using the Haversine formula.
Which of the following is the correct distance (in meters,most closest) from the Emergency Supply Center (Latitude: 40.7222, Longitude: -74.0134) to Eastview Medical Center (Latitude: 40.7306, Longitude: -73.9866)?

Select all that apply.

  1. A

    1,975 meters

  2. B

    2,346 meters

  3. C

    2,925 meters

  4. D

    3,254 meters

Show answer

Correct answer

  • B

    2,346 meters

Question 17

+2 marksOne correct option

Scenario 2
Geospatial Distance Calculation for Emergency Response
Background:
As part of the course, you have been introduced with the concept of Haversine formula and its use in distance calculations between two points. The below is a transcript of the conversation between a student in TDS and ChatGPT while they were trying to solve the questions in Graded Assignment 6.
Student-ChatGPT Discussion Thread
Student:
Hi, I have two locations with the following coordinates:
- Location A: Latitude = 40.748817, Longitude = -73.985428
- Location B: Latitude = 40.761293, Longitude = -73.982294
I need to calculate the distance between them. I heard that the Haversine formula can be used for this. Can you help me understand how to do this step-by-step?

Student:
Ah, I see my mistake. I’ll correct the second part and continue with the calculation. Thanks! Assume that the student got the full marks for the answers in Graded Assignment 6. Use the information given in the above conversation to answer the given subquestions for the given scenario.
Emergency Medical Supply Delivery in Storm-Critical Zones
Background:
The city of Hillton has been hit by a severe storm, leading to power outages and road closures. The city’s emergency response team is tasked with delivering medical supplies to four hospitals located in different areas of the city. Due to time constraints, the response team wants to find the most optimal route to minimize travel distance.
The team has access to a file called hospital_locations.csv, which contains the following information:
- Hospital Name
- Business ID
- Latitude
- Longitude
The 4 hospitals in need of supplies are:
1. North Hill Hospital (Business ID: 2103) — (Latitude: 40.7128, Longitude: -74.0060) 2. Eastview Medical Center (Business ID: 2158) — (Latitude: 40.7306, Longitude: -73.9866) 3. Westbrook Hospital (Business ID: 1987) — (Latitude: 40.6995, Longitude: -74.1745) 4. Southend Clinic (Business ID: 2895) — (Latitude: 40.6526, Longitude: -73.9497)
The emergency response team is currently stationed at the Emergency Supply Center at (Latitude: 40.7222, Longitude: -74.0134). The team must deliver supplies to each of the 4 hospitals and return to the supply center.
The goal is to minimize the total distance traveled.
Based on the above data, answer the given subquestions.

The response team wants to deliver to the nearest hospital first. Which of the following hospitals is closest to the Emergency Supply Center (Latitude: 40.7222, Longitude: -74.0134)?

  1. A

    North Hill Hospital (Latitude: 40.7128, Longitude: -74.0060)

  2. B

    Eastview Medical Center (Latitude: 40.7306, Longitude: -73.9866)

  3. C

    Westbrook Hospital (Latitude: 40.6995, Longitude: -74.1745)

  4. D

    Southend Clinic (Latitude: 40.6526, Longitude: -73.9497)

Show answer

Correct answer

  • A

    North Hill Hospital (Latitude: 40.7128, Longitude: -74.0060)

Question 18

+2 marksOne correct option

Scenario 2
Geospatial Distance Calculation for Emergency Response
Background:
As part of the course, you have been introduced with the concept of Haversine formula and its use in distance calculations between two points. The below is a transcript of the conversation between a student in TDS and ChatGPT while they were trying to solve the questions in Graded Assignment 6.
Student-ChatGPT Discussion Thread
Student:
Hi, I have two locations with the following coordinates:
- Location A: Latitude = 40.748817, Longitude = -73.985428
- Location B: Latitude = 40.761293, Longitude = -73.982294
I need to calculate the distance between them. I heard that the Haversine formula can be used for this. Can you help me understand how to do this step-by-step?

Student:
Ah, I see my mistake. I’ll correct the second part and continue with the calculation. Thanks! Assume that the student got the full marks for the answers in Graded Assignment 6. Use the information given in the above conversation to answer the given subquestions for the given scenario.
Emergency Medical Supply Delivery in Storm-Critical Zones
Background:
The city of Hillton has been hit by a severe storm, leading to power outages and road closures. The city’s emergency response team is tasked with delivering medical supplies to four hospitals located in different areas of the city. Due to time constraints, the response team wants to find the most optimal route to minimize travel distance.
The team has access to a file called hospital_locations.csv, which contains the following information:
- Hospital Name
- Business ID
- Latitude
- Longitude
The 4 hospitals in need of supplies are:
1. North Hill Hospital (Business ID: 2103) — (Latitude: 40.7128, Longitude: -74.0060) 2. Eastview Medical Center (Business ID: 2158) — (Latitude: 40.7306, Longitude: -73.9866) 3. Westbrook Hospital (Business ID: 1987) — (Latitude: 40.6995, Longitude: -74.1745) 4. Southend Clinic (Business ID: 2895) — (Latitude: 40.6526, Longitude: -73.9497)
The emergency response team is currently stationed at the Emergency Supply Center at (Latitude: 40.7222, Longitude: -74.0134). The team must deliver supplies to each of the 4 hospitals and return to the supply center.
The goal is to minimize the total distance traveled.
Based on the above data, answer the given subquestions.

The response team has decided to follow the "nearest hospital first" strategy. The team first goes from the Emergency Supply Center to the nearest hospital identified in the previous question, then proceeds to the next closest hospital from there, and so on until all hospitals are served. Based on this strategy, which of the following represents the correct order of hospitals to visit?

  1. A

    North Hill Hospital → Eastview Medical Center → Southend Clinic → Westbrook Hospital

  2. B

    Eastview Medical Center → North Hill Hospital → Southend Clinic → Westbrook Hospital

  3. C

    North Hill Hospital → Southend Clinic → Eastview Medical Center → Westbrook Hospital

  4. D

    Eastview Medical Center → Southend Clinic → North Hill Hospital → Westbrook Hospital

Show answer

Correct answer

  • A

    North Hill Hospital → Eastview Medical Center → Southend Clinic → Westbrook Hospital

Question 19

+1 markOne correct option

Scenario 2
Geospatial Distance Calculation for Emergency Response
Background:
As part of the course, you have been introduced with the concept of Haversine formula and its use in distance calculations between two points. The below is a transcript of the conversation between a student in TDS and ChatGPT while they were trying to solve the questions in Graded Assignment 6.
Student-ChatGPT Discussion Thread
Student:
Hi, I have two locations with the following coordinates:
- Location A: Latitude = 40.748817, Longitude = -73.985428
- Location B: Latitude = 40.761293, Longitude = -73.982294
I need to calculate the distance between them. I heard that the Haversine formula can be used for this. Can you help me understand how to do this step-by-step?

Student:
Ah, I see my mistake. I’ll correct the second part and continue with the calculation. Thanks! Assume that the student got the full marks for the answers in Graded Assignment 6. Use the information given in the above conversation to answer the given subquestions for the given scenario.
Emergency Medical Supply Delivery in Storm-Critical Zones
Background:
The city of Hillton has been hit by a severe storm, leading to power outages and road closures. The city’s emergency response team is tasked with delivering medical supplies to four hospitals located in different areas of the city. Due to time constraints, the response team wants to find the most optimal route to minimize travel distance.
The team has access to a file called hospital_locations.csv, which contains the following information:
- Hospital Name
- Business ID
- Latitude
- Longitude
The 4 hospitals in need of supplies are:
1. North Hill Hospital (Business ID: 2103) — (Latitude: 40.7128, Longitude: -74.0060) 2. Eastview Medical Center (Business ID: 2158) — (Latitude: 40.7306, Longitude: -73.9866) 3. Westbrook Hospital (Business ID: 1987) — (Latitude: 40.6995, Longitude: -74.1745) 4. Southend Clinic (Business ID: 2895) — (Latitude: 40.6526, Longitude: -73.9497)
The emergency response team is currently stationed at the Emergency Supply Center at (Latitude: 40.7222, Longitude: -74.0134). The team must deliver supplies to each of the 4 hospitals and return to the supply center.
The goal is to minimize the total distance traveled.
Based on the above data, answer the given subquestions.

The response team realizes that following the "nearest hospital first" strategy may not be optimal. They consider using a more advanced strategy where they plan the entire route before starting. The team uses geospatial optimization tools to find the shortest route using a "traveling salesperson problem (TSP)" approach.
Which of the following tools would be the most appropriate for implementing this route optimization?

  1. A

    QGIS to calculate the optimal route using the shortest path network analysis tool.

  2. B

    Excel to calculate the distances between each pair of hospitals and identify the optimal route manually.

  3. C

    Power BI to visualize the hospital locations on a map and create an optimized route.

  4. D

    A TSP algorithm using Python libraries like NetworkX, SciPy, or OR-Tools to calculate the optimal route.

Show answer

Correct answer

  • D

    A TSP algorithm using Python libraries like NetworkX, SciPy, or OR-Tools to calculate the optimal route.

Question 20

+1 markOne correct option

Scenario 2
Geospatial Distance Calculation for Emergency Response
Background:
As part of the course, you have been introduced with the concept of Haversine formula and its use in distance calculations between two points. The below is a transcript of the conversation between a student in TDS and ChatGPT while they were trying to solve the questions in Graded Assignment 6.
Student-ChatGPT Discussion Thread
Student:
Hi, I have two locations with the following coordinates:
- Location A: Latitude = 40.748817, Longitude = -73.985428
- Location B: Latitude = 40.761293, Longitude = -73.982294
I need to calculate the distance between them. I heard that the Haversine formula can be used for this. Can you help me understand how to do this step-by-step?

Student:
Ah, I see my mistake. I’ll correct the second part and continue with the calculation. Thanks! Assume that the student got the full marks for the answers in Graded Assignment 6. Use the information given in the above conversation to answer the given subquestions for the given scenario.
Emergency Medical Supply Delivery in Storm-Critical Zones
Background:
The city of Hillton has been hit by a severe storm, leading to power outages and road closures. The city’s emergency response team is tasked with delivering medical supplies to four hospitals located in different areas of the city. Due to time constraints, the response team wants to find the most optimal route to minimize travel distance.
The team has access to a file called hospital_locations.csv, which contains the following information:
- Hospital Name
- Business ID
- Latitude
- Longitude
The 4 hospitals in need of supplies are:
1. North Hill Hospital (Business ID: 2103) — (Latitude: 40.7128, Longitude: -74.0060) 2. Eastview Medical Center (Business ID: 2158) — (Latitude: 40.7306, Longitude: -73.9866) 3. Westbrook Hospital (Business ID: 1987) — (Latitude: 40.6995, Longitude: -74.1745) 4. Southend Clinic (Business ID: 2895) — (Latitude: 40.6526, Longitude: -73.9497)
The emergency response team is currently stationed at the Emergency Supply Center at (Latitude: 40.7222, Longitude: -74.0134). The team must deliver supplies to each of the 4 hospitals and return to the supply center.
The goal is to minimize the total distance traveled.
Based on the above data, answer the given subquestions.

Which of the following best describes the purpose of using the Haversine formula in geospatial analysis?

  1. A

    It calculates the distance between two points along a road or path on a map.

  2. B

    It computes the distance between two points along the surface of a sphere.

  3. C

    It measures the Euclidean distance between two points in a Cartesian coordinate system.

  4. D

    It calculates the total travel time between two points based on traffic conditions.

Show answer

Correct answer

  • B

    It computes the distance between two points along the surface of a sphere.

Question 21

+2 marksOne or more correct options

Which of the below can be a valid log file entry based on the descriptions provided in the main question?

Select all that apply.

  1. A

    40.77.167.48 - - [30/Apr/2024:07:12:09 -0500] "GET /mplayer2.jsz HTTP/1.1" 200 7416 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36" www.s-anand.net 192.254.190.216

  2. B

    40.77.167.48 - - [30/Apr/2024:07:12:09 -0500] "POST /mplayer2.jsz HTTP/1.1" 200 7416 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36" www.s-anand.net 192.254.190.216

  3. C

    40.77.167.48 - - [30-Apr-2024 07:12:09 -0500] "GET /mplayer2.jsz HTTP/1.1" 200 7416 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36" www.s-anand.net 192.254.190.216

  4. D

    40.77.167.48 - - [30/Apr/2024:07:12:09 -0500] "GET /mplayer2.jsz HTTP/1.1" OK 7416 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36" www.s-anand.net 192.254.190.216

Show answer

Correct answers

  • A

    40.77.167.48 - - [30/Apr/2024:07:12:09 -0500] "GET /mplayer2.jsz HTTP/1.1" 200 7416 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36" www.s-anand.net 192.254.190.216

  • B

    40.77.167.48 - - [30/Apr/2024:07:12:09 -0500] "POST /mplayer2.jsz HTTP/1.1" 200 7416 "-" "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm) Chrome/116.0.1938.76 Safari/537.36" www.s-anand.net 192.254.190.216

Question 22

+1 markOne correct option

Which of the following fields are necessary to filter "GET requests made for pages under /telugump3/ from 10:00 until before 21:00 on Saturdays"?

  1. A

    Time, Request, URL, Method

  2. B

    Time, Request, Status, Size

  3. C

    Time, Method, URL, Status

  4. D

    Time, Status, URL, Referer

Show answer

Correct answer

  • C

    Time, Method, URL, Status

Question 23

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

Correct answer

  • A

Question 24

+1 markOne correct option

Which of the following methods is best for identifying if a log entry's timestamp corresponds to a Saturday? (timestamp is a method in datetime library)

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

Correct answer

  • B

Question 25

+1 markOne or more correct options

How would you identify log entries where the time is between 10:00 and 20:59 on Saturdays?

Select all that apply.

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

Correct answers

  • A
  • D

Question 26

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

Correct answer

  • A

Question 27

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

Correct answer

  • A

Question 28

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

Correct answer

  • B

Question 29

+1 markOne correct option

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

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

Correct answer

  • A

Question 30

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

Correct answer

  • A

Question 31

+1 markOne correct option

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

  1. A

    The filter for Saturday is incorrect.

  2. B

    The filter for time range is incorrect.

  3. C

    The filter for successful status codes is incorrect.

  4. D

    Any of the given option could be the reason.

Show answer

Correct answer

  • D

    Any of the given option could be the reason.

Question 32

+1 markOne correct option

Scenario 4
The course instructor of TDS is developing an LLM-powered learning assistant called EduBot. This assistant is used by students to learn concepts in geospatial analysis, optimization, and data science. This bot will be highly helpful for students in solving the questions given in the context of “Emergency Medical Supply Delivery in Storm-Critical Zones” in this question paper. The goal of the assistant is to help students think critically and solve problems independently without receiving direct answers or step-by-step solutions.
The instructor defines the following constraints for the LLM assistant (EduBot):
1. Do not provide final answers — If a student asks for the solution, the agent must not give the final answer.
2. Do not provide step-by-step code — The agent must avoid giving Python, SQL, or R code directly.
3. Encourage critical thinking — The agent should guide students using reflective questions, sanity checks, and logical reasoning.
4. Use context-aware prompts — The agent should recognize when a student might have made a conceptual mistake (like unit errors) and provide guidance.
The instructor asks you, as part of a course assignment, to design the system prompt that will be sent to OpenAI’s API for creating this LLM-based agent. Your task is to answer the given sub- questions to ensure EduBot works as expected.

The instructor wants to ensure that the agent’s purpose is clear to the LLM. What is the role of the system prompt in controlling the LLM's behavior?

  1. A

    It defines the role, constraints, and communication style of the LLM agent, ensuring it guides rather than solves.

  2. B

    It acts as a script that contains hard-coded responses for every student question.

  3. C

    It ensures that the LLM only responds with exact pre-written answers to specific queries.

  4. D

    It modifies the OpenAI model itself to force it to behave like a teaching assistant.

Show answer

Correct answer

  • A

    It defines the role, constraints, and communication style of the LLM agent, ensuring it guides rather than solves.

Question 33

+1 markOne correct option

Scenario 4
The course instructor of TDS is developing an LLM-powered learning assistant called EduBot. This assistant is used by students to learn concepts in geospatial analysis, optimization, and data science. This bot will be highly helpful for students in solving the questions given in the context of “Emergency Medical Supply Delivery in Storm-Critical Zones” in this question paper. The goal of the assistant is to help students think critically and solve problems independently without receiving direct answers or step-by-step solutions.
The instructor defines the following constraints for the LLM assistant (EduBot):
1. Do not provide final answers — If a student asks for the solution, the agent must not give the final answer.
2. Do not provide step-by-step code — The agent must avoid giving Python, SQL, or R code directly.
3. Encourage critical thinking — The agent should guide students using reflective questions, sanity checks, and logical reasoning.
4. Use context-aware prompts — The agent should recognize when a student might have made a conceptual mistake (like unit errors) and provide guidance.
The instructor asks you, as part of a course assignment, to design the system prompt that will be sent to OpenAI’s API for creating this LLM-based agent. Your task is to answer the given sub- questions to ensure EduBot works as expected.

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

  1. A

    “””You are an interactive assistant. Answer student questions directly and provide Python code or final answers if requested.
    If the student asks for clarification, provide a detailed step-by-step solution.”””

  2. B

    “””You are a learning assistant for a Data Science course. Do not provide final answers or direct solutions. Do not provide Python or step-by-step code. Encourage critical thinking using reflective questions. Use sanity checks to help students validate their work. If a student provides a calculation, prompt them to review units, radian-to-degree conversions, or other potential points of error.”””

  3. C

    “””You are a teaching assistant for a Data Science course. Answer questions using logical reasoning, and if the student requests the final solution, provide the exact distance or value. Ask follow-up questions to help students understand the answer.”””

  4. D

    “””You are a simple assistant. Do not provide step-by-step guidance or explanations. When asked about concepts like geospatial distance, tell students to look up the concept themselves. If a student asks for the answer, refuse to respond.”””

Show answer

Correct answer

  • B

    “””You are a learning assistant for a Data Science course. Do not provide final answers or direct solutions. Do not provide Python or step-by-step code. Encourage critical thinking using reflective questions. Use sanity checks to help students validate their work. If a student provides a calculation, prompt them to review units, radian-to-degree conversions, or other potential points of error.”””

Question 34

+1 markOne correct option

Scenario 4
The course instructor of TDS is developing an LLM-powered learning assistant called EduBot. This assistant is used by students to learn concepts in geospatial analysis, optimization, and data science. This bot will be highly helpful for students in solving the questions given in the context of “Emergency Medical Supply Delivery in Storm-Critical Zones” in this question paper. The goal of the assistant is to help students think critically and solve problems independently without receiving direct answers or step-by-step solutions.
The instructor defines the following constraints for the LLM assistant (EduBot):
1. Do not provide final answers — If a student asks for the solution, the agent must not give the final answer.
2. Do not provide step-by-step code — The agent must avoid giving Python, SQL, or R code directly.
3. Encourage critical thinking — The agent should guide students using reflective questions, sanity checks, and logical reasoning.
4. Use context-aware prompts — The agent should recognize when a student might have made a conceptual mistake (like unit errors) and provide guidance.
The instructor asks you, as part of a course assignment, to design the system prompt that will be sent to OpenAI’s API for creating this LLM-based agent. Your task is to answer the given sub- questions to ensure EduBot works as expected.

A student asks the following question to EduBot:
"How do I convert degrees to radians?"
The goal of the LLM assistant is to use logical reasoning to prompt the student to think critically. Instead of directly providing the formula, the assistant should encourage the student to recall or derive it on their own. The assistant should use concepts, relationships, and reasoning techniques that help the student make connections.
Which of the below responses will be an ideal response from the agent in this situation?

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

Correct answer

  • B

Question 35

+1 markOne correct option

Scenario 4
The course instructor of TDS is developing an LLM-powered learning assistant called EduBot. This assistant is used by students to learn concepts in geospatial analysis, optimization, and data science. This bot will be highly helpful for students in solving the questions given in the context of “Emergency Medical Supply Delivery in Storm-Critical Zones” in this question paper. The goal of the assistant is to help students think critically and solve problems independently without receiving direct answers or step-by-step solutions.
The instructor defines the following constraints for the LLM assistant (EduBot):
1. Do not provide final answers — If a student asks for the solution, the agent must not give the final answer.
2. Do not provide step-by-step code — The agent must avoid giving Python, SQL, or R code directly.
3. Encourage critical thinking — The agent should guide students using reflective questions, sanity checks, and logical reasoning.
4. Use context-aware prompts — The agent should recognize when a student might have made a conceptual mistake (like unit errors) and provide guidance.
The instructor asks you, as part of a course assignment, to design the system prompt that will be sent to OpenAI’s API for creating this LLM-based agent. Your task is to answer the given sub- questions to ensure EduBot works as expected.

Assume that the EduBot is designed to provide context-aware, personalized guidance to students by using a RAG (Retrieval-Augmented Generation) system.
The RAG system works as follows:
1. Course Material Storage: Custom course content (like PDFs, guides, and notes) is 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?

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

Correct answer

  • C