Free Practice Quiz Question List

3 Data Cleaning and Preparation Online Quiz Questions

Use this free practice quiz with 20 questions to review 3 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: It is generally safe to replace every missing numeric value with zero because both indicate that no value is available.

  1. A

    True

  2. B

    False

02
Choose one
1 point

A blank in a dataset could mean “not collected,” “not applicable,” or “unknown.” What should you do before choosing how to handle it?

  1. A

    Replace the blank with zero immediately

  2. B

    Check the data source or codebook to determine what the blank means

  3. C

    Delete the entire column without checking its importance

  4. D

    Treat every blank as an estimate of the column median

03
Fill in the blank
1 point

Before cleaning a dataset, keep an of the data.

04
Written response
1 point

Which pandas method identifies missing values?

05
Choose one
1 point

A dataset contains several rows with the same customer ID, but the rows have different event dates. What is the soundest first step before removing any of them?

  1. A

    Delete all but one record with that customer ID

  2. B

    Keep only the first row with the key, regardless of differences

  3. C

    Check what one row represents and review key-based repeats before deciding what to do

  4. D

    Treat every repeated key as a data-entry error

06
Choose all
1 point

A plot flags several unusually high measurements. Which actions are consistent with careful outlier handling? Select all that apply.

  1. A

    Check unusual values against domain rules, source records, and related fields

  2. B

    Delete every value beyond a statistical cutoff

  3. C

    Correct a value only when evidence supports the correction

  4. D

    Retain or flag an unresolved value, or use a method suitable for extreme values

07
Fill in the blank
1 point

When a justified estimate is needed for a skewed numeric variable, the material gives the as an example of an imputation value.

08
True or false
1 point

True or false: If a category has a meaningful order, such as low, medium, and high, it should be sorted alphabetically when standardizing it.

  1. A

    True

  2. B

    False

09
Choose one
1 point

A column includes dates written as 03/04/2025, but the dataset does not specify whether the month or day comes first. What should you do before converting the dates?

  1. A

    Convert the date using whichever order is most common in your region

  2. B

    Confirm the source’s date format before converting the value

  3. C

    Replace the date with a missing value without checking

  4. D

    Assume the first number must always be the month

10
Written response
1 point

Which pandas function is used to parse dates?

11
Choose all
1 point

Which details should a cleaning log record so another person can understand and evaluate a consequential change? Select all that apply.

  1. A

    The date of the cleaning decision

  2. B

    The column or records affected

  3. C

    The name of the person who first collected the data

  4. D

    The issue found and action taken

  5. E

    The reason for the action

  6. F

    The number of values changed or removed

12
Choose one
1 point

A region column contains West, west, and W.. How should you decide whether to standardize these as one category?

  1. A

    Map every short label to the longest label automatically

  2. B

    Convert every category to lowercase and assume that resolves all differences

  3. C

    Confirm which values are equivalent using a reliable definition, then map only those

  4. D

    Delete categories whose spelling differs

13
Open ended
1 point

A numeric column has missing values, and the reason for their absence is not yet known. Describe a responsible process for deciding how to handle them, including what to investigate, how to choose a treatment, and what to document.

14
Choose one
1 point

In pandas, what happens to an unparseable date when pd.to_datetime() is called with errors="coerce"?

  1. A

    Unparseable entries are deleted from the DataFrame immediately

  2. B

    Unparseable entries are replaced with the current date

  3. C

    Unparseable entries become missing timestamps for review

  4. D

    Every date is interpreted using a format inferred from the first row

15
Written response
1 point

A skewed numeric variable has missing entries, and the analysis requires a justified estimate for them. Which statistic is one suitable imputation choice?

16
Choose one
1 point

A dataset contains blank cells, but the team does not know whether they mean “not collected,” “not applicable,” or “unknown.” What should the team do before choosing a treatment?

  1. A

    Replace every blank with zero so all rows have numeric values.

  2. B

    Check the data source or codebook to learn what the missing values mean.

  3. C

    Delete every row that contains a blank, regardless of how much information it contains.

  4. D

    Treat every blank as a failed measurement.

17
Choose one
1 point

A table is intended to contain customer events, and several rows share a customer ID but differ in event details. What is the most appropriate next step before removing any rows?

  1. A

    Delete all but the first row with that customer ID.

  2. B

    Keep only rows that are exact matches across every column.

  3. C

    Determine what one row represents and review the repeated records using a defined rule.

  4. D

    Average every conflicting field and replace the original records.

18
Choose one
1 point

A region column contains “North” and “N.” What should an analyst do before replacing “N.” with “North”?

  1. A

    Confirm the values mean the same region using a reliable definition, then map only the confirmed equivalents.

  2. B

    Map every short label to the nearest-looking full region name.

  3. C

    Convert all category values to lowercase and treat the resulting strings as equivalent.

  4. D

    Delete any category value that differs in capitalization or spacing.

19
Written response
1 point

Which pandas function can parse a date column when the intended date format is known?

20
True or false
1 point

True or false: A blank cell by itself establishes that a measurement failed.

  1. A

    True

  2. B

    False