NewWork mode: your Claude Code or Codex on work calls, answering from your project's codeSkip to content

Quiz: Machine Learning / AI

Machine Learning / AI questions from real interviews as a quiz, with an explanation for every option.

Try it: 5 questions

Loading…

Sample questions

  1. What is the main idea behind ordered boosting in CatBoost?

    • For each object, gradients are computed using a model trained only on earlier objects in a permutation.
    • Each tree is trained only on objects whose categorical features have already been one-hot encoded.
    • All objects are sorted by target value before trees are trained on them sequentially.
    • Gradients are computed on a random subset, while the remaining objects are used only to evaluate quality.
    Full answer
  2. Which practices help make a feature backfill correct and reproducible? Select all that apply.

    • Recompute only the latest period and leave older values unchecked
    • Recompute features for all historical periods using consistent rules
    • Treat the backfill as successful if it finishes without errors, without checking values or metrics
    • Automate recomputation with scripts or pipelines
    • Version features and document changes and the reasons for the backfill
    Full answer
  3. Which similarity-search metric accounts for the ranking of relevant results by giving more weight to higher positions in the list?

    • NDCG
    • Silhouette Score
    • Recall@k
    • Precision@k
    Full answer
  4. What does SELECT 1 FROM users WHERE age > 30 return?

    • One row containing 1 for each user older than 30
    • The id value for each user older than 30
    • A single row containing 1 if at least one user is older than 30
    • The number of users older than 30 in a single row
    Full answer
  5. How does self-correction typically work in a Text-to-SQL agent?

    • The agent checks only the user's text request and runs the SQL without validation.
    • The agent asks the user to manually fix the SQL after every generation.
    • The agent generates SQL, checks it, fixes detected errors, and repeats the check if needed.
    • The agent generates several queries and always picks the shortest without checking them.
    Full answer
  6. Which description best captures a Causal Forest?

    • An ensemble of trees that estimates conditional average treatment effects from unit features
    • A method that estimates only the population-wide average treatment effect
    • An algorithm that assigns treatment to units with the highest predicted outcomes
    • An ensemble of trees that predicts outcomes without accounting for treatment
    Full answer
  7. How does a decoder-only Transformer produce the first new token from the input text?

    • The text is tokenized; IDs become embeddings with positional information; decoder blocks process them with causal attention; logits from the averaged position representations define the next-token distribution.
    • The text is tokenized; IDs become embeddings with positional information; decoder blocks compute logits for each token; the most likely token from the input context is selected.
    • The text is tokenized; IDs become embeddings with positional information; decoder blocks process them with causal self-attention; logits at the last position define a distribution from which the next token is selected.
    • The text is tokenized; IDs become embeddings; decoder blocks process the entire context with bidirectional attention; logits at the first position define the next-token distribution.
    Full answer
  8. What is a pooling layer commonly used for in a neural network?

    • To normalize feature values to zero mean and unit variance
    • To reduce the spatial dimensions of feature maps while retaining important information
    • To transform each pixel using a learned matrix of weights
    • To increase the number of feature-map channels without changing their width or height
    Full answer
  9. Which steps are typically part of incrementally updating a FAISS index for RAG? Select all that apply.

    • Overwrite changed vectors at the same positions in IndexFlatL2.
    • Track documents that were added, changed, or deleted.
    • Update changed documents in the index and exclude deleted ones from retrieval.
    • Re-embed the entire corpus and rebuild the index whenever a document changes.
    • Embed new documents and add the resulting vectors to the index.
    Full answer
  10. Which statement correctly describes the RBF kernel and its parameter γ?

    • The RBF kernel computes exp(-||x − x'||² / γ); γ sets the number of support vectors.
    • The RBF kernel computes exp(-γ · ||x − x'||); a larger γ gives points a wider range of influence.
    • The RBF kernel computes the dot product of the vectors; γ sets the strength of regularization.
    • The RBF kernel computes exp(-γ · ||x − x'||²); a smaller γ gives points a wider range of influence.
    Full answer