Free Practice Quiz Question List

4 Data Cleaning and Preparation Online Quiz Questions

Use this free practice quiz with 20 questions to review 4 Data Cleaning and Preparation, test your knowledge, and prepare for your next test or exam.

20 questions
01
True or false
1 point

True or false: An unusual value should be changed automatically during cleaning, even when it may be correct.

  1. A

    True

  2. B

    False

02
Choose one
1 point

A dataset uses blank cells, N/A, and unknown to indicate unavailable values. What should you do before counting missing values?

  1. A

    Treat zero, an empty string, and “none” as missing in every column.

  2. B

    Identify and standardize missing-value markers, while distinguishing them from zero and other actual values.

  3. C

    Count only blank cells as missing, because other markers are valid values.

  4. D

    Replace every missing value with zero before counting.

03
Written response
1 point

A numeric column is skewed, and you decide to impute its missing values with a typical value. Which statistic does the material suggest considering?

04
Fill in the blank
1 point

Before removing suspected duplicate sales records, define what makes a record unique. A can identify an individual transaction.

05
Choose one
1 point

A column contains the date 03/04/2025, but the source's date convention is unknown. What is the safest next step before parsing it?

  1. A

    Parse it as March 4 because month-first order is universal.

  2. B

    Parse it as April 3 because day-first order is universal.

  3. C

    Confirm whether the source uses month-first or day-first order before parsing.

  4. D

    Replace it with a missing value because it is not already in ISO format.

06
Choose all
1 point

A team is writing explicit validation rules for a dataset. Select all checks that are supported validation rules.

  1. A

    Check that dates parse as dates and quantities are numeric.

  2. B

    Check that required identifiers are present.

  3. C

    Check that a status belongs to its defined set of allowed values.

  4. D

    Check that a delivery date does not precede its order date.

  5. E

    Check that fields defined as unique contain no duplicates.

  6. F

    Treat every negative amount as invalid without investigating its meaning.

  7. G

    Require every column to have a value in every row.

07
True or false
1 point

True or false: In the Python example, unparseable date values become missing values so they can be reviewed.

  1. A

    True

  2. B

    False

08
Fill in the blank
1 point

To avoid leaking information into machine-learning evaluation, fit imputation values on the only, then apply the fitted transformation to test data.

09
Choose all
1 point

A team wants to prepare data for machine learning without leaking information into evaluation. Select all the actions that follow the recommended approach.

  1. A

    Split the data into training and test sets before learning imputation values.

  2. B

    Fit the imputation transformation using training data only.

  3. C

    Apply the fitted training transformation to the test data.

  4. D

    Calculate an imputation value using the full dataset before splitting.

  5. E

    Fit a separate imputation transformation on the test set.

10
Written response
1 point

When handling missing values in an important field, what feature could you retain to record which entries were originally missing?

11
Choose one
1 point

A dataset combines measurements from sources that may use centimeters or inches. What should you do before converting values to a common unit?

  1. A

    Convert every value using the same numerical multiplier regardless of its original unit.

  2. B

    Verify the original and target units before converting.

  3. C

    Treat unit labels as cosmetic and remove them before analysis.

  4. D

    Convert every measurement to inches because all datasets use that standard.

12
Choose one
1 point

A status field is defined to allow only open, closed, or pending, but a row contains in progress. What is the appropriate response?

  1. A

    Automatically replace in progress with open because it sounds similar.

  2. B

    Delete the row because any unlisted status proves the record is false.

  3. C

    Flag the value for investigation against the defined set of allowed statuses.

  4. D

    Expand the allowed set to include every value found, without review.

13
True or false
1 point

True or false: A reliable cleaning workflow rechecks validation rules and compares summaries before and after transformations.

  1. A

    True

  2. B

    False

14
Open ended
1 point

A validation check flags a negative sales amount. Describe how you would investigate and decide whether to change or retain the record, and explain how you would document your decision.

15
Choose one
1 point

Before cleaning a newly imported dataset, what is the most reliable first step?

  1. A

    Replace unusual values directly in the only copy of the data.

  2. B

    Preserve the original data and make justified changes to a working copy.

  3. C

    Delete every row containing an unexpected value.

  4. D

    Standardize all values before checking what the columns mean.

16
Choose one
1 point

A dataset uses blank cells, N/A, and unknown to represent unavailable values. What should you do before counting missing values?

  1. A

    Treat zero, an empty string, and “none” as missing in every column.

  2. B

    Count only blank cells as missing and leave other markers unchanged.

  3. C

    Identify and standardize the column’s missing-value markers before counting missing values.

  4. D

    Replace every missing value with zero before checking how many there are.

17
Choose one
1 point

A measurement column may contain values recorded in both centimeters and inches. What should you do before converting the values to one unit?

  1. A

    Convert every measurement to the unit used most often in the dataset without checking its source.

  2. B

    Confirm the source units and the intended meaning before converting measurements.

  3. C

    Treat values in different units as equivalent if their column names match.

  4. D

    Remove measurements whenever the source unit is not already standardized.

18
Choose one
1 point

Two sales have the same date and amount, but may be separate events. How should you decide whether either row is a duplicate?

  1. A

    Delete one record whenever two rows have the same date.

  2. B

    Treat matching dates and amounts as proof that the records are duplicates.

  3. C

    Keep all repeated rows without checking what makes a record unique.

  4. D

    Define a meaningful record key, then inspect suspected duplicates before removing any.

19
Written response
1 point

In the pandas example, what value is assigned to the errors argument so that unparseable dates become missing values for review?

20
Written response
1 point

What validation rule category checks that a delivery date does not precede its order date?