Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DIPLOMA LEVEL : TOOLS IN DATA SCIENCE (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Which file format is most suitable for lightweight human-readable documentation that converts easily to HTML?
Solution
Which command lists hidden files in a Unix-like shell?
Solution
In the context of APIs, an HTTP 401 response means:
Solution
What is the primary role of OpenRefine in a data workflow?
Solution
Which of the following best describes version control (git) benefit?
Solution
When designing small-unit tests for data cleaning functions, which assertion is most valuable to catch silent schema drift?
Solution
You are extracting customer name data from multiple sources. Some sources return "John Smith" while others return "smith, john". After combining data, you notice duplicate records that differ only in name format. Which approach best handles this situation?
Solution
Your team uses an external weather API in automated tests. The API sometimes returns temporary errors (500 errors). Which testing approach is most reliable?
Solution
You are combining product data from two suppliers. Supplier A has product names like "Blue T- Shirt Size M" and Supplier B has "tshirt blue m". Why is it difficult to identify these as the same product using simple text matching?
Solution
In a bash ETL script that runs on a schedule, what should you do to make sure the job can run repeatedly without causing bad or duplicated results (i.e., to keep it idempotent)?
Solution
When converting mixed-currency product feeds for analytics, why store original currency along with converted value?
Solution
You maintain a Python script that cleans data. The script uses an external library (e.g., pandas) that your organization will support for the next 2 years. However, a new version of pandas is released with bug fixes. What is the best practice?
Solution
Your team develops an automated pipeline that classifies customer support tickets into categories. A team member used an AI assistant to write the classification code. The code works correctly in testing but occasionally produces unexpected categories in production. What is the best way to identify and fix this issue?
Solution
Which provenance strategy most reliably supports reproducing a processed dataset months later when upstream providers may change?
Solution
For scaling interactive data cleaning to large datasets while retaining reproducibility and human review, the best architecture is:
Solution
When designing schema validation for heterogeneous JSON providers, the most robust rule set:
Solution
Comprehension Passage
Scenario 1: Store Location Analysis with Geospatial Data

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
When visualizing store locations on an interactive map that stakeholders can explore in a web browser, which Python library is most suitable?
Solution
Comprehension Passage
Scenario 1: Store Location Analysis with Geospatial Data

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
You want to find all stores within 5km of the city center. Using GeoPandas, what is the correct general approach?
Solution
Comprehension Passage
Scenario 1: Store Location Analysis with Geospatial Data

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
Your analysis shows store locations but distances seem incorrect (e.g., stores 1km apart show as
0.01 units apart). What is the most likely cause?
0.01 units apart). What is the most likely cause?
Solution
Comprehension Passage
Scenario 1: Store Location Analysis with Geospatial Data

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
After finding that 8 stores are within 5km of city center and 17 are farther away, which visualization best communicates this finding?
Solution
Comprehension Passage
Scenario 1: Store Location Analysis with Geospatial Data

Based on the above data, answer the given subquestions.
Based on the above data, answer the given subquestions.
You have store coordinates in a CSV file. Which Python library combination is most appropriate for performing geographic distance calculations and spatial analysis?
Solution
Comprehension Passage
Scenario 2 : Weather API Integration for Event Planning
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.

Based on the above data, answer the given subquestions.
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.
Based on the above data, answer the given subquestions.
To make a request to the weather API, which Python library is most commonly used for HTTP requests?
Solution
Comprehension Passage
Scenario 2 : Weather API Integration for Event Planning
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.

Based on the above data, answer the given subquestions.
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.
Based on the above data, answer the given subquestions.
The API requires an API key for authentication. Where should you store this API key in your code to follow security best practices?
Solution
Comprehension Passage
Scenario 2 : Weather API Integration for Event Planning
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.

Based on the above data, answer the given subquestions.
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.
Based on the above data, answer the given subquestions.
After calling the API, you want to extract the weather description (e.g., “clear sky”) from the JSON response. Which is the correct way to access it?
Solution
Comprehension Passage
Scenario 2 : Weather API Integration for Event Planning
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.

