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 data serialization format is most efficient for storing large numeric arrays with minimal overhead?
Solution
In Git, which command shows the differences between your working directory and the last commit?
Solution
What does HTTP status code 429 indicate?
Solution
Which Python library is primarily designed for exploratory data analysis and statistical visualization?
Solution
What is the main purpose of using environment variables in production systems?
Solution
When validating incoming data from external APIs, which validation strategy prevents downstream pipeline failures most effectively?
Solution
You are building a daily ETL pipeline that processes customer orders. Orders can arrive late or be updated. Which design pattern ensures you don't miss late-arriving data while avoiding duplicate processing?
Solution
Your analytics dashboard queries a large dataset that updates hourly but is queried every few seconds by users. Which caching strategy improves performance while maintaining reasonable freshness?
Solution
When joining datasets from different time zones, you discover that some timestamps lack timezone information. What is the safest approach?
Solution
You maintain a data pipeline that transforms raw logs into analytics tables. The transformation logic changes frequently. How should you version and test these transformations?
Solution
When aggregating financial transaction data across multiple currencies, why is it important to store both the original currency amount and the exchange rate used for conversion?
Solution
Your team builds a recommendation system that suggests products to users. After deployment, you notice that recommendations for certain user segments are significantly worse than others. What is the best systematic approach to diagnose and fix this?
Solution
Your data pipeline uses a third-party library that has known security vulnerabilities in older versions. The latest version includes breaking API changes. What should you do?
Solution
For ensuring long-term reproducibility of data analysis notebooks that depend on external data sources and multiple libraries, which approach is most comprehensive?
Solution
When implementing data lineage tracking for a complex pipeline with multiple data sources, transformations, and outputs, which metadata is most critical to capture?
Solution
Your pipeline processes personally identifiable information (PII). A privacy audit requires you to implement data minimization. Which strategy best balances utility and privacy?
Solution
Comprehension Passage
Scenario 1: Restaurant Review Data Analysis
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):

Based on the above data, answer the given subquestions.
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):
Based on the above data, answer the given subquestions.
The dataset has some missing values in the review_text column (some customers left ratings but no comment). Before analyzing review text for common words, what should you do?
Solution
Comprehension Passage
Scenario 1: Restaurant Review Data Analysis
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):

Based on the above data, answer the given subquestions.
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):
Based on the above data, answer the given subquestions.
To identify the most common words in negative reviews (rating < 3.0), which approach correctly combines filtering and text analysis?
Solution
Comprehension Passage
Scenario 1: Restaurant Review Data Analysis
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):

Based on the above data, answer the given subquestions.
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):
Based on the above data, answer the given subquestions.
After completing the analysis, which file format is most appropriate for sharing summary results (e.g., average rating by cuisine) with non-technical stakeholders?
Solution
Comprehension Passage
Scenario 1: Restaurant Review Data Analysis
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):

Based on the above data, answer the given subquestions.
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):
Based on the above data, answer the given subquestions.
Which Python library is most commonly used for loading and analyzing tabular CSV data like this restaurant reviews dataset?
Solution
Comprehension Passage
Scenario 1: Restaurant Review Data Analysis
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):

