Advanced Deep Learning MCQs for the NSCT

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

Advanced deep learning covers the specialised architectures built on top of the basic neural network: CNNs for images, RNNs and LSTMs for sequences, transformers for attention-based modelling, and transfer learning for reusing pre-trained models. It is topic 12 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.

You need Deep Learning Fundamentals first. The two formulas that earn the most marks here are the conv output size and the parameter count.

CNN

A convolutional neural network (CNN) slides small learned filters (kernels) over an image. Each filter shares its weights across all positions, so it detects an edge or texture wherever it appears. It also needs far fewer parameters than a fully connected layer.

Output size: (n + 2p − f) / s + 1, rounded down, where n is the input size, f the filter size, p the padding and s the stride.

Input Filter Padding Stride Output
32 × 32 5 × 5 0 1 28 × 28
32 × 32 5 × 5 2 ("same") 1 32 × 32
227 × 227 11 × 11 0 4 55 × 55

The parameters of a conv layer are f × f × C_in × C_out weights plus C_out biases. For example, 3 × 3 filters from 3 to 64 channels give 1,792 parameters, whatever the image size. Pooling (such as 2 × 2 max pooling with stride 2) halves height and width and has no weights. A 1 × 1 convolution changes channel depth cheaply. Residual connections (ResNet) add the input back, F(x) + x, so very deep networks stay trainable.

Exam angle: the output depth equals the number of filters, not the number of input channels.

RNN

A recurrent neural network (RNN) processes a sequence one step at a time, updating a hidden state: h_t = tanh(W·x_t + U·h_(t−1) + b). The same weights are reused at every step.

A simple RNN with input size 10 and hidden size 20 has 20 × 10 + 20 × 20 + 20 = 620 parameters. It is trained with backpropagation through time. Gradients are multiplied at every step, so they either vanish (long-range links are lost) or explode (loss becomes NaN, fixed by gradient clipping). A bidirectional RNN adds a backward pass so that each position also sees future context.

Exam angle: "can't remember a word 80 tokens back" means vanishing gradients, and the answer is usually an LSTM, a GRU or attention.

LSTM

The long short-term memory (LSTM) cell (Hochreiter and Schmidhuber, 1997) adds a cell state that is updated additively and controlled by three gates:

Gate Job
Forget What to erase from the cell state
Input What new information to write
Output What part of the cell state to expose as h_t

The GRU is a lighter variant with two gates (reset and update) and no separate cell state. An LSTM has four weight blocks (three gates plus the candidate), so it has about four times the parameters of a simple RNN. With input 10 and hidden 20 that is 4 × 620 = 2,480. PyTorch stores two bias vectors per gate, giving 2,560, so check which convention a question assumes.

Exam angle: know the three LSTM gates against the two GRU gates; it is a favourite recall question.

Transformers

The transformer (Vaswani et al., 2017) drops recurrence and relies on self-attention: Attention(Q, K, V) = softmax(QKᵀ / √d_k)·V. Each token builds a query, key and value; the scores say how much it attends to every other token.

Model Blocks Training objective Good for
BERT Encoder only Masked language modelling (bidirectional) Classification, tagging
GPT Decoder only Next-token prediction (left to right) Text generation
Original transformer, T5 Encoder–decoder Sequence to sequence Translation, summarisation

Exam angle: "processes all tokens in parallel" points to the transformer; "processes tokens one at a time" points to an RNN or LSTM.

Transfer learning

Transfer learning reuses a model pre-trained on a large dataset (ImageNet, or web text for BERT) for a new task. Early layers learn general features such as edges and syntax, while later layers are more task-specific.

Exam angle: small dataset plus overfitting from scratch points to a pre-trained backbone with data augmentation.

Common traps

Worked examples

1. Understanding. Which gates does a GRU have? Answer: a reset gate and an update gate. The update gate plays the combined role of the LSTM's forget and input gates, and there is no separate output gate or cell state.

