1. Home
  2. MCQs by exam
  3. Interviews
  4. Data Science

Interviews MCQs – Data Science

231 multiple choice questions typical of the Interviews exam, with answers and explanations. Switch on practice mode to test yourself first.

Showing 1–25 of 231

Why does LAST_VALUE(x) OVER (ORDER BY ts) usually return the current row's value rather than the final value in the partition?

  1. The window is implicitly partitioned by ts, so each row is its own group
  2. The function is nondeterministic and may return any row of the whole partition
  3. The default frame ends at the current row, so the last visible value is here Correct answer
  4. LAST_VALUE ignores the frame and evaluates over the whole peer group
MCQSEXAM Read explanation

SelectKBest is configured with score_func=chi2 and fitted on a design matrix that contains negative values. What happens?

  1. It raises an error, because chi-squared scoring needs non-negative features Correct answer
  2. It silently takes absolute values before computing the chi-squared scores
  3. It works but ranks the negative features last regardless of their true signal
  4. It standardises the features first, which makes every value non-negative
MCQSEXAM Read explanation