Free Practice Quiz Question List

3 Training and Testing Online Quiz Questions

Use this free practice quiz with 20 questions to review 3 Training and Testing, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

During development, a team wants to compare two model designs and choose settings before final evaluation. Which data set should guide those choices?

  1. A

    The test set, because it is used to compare models during development

  2. B

    The validation set, because it guides model and setting choices during development

  3. C

    The training set, because it provides the final estimate on unseen data

02
Choose one
1 point

A team needs to scale features before training a model. Which procedure avoids letting held-out data influence the learned scaling values?

  1. A

    Fit the scaler on training data, then apply that fitted scaler to validation and test data.

  2. B

    Fit separate scalers on training, validation, and test data so each set is centered independently.

  3. C

    Fit the scaler on all available data before splitting so every partition uses the same statistics.

03
Choose one
1 point

A model will be used to predict future outcomes from historical records. Which split best reflects that intended use?

  1. A

    Randomly mix earlier and later observations between training and test sets.

  2. B

    Train on later observations and evaluate on earlier observations.

  3. C

    Train on earlier observations and evaluate on later observations.

04
True or false
1 point

A team repeatedly checks test-set scores and changes the model until those scores improve. This practice weakens the test set as an independent final estimate.

  1. A

    True

  2. B

    False

05
True or false
1 point

If a scaler calculates its values using test-set features, test information has influenced the modeling process even when the test labels were not used.

  1. A

    True

  2. B

    False

06
Written response
1 point

Which data set is used to fit a model's predictive parameters from examples and their targets?

07
Written response
1 point

A model uses the result of a medical test taken after a diagnosis to predict that earlier diagnosis. What is this kind of problem called?

08
Fill in the blank
1 point

After fitting a preprocessing transformation on the training set, use the same learned values on validation and test data with .

09
Fill in the blank
1 point

Keep records from the same person or household in the same .

10
Open ended
1 point

During cross-validation, explain how using a pipeline for preprocessing and model fitting helps prevent leakage between the training and validation portions of each fold.

11
Choose all
1 point

Select all split designs that help prevent information from crossing partitions in a way that would not be possible in the intended real-world use.

  1. A

    Keep records from the same person or household together in one partition.

  2. B

    For a task predicting earlier events, allow later observations into the training set.

  3. C

    For a time-dependent prediction, train on earlier data and evaluate on later data.

  4. D

    Place duplicate examples in both training and test sets to make comparisons consistent.

12
True or false
1 point

Every dataset should use the same fixed proportion for its training, validation, and test sets.

  1. A

    True

  2. B

    False

13
Choose one
1 point

A dataset consists of independent examples with no group or time structure relevant to prediction. Which split approach may be suitable?

  1. A

    Use a randomized split when the examples are independent.

  2. B

    Use a randomized split even when records from the same person must stay together.

  3. C

    Use a randomized split that allows future observations to train a model predicting the past.

14
Choose all
1 point

A team has a small dataset and wants to use development data efficiently while preserving an independent final check when possible. Select all practices consistent with that goal.

  1. A

    Train on some folds and validate on the remaining fold, repeating the process.

  2. B

    Use the test set as one of the folds for choosing model settings.

  3. C

    Keep a separate test set for final evaluation when possible.

15
Choose one
1 point

A preprocessing step learns missing-value replacement values from the data. Which workflow best prevents information from held-out examples affecting those learned values?

  1. A

    Fit an imputer on the full dataset, then split the data.

  2. B

    Split the data first, then fit the imputer on training data.

  3. C

    Fit separate imputers on the validation and test sets before applying them.

16
Choose one
1 point

A model will be evaluated on a held-out test set. Which procedure correctly handles a scaler that learns feature means and standard deviations?

  1. A

    Fit a scaler separately on the training, validation, and test sets.

  2. B

    Fit the scaler on training data, then use that fitted scaler to transform validation and test data.

  3. C

    Fit the scaler on the test set because it is used for the final evaluation.

  4. D

    Fit the scaler on training and test data together, but exclude test labels.

17
Choose one
1 point

A team calculates a feature scaler's mean and standard deviation using both training and test examples, but fits the predictive model using training labels only. What is the main concern?

  1. A

    There is no leakage because the scaler does not use test labels.

  2. B

    The scaler is safe as long as the model itself is fitted only on training rows.

  3. C

    This leaks test-set information into the modeling process and may make evaluation overly optimistic.

  4. D

    This is acceptable only when the test set is larger than the training set.

18
Written response
1 point

A model uses a medical test result taken after a diagnosis to predict that earlier diagnosis. What is the standard term for this problem?

19
Choose one
1 point

A dataset contains multiple records for each person, and predictions will be made for people not represented in training. Which split strategy best limits information crossing between partitions?

  1. A

    Keep all records from each person in the same partition.

  2. B

    Randomly assign each record independently, regardless of person.

  3. C

    Put each person's earliest record in training and later records in test.

  4. D

    Place people with more records in the test set and everyone else in training.

20
Written response
1 point

Which data partition should be used for a final estimate of performance on unseen examples after model development and setting choices are complete?