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

All questions

Showing of 48
Beginner 17
01

What is a perceptron, and what can a single-layer network actually do?

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

A perceptron is the simplest neural unit. It multiplies each input by a weight, sums the results, adds a bias, then passes that total through a step threshold. Output is one or zero. Training nudges weights whenever a prediction is wrong, moving the boundary toward the mistaken example.

What a single layer can do is draw one straight boundary through the input space. That handles linearly separable problems like AND and OR. It cannot solve XOR, because no single line separates those four points.

This limit is why depth exists. Stacking units with a hidden layer between them lets the network bend the boundary into arbitrary shapes. The cost is that the simple perceptron update no longer works, so you need gradient-based training instead.

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 are the input, hidden and output layers of a neural network?

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

Every network is organized into three kinds of layer, each with a fixed job. The input layer is not really computing anything. It simply holds your features, one unit per number you feed in - pixel values, sensor readings, or an encoded row.

Hidden layers sit in the middle and do the actual work. Each one takes the previous layer's outputs, applies weights, and produces a new representation. Early hidden layers pick up simple patterns. Later ones combine those into higher-level features.

The output layer is shaped by the task. One unit for a regression target or binary score, ten units for ten classes. Get that shape wrong and the loss function will not match your labels, which is a common early bug.

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 an activation function, and what does it do inside a neuron?

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

An activation function is the small transform a neuron applies to its weighted sum before passing the value on. The neuron first computes inputs times weights plus bias. That number then goes through the activation, and the result becomes the neuron's output.

Two things happen there. The function bends the straight-line arithmetic, so stacked layers can represent curved decision boundaries. It also controls the range of the signal - squashed between zero and one, or clipped at zero, depending on which function you pick.

The choice has a real training cost. Because backpropagation multiplies the activation's slope at every layer, a function that flattens out will shrink gradients as they travel backwards. The rectified linear unit (ReLU) stays popular partly because its slope is exactly one wherever the input is positive.

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 is backpropagation, and how does it compute gradients through a network?

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

Backpropagation is how a network works out, for every weight, whether nudging it up or down would reduce the loss. It runs after a forward pass. The forward pass computes predictions and stores each layer's intermediate values along the way.

Then the loss gradient flows backwards, layer by layer. At each step the chain rule from calculus combines the gradient arriving from above with the local derivative of that layer. Multiply them and you get the gradient for that layer's weights, plus the signal to hand to the layer below.

The practical cost is memory. All those stored activations sit in graphics processing unit (GPU) memory until the backward pass consumes them. That is why a batch that fits during inference can still blow up during training.

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 is gradient descent, and what is the intuition behind the algorithm?

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

Gradient descent finds good weights by repeatedly stepping downhill on the loss surface. Picture the loss as a landscape where every position is one setting of the weights. The gradient points in the direction of steepest increase, so you move the opposite way.

One iteration is three moves: run data through the network, measure the loss, then subtract a fraction of each gradient from its weight. Repeat over many passes and the weights drift toward a region where the loss stops improving.

Nothing about this guarantees the lowest possible point. You only ever see the slope directly under your feet, never the whole map. In practice that is acceptable, because a good-enough valley found in hours beats a perfect one you never reach.

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

What does the learning rate control, and what goes wrong at either extreme?

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 learning rate sets how far each weight moves along its gradient on every update. The gradient gives the direction. The learning rate gives the step size. It is usually the first thing to tune, because a wrong value ruins a run no matter how good the architecture is.

Set it too high and the steps overshoot the valley. Loss jumps around, or shoots to not-a-number as weights blow up. Set it too low and training crawls. You burn hours of compute and may stall on a flat stretch before reaching anything useful.

Most teams start around 0.001 with Adam, watch the first few hundred steps, then adjust by factors of ten. Decaying the rate later in training helps the weights settle instead of bouncing near the bottom.

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:

07

Which hyperparameters do you tune when training a neural network, and what does each control?

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

