PUBLIC QUESTION PREVIEW
ML & AI interview questions
Machine learning fundamentals, neural networks, model evaluation, LLMs, and MLOps.
Showing 12 of 52 source questions. Sample answers are study material, not employer-specific hiring guidance.
How to work through this preview
Attempt each question before reading its answer. For a concept, give a definition and a concrete example. For code, state constraints, walk through a small input, and check complexity. For design, separate requirements from assumptions and explain failure handling. Use real situations for behavioral answers.
QUESTION 1 / easy / conceptual
What is the difference between supervised, unsupervised, and reinforcement learning?
Sample answer
Hints to guide your next attempt
- Supervised = labeled data, Unsupervised = find patterns, RL = reward signal
Source tags: ml / supervised / unsupervised / reinforcement-learning / fundamentals
QUESTION 2 / medium / conceptual
What is the bias-variance tradeoff? How does it relate to overfitting and underfitting?
Sample answer
Hints to guide your next attempt
- Bias = systematic error, Variance = sensitivity to training data noise
- Total error = bias^2 + variance + irreducible noise
Source tags: ml / bias-variance / overfitting / underfitting / regularization
QUESTION 3 / medium / conceptual
What is gradient descent? Explain SGD, Mini-batch, and Adam optimizer.
Sample answer
Hints to guide your next attempt
- Gradient descent = iteratively move in direction that decreases loss
- Adam = adaptive learning rates per parameter
Source tags: ml / gradient-descent / sgd / adam / optimization
QUESTION 4 / medium / conceptual
What are precision, recall, F1 score, and AUC-ROC? When would you optimize each?
Sample answer
Hints to guide your next attempt
- Precision = correctness of positives, Recall = completeness of positives
- AUC-ROC = performance across all thresholds
Source tags: ml / precision / recall / f1 / auc-roc / evaluation
QUESTION 5 / medium / conceptual
What is cross-validation? Explain k-fold and stratified k-fold.
Sample answer
Hints to guide your next attempt
- Cross-validation prevents overfitting to a single train/test split
- Stratified preserves class proportions in each fold
Source tags: ml / cross-validation / k-fold / model-evaluation / overfitting
QUESTION 6 / medium / conceptual
What is a decision tree? How does random forest improve on it?
Sample answer
Hints to guide your next attempt
- Decision tree splits on features to maximize information gain
- Random forest = ensemble of trees with randomness reducing variance
Source tags: ml / decision-tree / random-forest / ensemble / classification
QUESTION 7 / medium / conceptual
What is XGBoost? Why does it dominate tabular data competitions?
Sample answer
Hints to guide your next attempt
- XGBoost = gradient boosting with regularization, speed optimizations, and missing value handling
Source tags: ml / xgboost / gradient-boosting / tabular / ensemble
QUESTION 8 / medium / conceptual
What is Principal Component Analysis (PCA)? When would you use it?
Sample answer
Hints to guide your next attempt
- PCA = project data onto directions of maximum variance
- Reduces dimensionality while preserving most information
Source tags: ml / pca / dimensionality-reduction / unsupervised / feature-engineering
QUESTION 9 / medium / conceptual
What is K-means clustering? What are its limitations and when should you use DBSCAN instead?
Sample answer
Hints to guide your next attempt
- K-means assumes spherical clusters of similar size
- DBSCAN finds arbitrary shapes and handles noise
Source tags: ml / k-means / clustering / dbscan / unsupervised
QUESTION 10 / medium / conceptual
What is a neural network? Explain forward pass, backpropagation, and activation functions.
Sample answer
Hints to guide your next attempt
- Forward pass = compute predictions, Backprop = compute gradients via chain rule
Source tags: ml / neural-network / backpropagation / activation-functions / deep-learning
QUESTION 11 / medium / conceptual
What is a Convolutional Neural Network (CNN)? How does it process images?
Sample answer
Hints to guide your next attempt
- CNN = learnable filters that slide over the image detecting features
- Translation invariant — finds pattern regardless of position
Source tags: ml / cnn / convolutional / image-classification / deep-learning
QUESTION 12 / hard / conceptual
What is an RNN? Why do LSTMs and GRUs solve the vanishing gradient problem?
Sample answer
Hints to guide your next attempt
- RNN = hidden state carries information forward
- LSTM gates control what to remember/forget
Source tags: ml / rnn / lstm / gru / sequence / vanishing-gradient
Check understanding, not recognition
- Can you explain the answer without reading it?
- Can you show when the approach fails or needs a different assumption?
- Can you connect the concept to a real project, task, or decision you have made?
- Can you distinguish a simplified interview example from a production requirement?
A LITTLE MORE CLARITY
Frequently asked questions
How many ML & AI questions are shown here?
This public preview shows 12 questions with the supplied answers from the app's 52-question ML & AI bank. Full interactive practice requires signing in.
Should I memorize the sample answers?
Use them as reference explanations, not a script or a guarantee of technical correctness for every environment. Explain your assumptions, validate code against your language and version, and discuss trade-offs. Behavioral answers should be built from your own experience.
What do hints and solution steps mean?
Hints identify ideas to consider before reading the answer. When the source question includes steps, they are shown as a separate walkthrough. Example capacities and design targets in a solution are assumptions for that exercise, not real system statistics.
BUILD YOUR NEXT OPPORTUNITY
Practice ML & AI actively.
Sign in to use the full topic bank and interactive practice workspace.