Skills101
← All practice quizzes

Quiz: Feature Engineering

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Turn raw columns into features a model can use: one-hot and ordinal encoding, min-max and standard scaling written by hand, why scaling changes a nearest-neighbour answer, log transforms for skewed data, binning, ratio and date features — and fitting all of it on training data only.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    Which column should be one-hot encoded rather than mapped to 1, 2, 3?

  2. Question 2

    What does this print?

    import numpy as np
    x = np.array([10, 20, 30])
    print(((x - x.min()) / (x.max() - x.min())).tolist())
    
  3. Question 3

    Where must the mean and standard deviation for standardisation come from?

  4. Question 4

    A new value is larger than the training maximum. What does min-max scaling (fitted on training data) give it?

  5. Question 5

    Why did the nearest neighbour change after scaling in the k-NN example?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →