🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Feature Engineering: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Which column should be one-hot encoded rather than mapped to 1, 2, 3?
  2. Q2. What does this print? (code)
  3. Q3. Where must the mean and standard deviation for standardisation come from?
  4. Q4. A new value is larger than the training maximum. What does min-max scaling (fitted on training data) give it?
  5. Q5. Why did the nearest neighbour change after scaling in the k-NN example?
  6. Q6. Which model does NOT need feature scaling?
  7. Q7. What does this print? (code)
  8. Q8. Why log-transform monthly spend in rupees?
  9. Q9. Which is a leakage feature when predicting whether a student will be placed?
  10. Q10. What does pd.cut(ages, bins=[0, 21, 25, 100], labels=["≤21", "22-25", "26+"]) do?