LearnThatStack Ace your next interview
Machine Learning & Data Science
Machine Learning Fundamentals.
Change topic Change
Practice · Questions

All questions

Showing of 36
Beginner 12
01

What is machine learning, and how does it differ from ordinary programming?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Machine learning derives rules from examples instead of having a person write them. In ordinary programming you supply the logic and the data, and the computer returns answers. In machine learning you supply the data and the answers, and the computer works out the logic. That logic is a model, a set of numbers fitted to patterns in past examples.

The difference earns its cost when the rules are too messy to write down. Nobody can enumerate every way a photo can show a cat. But you can collect labeled photos and let training find the pattern for you.

What you give up is certainty. A hand-written rule fails in ways you can read in the source code. A model fails in ways you have to measure. You also sign up for data collection, labeling, and retraining as the world shifts.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

What is the difference between supervised and unsupervised learning?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Supervised learning learns from examples that carry a correct answer, called a label. You hand it past emails marked spam or not spam, and it learns the mapping. Unsupervised learning gets rows with no answers attached at all. It looks for structure in the data itself, like groups of similar customers.

The practical split is usually about what you already have. Labels cost money, because someone has to read every email and mark it. When nothing is labeled, unsupervised methods still tell you something useful about the shape of your data.

Checking the result differs too. A supervised model has a right answer to score against, so error is a number. Unsupervised output needs a person to look at the clusters and decide whether they mean anything.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

What is each of the training, validation, and test sets used for?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The training set is what the model actually fits. Its rows adjust the parameters until error on those rows comes down. The validation set is where you make choices: which model, which settings, how long to train. You score candidates on it and keep the winner.

The test set gets used once, at the end. It estimates how the chosen model will do on data nobody tuned against. That is a different question from validation: not which option is best, but how good the winner really is.

A common split is 60 percent training, 20 validation, 20 test. Large datasets can spare far less for the last two. Skip the split and every number you report describes rows the model already memorized.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

What are overfitting and underfitting, and what causes each?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Overfitting means the model learned the training rows too well, noise included. It reproduces quirks that will not repeat, so new data goes worse than old. Underfitting is the opposite failure. The model never captured the real pattern, so it does poorly everywhere, training rows included.

Overfitting comes from more flexibility than the data can support. Typical causes are too many parameters, too few rows, or too many passes over the same data. Features that quietly identify individual rows do it too.

Underfitting comes from the reverse. The model is too simple for the pattern, the features leave out what matters, or training stopped early.

Naming them separately matters because the fixes point in opposite directions. Adding capacity to an overfit model makes it worse, and simplifying an underfit one does the same.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

What do the terms bias and variance mean in machine learning?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Bias is error that comes from a model's assumptions being too simple for reality. A straight line fitted to a curved relationship is biased. It misses the shape no matter how many rows you feed it.

Variance is how much the fitted model changes when you swap in a different training sample. A high-variance model chases the particular rows it saw. Two samples drawn from the same source give you two noticeably different models.

The dartboard picture is the fastest way in. Bias is aiming at the wrong spot, and variance is a shaky hand. You can be consistently wrong, randomly wrong, both, or neither.

Keeping the two words separate matters because they point at different repairs. Bad aim and a shaky hand are not fixed by the same change.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

How do you handle missing, corrupted, or duplicated values in a dataset?

Part of Pro
07

Which problems suit supervised learning, and how do classification and regression differ?

Part of Pro
08

What are the stages of a machine learning project from problem to production?

Part of Pro
09

What are outliers, and how do you decide what to do with them?

Part of Pro
10

What is data leakage, and why does it ruin a model?

Part of Pro
11

What is reinforcement learning, and how does it differ from supervised learning?

Part of Pro
12

What is semi-supervised learning, and when would you reach for it?

Part of Pro
Intermediate 20
13

What is the bias-variance tradeoff, and why can't you minimize both at once?

Part of Pro
14

Why do we split data, and why must the test set stay sealed?

Part of Pro
15

What can you do to stop a model from overfitting?

Part of Pro
16

How would you walk an interviewer through a machine learning project you shipped?

Part of Pro
17

When does machine learning beat a set of hand-written rules?

Part of Pro
18

When is machine learning the wrong tool, and what do you use instead?

Part of Pro
19

How do you decide which model to try first on a new problem?

Part of Pro
20

How does a high-bias model behave differently from a high-variance one?

Part of Pro
21

How do bias, variance, and irreducible error add up to total error?

Part of Pro
22

How does model complexity push bias and variance in opposite directions?

Part of Pro
23

What is regularization, and how does it trade variance away for bias?

Part of Pro
24

What techniques actually reduce a model's bias rather than its variance?

Part of Pro
25

How do you keep data quality high enough to train on?

Part of Pro
26

How can preprocessing and feature engineering leak test data into training?

Part of Pro
27

How is data leakage different from ordinary overfitting?

Part of Pro
28

How would you approach a badly imbalanced classification problem?

Part of Pro
29

What are upsampling and downsampling, and when does SMOTE beat naive oversampling?

Part of Pro
30

How do you get high-quality labels, and what do you do with ambiguous cases?

Part of Pro
31

What is feature scaling, and why do some models need it?

Part of Pro
32

What is the difference between parametric and non-parametric models?

Part of Pro
Expert 4
33

How would you frame churn prediction for a product as a machine learning problem?

Part of Pro
34

How would you cut fraudulent transactions for a credit card company?

Part of Pro
35

How would you detect data leakage hiding in an existing pipeline?

Part of Pro
36

How can you lower a model's variance without raising its bias?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for Machine Learning Fundamentals? Send them this set.
Pro · $10/mo

31 of 36 Machine Learning Fundamentals answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git