Based on the above data, answer the given subquestions.
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.
Based on the above data, answer the given subquestions.
You need to fetch weather for 10 cities, but the API has a rate limit of 60 calls per minute. How should you structure your code?
Solution
Comprehension Passage
Scenario 2 : Weather API Integration for Event Planning
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.

Based on the above data, answer the given subquestions.
Context
An event management company wants to automate weather data collection for planning outdoor events. They need to fetch current weather and 5-day forecasts from a weather API for multiple cities to help clients make informed decisions.
Based on the above data, answer the given subquestions.
The API request fails with a 401 error status code. What does this indicate?
Solution
Comprehension Passage
Scenario 3: Sentiment Analysis with LLMs
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics

Based on the above data, answer the given subquestions.
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics
Based on the above data, answer the given subquestions.
To send a review to an LLM API for sentiment analysis, which type of HTTP request would you typically make?
Solution
Comprehension Passage
Scenario 3: Sentiment Analysis with LLMs
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics

Based on the above data, answer the given subquestions.
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics
Based on the above data, answer the given subquestions.
When designing a prompt for the LLM to classify sentiment, which prompt structure is most effective?
Solution
Comprehension Passage
Scenario 3: Sentiment Analysis with LLMs
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics

Based on the above data, answer the given subquestions.
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics
Based on the above data, answer the given subquestions.
You're analyzing 500 reviews using an LLM API. Each API call costs $0.002 and takes 2 seconds. What practical considerations should guide your approach?
Solution
Comprehension Passage
Scenario 3: Sentiment Analysis with LLMs
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics

Based on the above data, answer the given subquestions.
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics
Based on the above data, answer the given subquestions.
The LLM correctly identifies negative reviews but provides inconsistent output formats (sometimes "negative", sometimes "Negative", sometimes "neg"). How do you handle this?
Solution
Comprehension Passage
Scenario 3: Sentiment Analysis with LLMs
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics

Based on the above data, answer the given subquestions.
Context
A product team wants to analyze customer feedback from app reviews to understand user sentiment and identify common issues. Instead of manual review, they use an LLM to automatically classify sentiment and extract key themes from review text.
Available Data:
- 500 app reviews (text feedback, 1-5 star ratings)
- LLM API access (e.g., OpenAI GPT, Anthropic Claude)
- Goal: Classify sentiment (positive/negative/neutral) and extract main topics
Based on the above data, answer the given subquestions.
After classifying all reviews, you want to find what percentage are negative. Which approach
correctly calculates this?
correctly calculates this?
Solution
Comprehension Passage
Scenario 4 : Customer Support Chatbot with RAG
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:

User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:
User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
In a RAG system, what is the purpose of breaking documents into smaller chunks before storing them?
Solution
Comprehension Passage
Scenario 4 : Customer Support Chatbot with RAG
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:

User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:
User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
When a user asks "What is your return policy?", which step happens FIRST in a RAG system?
Solution
Comprehension Passage
Scenario 4 : Customer Support Chatbot with RAG
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:

User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:
User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
The chatbot sometimes returns information from outdated product manuals even though newer versions exist. What is the most likely cause of this issue?
Solution
Comprehension Passage
Scenario 4 : Customer Support Chatbot with RAG
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:

User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:
User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
When choosing chunk size for splitting documents, which approach generally provides the best balance for a customer support use case?
Solution
Comprehension Passage
Scenario 4 : Customer Support Chatbot with RAG
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:

User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
Context
An e-commerce company is building a customer support chatbot that answers questions about products, policies, and orders. Instead of training a custom model, they use RAG (Retrieval Augmented Generation) to retrieve relevant information from their knowledge base and generate responses.
System Components:
- Knowledge Base: 500 product manuals, FAQs, and policy documents
- Vector Database: Stores document embeddings for similarity search
- LLM: Generates responses based on retrieved context
- Chunking Strategy: Break documents into smaller pieces for better retrieval
Sample Documents:
User Query: "What is your return policy?"
Based on the above data, answer the given subquestions.
A customer asks "Can I return my laptop if I opened the box?" The chatbot retrieves two relevant chunks: one about return policy and one about laptop specifications. How does the LLM use these chunks?
Solution
Shape
Thickness [ / ]
3
All colors