2. Application. A 28 × 28 × 1 image passes through a 3 × 3 conv layer with 16 filters, padding 1 and stride 1, then 2 × 2 max pooling with stride 2. What is the output shape? Answer: 14 × 14 × 16. The conv layer gives (28 + 2 − 3) / 1 + 1 = 28, so 28 × 28 × 16; pooling halves it to 14 × 14 × 16.

3. Analysis. Both use 64 input and 64 output channels. Why might you stack two 3 × 3 conv layers instead of one 5 × 5 layer? Answer: both see a 5 × 5 region, but two 3 × 3 layers use 2 × (3 × 3 × 64 × 64) = 73,728 weights against 102,400 for one 5 × 5 layer. They also add an extra non-linearity between them. This is the design idea behind VGG.

Practise

The quiz below has 100 questions on advanced deep learning, filterable by tier and difficulty.

Practise: 100 questions

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

  1. Why do convolutional layers suit images better than fully connected layers?

    1. They use small filters with shared weights that detect local patterns anywhere in the image, using far fewer parameters
    2. They connect every pixel to every neuron, capturing all global patterns at once
    3. They remove the need for any training data
    4. They only work on black-and-white images
    Show answer

    Answer: A. They use small filters with shared weights that detect local patterns anywhere in the image, using far fewer parameters

    A convolutional filter (kernel) slides over the image, applying the same weights at every position. This local connectivity and weight sharing cut parameters dramatically and make the layer detect an edge or texture wherever it appears.

  2. What does a max-pooling layer in a CNN do?

    1. It learns a filter that sharpens edges
    2. It increases the spatial size of the feature maps
    3. It normalises activations to zero mean and unit variance
    4. It downsamples each feature map by keeping the largest value in each window, and it has no learnable weights
    Show answer

    Answer: D. It downsamples each feature map by keeping the largest value in each window, and it has no learnable weights

    Max pooling (for example 2×2 with stride 2) halves height and width by keeping the maximum in each window. This reduces computation and gives some tolerance to small shifts. It has no weights to learn; normalisation is what batch norm does.

  3. What makes a recurrent neural network (RNN) suitable for sequences?

    1. It processes every element independently with no memory
    2. It keeps a hidden state that is updated at each time step using the same weights, so earlier inputs can influence later outputs
    3. It uses a separate set of weights for every time step
    4. It needs every sequence to have exactly the same length as the training data
    Show answer

    Answer: B. It keeps a hidden state that is updated at each time step using the same weights, so earlier inputs can influence later outputs

    At each step an RNN computes h_t = f(W·x_t + U·h_(t−1) + b), reusing W and U across time. The hidden state h_t acts as a memory of what came before. Sharing weights over time lets it handle sequences of varying length.

  4. Which problem of vanilla RNNs was the LSTM mainly designed to solve?

    1. Vanishing gradients, which make long-range dependencies hard to learn
    2. Too few parameters for image tasks
    3. The need for labelled data
    4. Slow inference on very short sequences
    Show answer

    Answer: A. Vanishing gradients, which make long-range dependencies hard to learn

    Hochreiter and Schmidhuber introduced the LSTM in 1997 with a cell state that is updated additively and controlled by gates. This lets gradients flow across many time steps, so the network can link information far apart in a sequence.

  5. Which gates does a standard LSTM cell have?

    1. Reset and update gates
    2. Query, key and value gates
    3. Read, write and erase gates only
    4. Forget, input and output gates
    Show answer

    Answer: D. Forget, input and output gates

    The forget gate decides what to drop from the cell state, the input gate what new information to add, and the output gate what to expose as the hidden state. Reset and update gates belong to the GRU, and query, key and value are attention projections.

  6. What is the core mechanism of the transformer architecture?

    1. Recurrent hidden states passed from token to token
    2. Convolutions over fixed windows of words
    3. A decision tree over the vocabulary
    4. Self-attention, which lets each token weigh every other token directly, with no recurrence
    Show answer

    Answer: D. Self-attention, which lets each token weigh every other token directly, with no recurrence

    The transformer (Vaswani et al., 2017, 'Attention Is All You Need') replaces recurrence with self-attention plus feed-forward layers. Every position can attend to every other in one step, and all positions are processed in parallel.

  7. Why do transformers need positional encodings?

    1. To reduce the size of the vocabulary
    2. To replace the softmax in attention
    3. Self-attention by itself ignores token order, so position information must be added to the input embeddings
    4. To make the attention matrix sparse
    Show answer

    Answer: C. Self-attention by itself ignores token order, so position information must be added to the input embeddings

    Attention treats its input as a set: shuffling the tokens just shuffles the outputs. Adding sinusoidal or learned position vectors to the embeddings lets the model tell 'dog bites man' from 'man bites dog'.

  8. In scaled dot-product attention, why are the scores QKᵀ divided by √d_k?

    1. Large dot products push softmax into regions with tiny gradients, and scaling keeps the scores in a stable range
    2. To convert the scores into probabilities
    3. To reduce the number of attention heads
    4. To make the attention matrix symmetric
    Show answer

    Answer: A. Large dot products push softmax into regions with tiny gradients, and scaling keeps the scores in a stable range

    When d_k is large, dot products of random vectors grow in magnitude (their variance grows with d_k). Softmax then becomes nearly one-hot and its gradients vanish. Dividing by √d_k counters this. Softmax, not the scaling, turns scores into probabilities.

  9. What is transfer learning in deep learning?

    1. Moving a trained model from one server to another
    2. Reusing a model pre-trained on a large dataset as the starting point for a related task
    3. Training two models at once and averaging them
    4. Converting a model from Python to another language
    Show answer

    Answer: B. Reusing a model pre-trained on a large dataset as the starting point for a related task

    A network trained on, say, ImageNet has learned general features such as edges and textures. Reusing those weights and training a new head (or fine-tuning) on your task needs less data and time than training from scratch.

  10. How do BERT and GPT differ architecturally?

    1. BERT is a decoder-only model and GPT is encoder-only
    2. Both are RNNs with LSTM cells
    3. BERT uses convolution and GPT uses recurrence
    4. BERT is an encoder-only model trained with masked language modelling (bidirectional context); GPT is a decoder-only model trained to predict the next token (left-to-right)
    Show answer

    Answer: D. BERT is an encoder-only model trained with masked language modelling (bidirectional context); GPT is a decoder-only model trained to predict the next token (left-to-right)

    BERT sees the whole sentence and fills in masked tokens, which suits understanding tasks such as classification. GPT uses causal (masked) self-attention so each token sees only earlier tokens, which suits text generation. Both are built from transformer blocks.

FAQs

Is a CNN only for images?

No. CNNs suit any data with a local grid structure: 2D images, 1D signals such as audio or sensor readings, and even text, where 1D convolutions slide over word embeddings. Images are simply the classic case, which is why Computer Vision builds on this topic.

Have transformers replaced RNNs and LSTMs?

For most large-scale language tasks, yes. Transformers train in parallel and link distant tokens directly. LSTMs and GRUs are still used for small streaming or on-device sequence tasks, where their constant memory per step is an advantage. Exam questions mostly test the trade-off: parallelism and long-range context against quadratic attention cost.

What is the difference between BERT and GPT?

BERT is an encoder-only transformer trained to fill in masked words using context from both sides, so it suits understanding tasks such as classification. GPT is a decoder-only transformer trained to predict the next token using only earlier tokens, which suits generation. Both rely on transfer learning: pre-train once, then adapt.

Next step

Continue to Natural Language Processing MCQs, the next topic in the official order, where embeddings and transformers meet text. Revisit the AI & ML MCQs hub or test yourself in an NSCT mock test.