Final exam
Data Cleaning Essentials
Before you start
- 20 questions, drawn at random from a pool of 32.
- Pass mark: 70%. Your final score is 30% practice + 70% exam.
- No time limit, but finish within 3 hours. You can move between questions before you submit.
- Failed? Review the lessons and try again: every attempt gets a new set of questions.
Question 1 of 20Choose one
A value "2025-02-30" appears in an order_date column. Which data quality dimension does it violate most directly?
Question 2 of 20True or false
Editing values directly in the original raw export is acceptable as long as you are careful.
Question 3 of 20Choose one
A survey table has columns respondent, q1_2023, q1_2024, q2_2023, q2_2024. What is the main tidy-data problem?
Question 4 of 20Work it out
A customer table has 25,000 rows, but customer_id has only 24,310 distinct values. At least how many rows repeat an ID that already appeared?
Question 5 of 20Select all that apply
Which profile findings suggest disguised or wrongly typed data? Select all that apply.
Select all that apply.
Question 6 of 20Match the pairs
Match each missing-data example to its mechanism.
Tap an answer, then tap the place where it belongs (or drag it there).
- A random subset of lab samples is lost in a freezer failure
- Younger users skip a question more often, but within each age group skippers resemble answerers
- People with the most debt are least likely to report their debt
Question 7 of 20Work it out
A table has 12 columns, each missing 4% of values independently. About what percentage of rows are complete? Round to the nearest whole percent.
Question 8 of 20Choose one
Which effect does filling missing values with the column mean have?
Question 9 of 20What would you do?
What would you do?
Delivery times for an online store are missing for 6% of orders. Delivery times differ a lot between regions: about 2 days in cities and 6 days in rural areas, and the missing rows are mostly rural. You need complete data for a report. What is the best fill?
Question 10 of 20Fill in the blanks
Fill in the blanks
Converting placeholders such as "N/A" and -999 into true missing values should happen in the pipeline, before any uses the column.
Question 11 of 20Choose one
Parsed with US conventions, what does the European-format value "2.500" most likely become?
Question 12 of 20True or false
If 15 values in a column were blank before a numeric conversion with a coerce option and 410 are blank afterward, then 395 values failed to parse.
Question 13 of 20Work it out
A shipping file lists one parcel as 2.2 lb. The clean column is weight_kg. Using 1 lb = 0.4536 kg, what value should be stored? Round to two decimal places.
Question 14 of 20Sort into groups
Sort these text-cleaning steps into those that are safe to fully automate and those that need human review.
Tap an item, then tap its group (or drag it there).
Question 15 of 20Choose one
Two values both display as "José" but do not group together. What is the most likely cause?
Question 16 of 20Spot the mistake
This mapping table standardizes a US "state" column. Click the mapping that is wrong.
Question 17 of 20Choose one
A column contains 05/06/2024, 11/02/2024, 08/30/2024 and 01/09/2024. How should the column be parsed?
Question 18 of 20Work it out
An event is logged at 22:40 local time in a city that is UTC+2. What hour (0–23) is it on the UTC clock?
Question 19 of 20True or false
Python's %y format reads the two-digit year "45" as 2045, so birth dates written with two-digit years may need a domain rule to fix the century.
Question 20 of 20Choose one
A table stores one row per employee per pay period. Which key should be unique?
Question 21 of 20What would you do?
What would you do?
A contact list contains "Ben Ortiz, ben.ortiz@mail.com" (updated 2024-02-01) and "Benjamin Ortiz, Ben.Ortiz@Mail.com " (updated 2025-05-10). You merge them under a "most recent wins" rule. What else should you do?
Question 22 of 20True or false
Two rows with different transaction IDs but identical amount, merchant and minute should be treated as duplicates.
Question 23 of 20Work it out
Commute times have Q1 = 18 minutes and Q3 = 42 minutes. Using the 1.5 × IQR rule, what is the upper fence in minutes?
Question 24 of 20Work it out
Package weights have a mean of 4.0 kg and a standard deviation of 1.5 kg. What is the z-score of a 10.0 kg package?
Question 25 of 20Choose one
A salary dataset includes a few genuine executive salaries far above the rest. Which approach is generally inappropriate?
Question 26 of 20Match the pairs
Match each validation rule to its family.
Tap an answer, then tap the place where it belongs (or drag it there).
- Every invoice_id in payments exists in invoices
- end_date is on or after start_date
- country_code is in the official list of two-letter codes
- The daily file has at least 8,000 rows
Question 27 of 20What would you do?
What would you do?
About 0.4% of rows in tonight's data load fail a date rule; the rest pass everything. Your rules say to stop the run if more than 2% of rows fail. What should the pipeline do?
Question 28 of 20Work it out
A left join of 40,000 shipments to a warehouse table should keep exactly 40,000 rows. The result has 41,200 rows. How many extra rows were created by duplicate keys on the right side?
Question 29 of 20Choose one
Which join returns only the orders whose customer_id has no match in the customers table?
Question 30 of 20Put in order
Put these steps for safely enriching orders with customer data in order.
Drag the items, or use the arrow buttons, to put them in order.
- Left-join orders to customers
- Check that customer_id is unique in the customers table
- Compare the row count and revenue total with the original orders table
- Normalize the customer_id format in both tables
- Count orders that found no customer
Question 31 of 20Select all that apply
Which properties make a cleaning pipeline reproducible and trustworthy? Select all that apply.
Select all that apply.
Question 32 of 20True or false