Deep Learning Fundamentals MCQs for the NSCT

By the NSCT Exam Editorial Team · Updated 2026-11-24 · Facts checked against official sources on 2026-11-24

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

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

Interactive quiz loading. The first 10 questions are shown below.

  1. What does a single perceptron compute?

    1. The average of its inputs with no weights
    2. A weighted sum of its inputs plus a bias, passed through a step (threshold) function
    3. The product of all its inputs
    4. A probability distribution over several classes
    Show answer

    Answer: B. A weighted sum of its inputs plus a bias, passed through a step (threshold) function

    Rosenblatt's perceptron calculates z = w·x + b and outputs 1 if z is above the threshold, otherwise 0. Its weights and bias are learned. A probability distribution over classes is what a softmax output layer produces.

  2. Why can a single-layer perceptron not learn the XOR function?

    1. XOR needs more than two inputs
    2. XOR is not linearly separable, and a single perceptron can only draw one straight decision boundary
    3. The perceptron learning rule only works for OR
    4. XOR outputs are not binary
    Show answer

    Answer: B. XOR is not linearly separable, and a single perceptron can only draw one straight decision boundary

    The XOR points (0,1) and (1,0) are positive while (0,0) and (1,1) are negative, and no single line separates them. A network with a hidden layer and a non-linear activation can combine two boundaries and solve it.

  3. What is the main purpose of a non-linear activation function in a hidden layer?

    1. To make training faster by skipping the backward pass
    2. To reduce the number of weights in the network
    3. To normalise the input data to zero mean
    4. To let the network learn non-linear relationships; without it, stacked layers collapse into one linear transformation
    Show answer

    Answer: D. To let the network learn non-linear relationships; without it, stacked layers collapse into one linear transformation

    A composition of linear layers, W2(W1x + b1) + b2, is itself just linear. Non-linear activations such as ReLU, tanh or sigmoid between layers are what let deep networks represent curved decision boundaries.

  4. Which formula defines the ReLU activation function?

    1. f(z) = max(0, z)
    2. f(z) = 1 / (1 + e^(−z))
    3. f(z) = (e^z − e^(−z)) / (e^z + e^(−z))
    4. f(z) = z for all z
    Show answer

    Answer: A. f(z) = max(0, z)

    ReLU (rectified linear unit) outputs z when z is positive and 0 otherwise. The second option is sigmoid, the third is tanh, and the fourth is the identity (linear) activation.

  5. What are the output ranges of the sigmoid and tanh activation functions?

    1. Sigmoid: (−1, 1); tanh: (0, 1)
    2. Sigmoid: (0, 1); tanh: (−1, 1)
    3. Both: (0, ∞)
    4. Sigmoid: (0, 1); tanh: (0, ∞)
    Show answer

    Answer: B. Sigmoid: (0, 1); tanh: (−1, 1)

    Sigmoid squashes any real input into (0, 1), which suits probabilities. tanh squashes into (−1, 1) and is zero-centred, which often helps optimisation in hidden layers. (0, ∞) is roughly ReLU's output range (it includes 0).

  6. Why is softmax used in the output layer for multi-class classification with mutually exclusive classes?

    1. It makes every output independent so several classes can be true at once
    2. It turns raw scores (logits) into non-negative values that sum to 1, so they can be read as class probabilities
    3. It removes the need for a loss function
    4. It forces exactly one output to be 1 and the rest 0 during training
    Show answer

    Answer: B. It turns raw scores (logits) into non-negative values that sum to 1, so they can be read as class probabilities

    softmax(z_i) = e^(z_i) / Σ e^(z_j). The outputs are positive and sum to 1. For multi-label problems where several classes can be true, you would use independent sigmoids instead. Softmax gives soft probabilities, not hard one-hot outputs.

  7. What does backpropagation compute?

    1. The network's output for a new input
    2. The gradient of the loss with respect to every weight, using the chain rule from the output layer backwards
    3. A random search over possible weight values
    4. The best learning rate for the optimiser
    Show answer

    Answer: B. The gradient of the loss with respect to every weight, using the chain rule from the output layer backwards

    Backpropagation applies the chain rule layer by layer, reusing intermediate results, to get ∂L/∂w for all weights efficiently. An optimiser such as gradient descent then uses those gradients to update the weights. The forward pass computes the output.

  8. Which pairing of output activation and loss function is standard?

    1. Softmax output with mean squared error for regression
    2. Sigmoid output with binary cross-entropy for binary classification; linear output with mean squared error for regression
    3. ReLU output with categorical cross-entropy for binary classification
    4. Linear output with binary cross-entropy for regression
    Show answer

    Answer: B. Sigmoid output with binary cross-entropy for binary classification; linear output with mean squared error for regression

    Binary cross-entropy expects a probability in (0, 1), which sigmoid provides. Regression targets can be any real number, so a linear output with MSE (or MAE) fits. Softmax with categorical cross-entropy is the multi-class pairing.

  9. Why do deep networks that use sigmoid activations often suffer from vanishing gradients?

    1. Sigmoid's derivative is at most 0.25, so multiplying many such factors during backpropagation shrinks the gradient towards zero in early layers
    2. Sigmoid outputs can become infinitely large
    3. Sigmoid has no derivative at zero
    4. Sigmoid makes the loss function non-differentiable
    Show answer

    Answer: A. Sigmoid's derivative is at most 0.25, so multiplying many such factors during backpropagation shrinks the gradient towards zero in early layers

    σ'(z) = σ(z)(1 − σ(z)), which peaks at 0.25 when z = 0 and approaches 0 when the unit saturates. Backpropagation multiplies these factors layer by layer, so early layers get tiny updates. ReLU, careful initialisation, batch normalisation and residual connections all help.

  10. What is the 'dying ReLU' problem?

    1. Some ReLU units get stuck outputting 0 for every input, so their gradient is 0 and they stop learning
    2. ReLU outputs grow without limit and cause overflow
    3. ReLU units output negative values that cancel each other
    4. ReLU makes the network linear
    Show answer

    Answer: A. Some ReLU units get stuck outputting 0 for every input, so their gradient is 0 and they stop learning

    If a unit's weights and bias push z below zero for all inputs (often after a large update), ReLU outputs 0 and its gradient is 0, so it never recovers. Leaky ReLU, which keeps a small slope for z < 0, is a common fix.

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.