Deep Learning Fundamentals MCQs for the NSCT
Deep learning fundamentals covers how a neural network computes an output (perceptrons, layers and activation functions) and how it learns (loss functions, backpropagation and gradient descent). It is topic 11 of the 17 in the AI / Machine Learning and Data Analytics area, which carries 10% of the NSCT according to HEC's Areas of Competencies. Candidates averaged 50.8% accuracy in this area in 2026, per the HEC NSCT report.
Most questions here are small calculations: an activation value, a parameter count, one gradient step. The derivatives come from Mathematical Foundations, so revise the chain rule first.
Perceptron
A perceptron computes a weighted sum plus a bias, z = w·x + b, and outputs 1 if z > 0, otherwise 0. With w = [1, 1] and b = −1.5 it implements AND: only input (1, 1) gives z = 0.5 > 0.
It learns with the perceptron rule: w ← w + η(y − ŷ)x and b ← b + η(y − ŷ), where η is the learning rate. Weights change only when the prediction is wrong.
A single perceptron draws one straight boundary, so it cannot learn XOR, which is not linearly separable. A multi-layer perceptron (MLP), with hidden layers and non-linear activations, can.
Exam angle: expect "compute the output" and "apply one update" questions. Remember to update the bias too.
Activation
An activation function adds non-linearity. Without it, any stack of layers collapses into a single linear map, however deep it is.
| Function | Formula | Range | Typical use | Watch out for |
|---|---|---|---|---|
| Sigmoid | 1 / (1 + e⁻ᶻ) | (0, 1) | Binary output | Saturates; derivative at most 0.25 |
| tanh | (eᶻ − e⁻ᶻ) / (eᶻ + e⁻ᶻ) | (−1, 1) | Hidden layers, RNNs | Saturates, but zero-centred |
| ReLU | max(0, z) | [0, ∞) | Default for hidden layers | "Dying ReLU" units |
| Leaky ReLU | z if z > 0, else 0.01z | (−∞, ∞) | Fixes dying ReLU | Extra slope hyperparameter |
| Softmax | eᶻⁱ / Σ eᶻʲ | (0, 1), sums to 1 | Multi-class output | Not for multi-label tasks |
Some values worth knowing: σ(0) = 0.5, σ(2) ≈ 0.881, tanh(1) ≈ 0.762, and softmax([1, 2, 3]) ≈ [0.09, 0.24, 0.67].
Exam angle: match the output layer to the task. Use sigmoid for binary, softmax for single-label multi-class and a linear output for regression.
Backpropagation
Backpropagation computes the gradient of the loss with respect to every weight by applying the chain rule from the output layer backwards. An optimiser then updates each weight: w ← w − η · ∂L/∂w.
For example, take L = (wx − y)² with w = 1, x = 3 and y = 6. The gradient is ∂L/∂w = 2(wx − y)x = 2 × (3 − 6) × 3 = −18. With η = 0.01, w becomes 1 + 0.18 = 1.18, which moves wx towards 6.
Three problems recur in exam questions: - Vanishing gradients: sigmoid derivatives (at most 0.25) multiply across layers, so early layers barely learn. Fixes include ReLU, He or Xavier initialisation, batch normalisation and residual connections. - Exploding gradients: products grow instead, and the loss becomes NaN. Fixes include a lower learning rate and gradient clipping. - Symmetry: if all weights start equal, every neuron in a layer gets the same gradient and stays identical. Initialise randomly.
Exam angle: an epoch is one pass over the data; an iteration is one mini-batch update. 10,000 examples at batch size 100 means 100 iterations per epoch.
Loss
A loss function measures how wrong a prediction is; training minimises its average.
| Task | Output | Loss | Formula |
|---|---|---|---|
| Regression | Linear | Mean squared error (MSE) | mean of (ŷ − y)² |
| Regression, robust to outliers | Linear | Mean absolute error (MAE) | mean of |ŷ − y| |
| Binary classification | Sigmoid | Binary cross-entropy | −[y ln p + (1 − y) ln(1 − p)] |
| Multi-class classification | Softmax | Categorical cross-entropy | −ln(p of the true class) |
For p = 0.9 on a positive example, binary cross-entropy is −ln 0.9 ≈ 0.105. A model stuck at 0.693 (ln 2) is outputting 0.5 for everything. Softmax with cross-entropy has the neat gradient p − y with respect to the logits.
Exam angle: check which logarithm the question uses. Cross-entropy uses the natural log unless stated otherwise.
Common traps
- Saying a perceptron can learn XOR. It cannot; you need a hidden layer.
- Forgetting the biases in parameter counts. A 784-128-10 network has 101,770 parameters, not 101,632.
- Adding the gradient instead of subtracting it in a gradient descent step.
- Using softmax for multi-label problems, where several classes can be true. Use independent sigmoids.
- Applying softmax in the model and again inside a loss that expects raw logits.
- Thinking dropout is active at inference. It is used only during training.
Worked examples
1. Understanding. Which of sigmoid and tanh is zero-centred, and why does that matter? Answer: tanh, whose outputs lie in (−1, 1) around 0. Sigmoid outputs are always positive, so a following layer's gradients tend to share one sign, which slows optimisation.
2. Application. How many trainable parameters does a 4-3-3-1 fully connected network have? Answer: 31. (4 × 3 + 3) + (3 × 3 + 3) + (3 × 1 + 1) = 15 + 12 + 4.
3. Analysis. Training loss keeps falling, but validation loss is lowest at epoch 12 and rises after that. Which weights should you keep? Answer: the epoch-12 weights. Rising validation loss with falling training loss means the network has started to overfit. Early stopping keeps the checkpoint with the best validation loss, and dropout or weight decay can delay the turn.
Practise
The quiz below has 100 questions on deep learning fundamentals, filterable by tier and difficulty.
Practise: 100 questions
FAQs
Is a neural network with one hidden layer "deep learning"?
Strictly, deep learning means networks with several hidden layers, but the fundamentals are the same for one layer or fifty. The universal approximation theorem says one wide hidden layer can approximate any continuous function. In practice, deeper networks learn hierarchical features with fewer units.
Why is ReLU preferred over sigmoid in hidden layers?
ReLU's gradient is 1 for positive inputs, so it does not shrink the signal as it passes back through many layers. It is also cheap to compute. Sigmoid saturates for large |z|, and its derivative is at most 0.25, which causes vanishing gradients. Sigmoid remains the usual choice for a binary output unit.
Which optimiser should I know for the test?
Know plain gradient descent and its batch, stochastic and mini-batch variants. Know momentum, which smooths updates with a running average of gradients. Know Adam, which combines momentum with per-parameter adaptive learning rates (as RMSProp does). Most questions test what the learning rate does.
Next step
Continue to Advanced Deep Learning MCQs for CNNs, RNNs and transformers. For extra practice on training gaps, see overfitting and underfitting. Revisit the AI & ML MCQs hub or test yourself in an NSCT mock test.