Based on the above data, answer the given subquestions.
Context
A food delivery platform wants to analyze restaurant reviews to identify trending cuisines and customer satisfaction patterns. They have review data in CSV format with ratings, text comments, and timestamps.
Sample Data (restaurants.csv):
Based on the above data, answer the given subquestions.
To find the average rating for each cuisine type (Indian, Italian, Japanese), which pandas operation is most appropriate?
Solution
Comprehension Passage
Scenario 2: Automated Git Workflow for Team Project
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
After making changes to your code, what is the correct sequence to save your work and upload it to GitHub?
Solution
Comprehension Passage
Scenario 2: Automated Git Workflow for Team Project
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
Two team members both modify the same line in analysis.py on different branches. When the second person tries to merge their branch, what will happen?
Solution
Comprehension Passage
Scenario 2: Automated Git Workflow for Team Project
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
Before pushing your changes, you want to make sure your branch has the latest updates from the main branch. Which command downloads and integrates those updates?
Solution
Comprehension Passage
Scenario 2: Automated Git Workflow for Team Project
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
What is the main purpose of creating a pull request (PR) instead of directly merging your branch into main?
Solution
Comprehension Passage
Scenario 2: Automated Git Workflow for Team Project
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
Context
A data science team uses Git for version control on a shared project. Multiple team members work on different features simultaneously. They follow a workflow where everyone works on separate branches and merges into the main branch through pull requests.
Current Setup:
- main branch: Production-ready code
- dev branch: Development/testing code
- Feature branches: Individual work (e.g., feature-data-cleaning, feature-visualization)
Based on the above data, answer the given subquestions.
When starting work on a new feature, what is the correct Git command sequence to create and switch to a new branch called feature-analysis?
Solution
Comprehension Passage
Scenario 3 : Deploying a Data Dashboard with Docker
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.

Based on the above data, answer the given subquestions.
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.
Based on the above data, answer the given subquestions.
After building the Docker image, which command correctly runs the container and makes the dashboard accessible on port 8501?
Solution
Comprehension Passage
Scenario 3 : Deploying a Data Dashboard with Docker
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.

Based on the above data, answer the given subquestions.
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.
Based on the above data, answer the given subquestions.
The dashboard application crashes when deployed. Which Docker command shows the application's error messages and logs?
Solution
Comprehension Passage
Scenario 3 : Deploying a Data Dashboard with Docker
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.

Based on the above data, answer the given subquestions.
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.
Based on the above data, answer the given subquestions.
What is the main advantage of using Docker to deploy the dashboard?
Solution
Comprehension Passage
Scenario 3 : Deploying a Data Dashboard with Docker
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.

Based on the above data, answer the given subquestions.
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.
Based on the above data, answer the given subquestions.
In the Dockerfile, which command specifies which Python packages should be installed in the container?
Solution
Comprehension Passage
Scenario 3 : Deploying a Data Dashboard with Docker
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.

Based on the above data, answer the given subquestions.
Context
A team built a Python dashboard using Streamlit that visualizes sales data. They want to deploy it so anyone can access it via a web browser. They decide to use Docker to package the application with all its dependencies.
Based on the above data, answer the given subquestions.
The Dockerfile includes the line EXPOSE 8501. What does this do?
Solution
Comprehension Passage
Scenario 4 : OpenRefine for Data Cleaning
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):

Based on the above data, answer the given subquestions.
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):
Based on the above data, answer the given subquestions.
You want to standardize all company names to lowercase, then to title case (First Letter Capitalized). Which OpenRefine transformation approach is correct?
Solution
Comprehension Passage
Scenario 4 : OpenRefine for Data Cleaning
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):

Based on the above data, answer the given subquestions.
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):
Based on the above data, answer the given subquestions.
After standardizing names, you have multiple rows for the same company (multiple revenue entries). What should you do to combine them?
Solution
Comprehension Passage
Scenario 4 : OpenRefine for Data Cleaning
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):

Based on the above data, answer the given subquestions.
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):
Based on the above data, answer the given subquestions.
OpenRefine saves your data cleaning steps as operations. What is the main benefit of this feature?
Solution
Comprehension Passage
Scenario 4 : OpenRefine for Data Cleaning
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):

Based on the above data, answer the given subquestions.
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):
Based on the above data, answer the given subquestions.
What type of data quality issue does this dataset have?
Solution
Comprehension Passage
Scenario 4 : OpenRefine for Data Cleaning
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):

Based on the above data, answer the given subquestions.
Context
A researcher has a dataset of company names from different sources. The same companies are spelled differently across sources, making analysis difficult.
Sample Messy Data (companies.csv):
Based on the above data, answer the given subquestions.
In OpenRefine, which feature automatically groups similar text values like "Microsoft Corp" and "MICROSOFT CORPORATION" so you can merge them?
Solution
Shape
Thickness [ / ]
3
All colors