Hyperparameters are the knobs you set before training starts, as opposed to weights, which the training learns. A handful matter far more than the rest.

  • Learning rate: the size of each weight update, and by far the most sensitive.
  • Batch size: examples per update, which also drives memory use and throughput.
  • Epochs: how many passes over the data, usually settled by early stopping.
  • Depth and width: layers and units per layer, which set the model's capacity.
  • Regularization strength: dropout probability and weight decay, trading fit against generalization.
  • Optimizer: plain descent, momentum or Adam, each with its own sensible defaults.

Tune them roughly in that order. Sweeping everything at once wastes compute, because learning rate alone can swamp the effect of every other choice.

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:

08

What is regularization in deep learning, and which techniques reduce overfitting?

Part of Pro
09

What is dropout, and how does randomly switching off neurons help a network?

Part of Pro
10

What is batch normalization, and how does it help a network train faster?

Part of Pro
11

What is a convolutional neural network, and what problems is it good at?

Part of Pro
12

What layers make up a typical CNN architecture, and what does each one do?

Part of Pro
13

How does the convolution operation work, and what is a feature map?

Part of Pro
14

What is pooling in a CNN, and how do max and average pooling differ?

Part of Pro
15

What is a recurrent neural network, and how does it process a sequence?

Part of Pro
16

What is tokenization, and why does text need it before a model sees it?

Part of Pro
17

What is a word embedding, and what does closeness in that vector space mean?

Part of Pro
Intermediate 28
18

Why must activation functions be non-linear, and what happens without them?

Part of Pro
19

When would you choose sigmoid, tanh or ReLU as your activation function?

Part of Pro
20

What is the difference between batch, mini-batch and stochastic gradient descent?

Part of Pro
21

How do momentum, RMSprop and Adam improve on plain stochastic gradient descent?

Part of Pro
22

How do you choose a batch size, and what else does that choice affect?

Part of Pro
23

What are vanishing and exploding gradients, and why do deep networks suffer them?

Part of Pro
24

How do you initialize a network's weights, and why not set them all to zero?

Part of Pro
25

What is gradient clipping, and how else do you tame exploding gradients?

Part of Pro
26

How does dropout differ from L1 and L2 regularization, and when do you use each?

Part of Pro
27

What is the difference between batch normalization and layer normalization?

Part of Pro
28

How does batch normalization behave differently at training time and at inference?

Part of Pro
29

Training loss keeps falling while validation loss climbs - what do you do?

Part of Pro
30

Your loss curve oscillates or spikes and will not settle - what do you change?

Part of Pro
31

How do feedforward, convolutional and recurrent networks differ, and when do you pick each?

Part of Pro
32

What does parameter sharing in a convolutional layer buy you over a fully connected one?

Part of Pro
33

How do stride and padding change the output size of a convolutional layer?

Part of Pro
34

Why do plain RNNs struggle with long sequences, and how do LSTMs help?

Part of Pro
35

What are the gates in an LSTM cell, and what does each one control?

Part of Pro
36

What is the difference between an LSTM and a GRU, and when do you pick one?

Part of Pro
37

What is a Transformer, and how does it differ from a CNN or an RNN?

Part of Pro
38

What is self-attention, and how does it differ from earlier attention mechanisms?

Part of Pro
39

Why does a Transformer need positional encoding, and what does it add?

Part of Pro
40

Why does a Transformer use multi-head attention instead of a single head?

Part of Pro
41

What are the query, key and value vectors in self-attention?

Part of Pro
42

How do the Transformer encoder and decoder differ, and why is future masking needed?

Part of Pro
43

How are word2vec and GloVe embeddings produced, and where do they fall short?

Part of Pro
44

What is byte pair encoding, and why do models tokenize into subwords?

Part of Pro
45

What is transfer learning, and when does starting from a pretrained model pay off?

Part of Pro
Expert 3
46

Why are attention scores scaled before the softmax, and what breaks without it?

Part of Pro
47

Why do Transformer blocks use layer normalization instead of batch normalization?

Part of Pro
48

Does gradient descent always converge to the optimum on a non-convex loss surface?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for Deep Learning & Neural Networks? Send them this set.
Pro · $10/mo

41 of 48 Deep Learning & Neural Networks 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