Free Practice Quiz Question List

2 Features, Labels, and Data Preparation Online Quiz Questions

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

20 questions
01
Choose one
1 point

A supervised model uses a home's size and location to predict its sale price. Which item is the label?

  1. A

    The home's size

  2. B

    The home's sale price

  3. C

    The home's location

02
Fill in the blank
1 point

Use the to fit the model; use the to compare models during development.

03
Written response
1 point

A model needs numeric input, so a category such as "blue" is converted into columns that indicate category membership. What are these columns called?

04
Choose one
1 point

A team is comparing model settings before choosing a final model. Which dataset should it use to guide that choice?

  1. A

    Use it to make the final evaluation after all development choices are complete.

  2. B

    Use its results during development to compare models and select settings.

  3. C

    Use it only to fit the model's parameters.

05
Choose all
1 point

Before training a supervised model, which data-quality checks are appropriate? Choose all that apply.

  1. A

    Check that each example is paired with its correct label.

  2. B

    Remove every row with any missing value without considering the situation.

  3. C

    Look for missing, invalid, or inconsistent values.

  4. D

    Assume duplicate examples are harmless and do not check for them.

  5. E

    Look for duplicate examples.

06
Fill in the blank
1 point

A can help keep preprocessing consistent and prevent .

07
Choose one
1 point

A team is building a model to predict appointment cancellations before appointments occur. Which feature choice best fits the requirements for a useful prediction feature?

  1. A

    Use the final cancellation status as an input, even though it is recorded after the appointment.

  2. B

    Use a post-appointment survey response to predict whether the appointment will be missed.

  3. C

    Use information available before the appointment that is useful for predicting cancellation.

08
True or false
1 point

True or false: For time-dependent data, splitting chronologically so training examples precede validation and test examples can better reflect how a model will encounter future data.

  1. A

    True

  2. B

    False

09
Written response
1 point

A dataset is split by reserving 20% for testing first. A second split must take 15% of the original dataset from the remaining data for validation. What test_size value should the second split use?

10
Choose one
1 point

A model will be used to forecast future demand from historical observations. Which split design best reflects that use?

  1. A

    Randomly distribute all dates across all subsets.

  2. B

    Put the latest examples in training and the earliest examples in testing.

  3. C

    Place earlier examples in training, followed by validation and test examples in time order.

11
Choose all
1 point

A dataset has enough examples in each class, includes multiple rows per household, and represents time-dependent observations. Which splitting practices match these conditions? Choose all that apply.

  1. A

    Use stratification when preserving class proportions matters and each class has enough examples.

  2. B

    Put rows from the same household into different subsets to increase the number of examples in each one.

  3. C

    Keep all rows belonging to one household in a single subset.

  4. D

    For time-dependent data, split in chronological order.

  5. E

    Use stratification to ensure that training examples come earlier in time than test examples.

12
True or false
1 point

If a team repeatedly consults test-set results while tuning a model, those results may influence development choices and weaken the test set's role as an independent final check.

  1. A

    True

  2. B

    False

13
Open ended
1 point

A supervised dataset contains missing values in a numeric feature, and the team plans to scale that feature. Describe a safe workflow from splitting the data through final evaluation. Include where imputation and scaling are fitted, how the fitted transformations are used on other data, and how validation and test results should be used.

14
Choose one
1 point

A supervised-learning model uses a home’s size and location to predict its sale price. Which value is the label?

  1. A

    The home’s size

  2. B

    The home’s sale price

  3. C

    The home’s location

  4. D

    The model’s prediction error

15
Choose one
1 point

A team is comparing model settings before choosing a final model. Which dataset subset should it use to guide that development decision?

  1. A

    To fit the final model and learn its patterns

  2. B

    To provide the final evaluation after all development choices

  3. C

    To compare models and guide development choices

  4. D

    To replace the need for a test set

16
True or false
1 point

True or false: Repeatedly consulting test-set results while tuning a model can weaken the test set’s role as an independent final evaluation.

  1. A

    True

  2. B

    False

17
Choose one
1 point

During a data check, a team finds that some rows may be paired with the wrong outcomes. What should it verify before training?

  1. A

    Verify that each example is paired with its correct label

  2. B

    Remove every example whose features are numeric

  3. C

    Use the test set to correct labels during model tuning

  4. D

    Keep duplicate rows so that each example appears more often

18
Choose one
1 point

A model requires numeric inputs, but one feature contains categories such as “blue.” Which preparation step is consistent with the material?

  1. A

    Treat “blue” as the label in every prediction task

  2. B

    Represent categories such as “blue” with indicator columns

  3. C

    Remove all categorical features before examining the data

  4. D

    Use the category to determine the test-set size

19
Written response
1 point

A dataset is split by first reserving 20% for testing, then reserving 0.1875 of the remaining data for validation. What percentage of the original dataset goes to validation? Enter a numeric percentage without the percent sign.

20
Written response
1 point

A dataset includes calendar values as inputs, but the model needs numeric values. Which feature data type might be converted into useful components during preparation?