uiz Space

January 2026 term · Introduction to Deep Learning and Generative AI · BSDA2001

Introduction to Deep Learning and Generative AI Quiz 1: 15 March 2026, Set 2 (January 2026 term)

The IIT Madras BS Introduction to Deep Learning and Generative AI (Deep Learning and GenAI) Quiz 1 paper sat on 15 Mar 2026, in the January 2026 term, set 2: 24 questions for 52 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
24
Marks
52
Duration
120 min
MCQ
17
Written
5
MSQ
2

Updated

Official paper: Introduction To Deep Learning And Generative Ai 15 Mar 26 · No negative marking.

Question 1

+2 marksOne correct option

What will be the output of the following PyTorch code?

What will be the output of the following PyTorch code?
  1. A

    29

  2. B

    43

  3. C

    48

  4. D

    53

Show answer

Correct answer

  • B

    43

Question 2

+2 marksOne correct option

Consider the following code snippet:

What will be printed?

Consider the following code snippet:
  1. A

    torch.Size([5, 1, 3, 1]), torch.Size([5, 3,1])

  2. B

    torch.Size([1, 5, 1, 3, 1]), torch.Size([5, 3,1])

  3. C

    torch.Size([5, 1, 3, 1]), torch.Size([5, 3])

  4. D

    torch.Size([5, 3]), torch.Size([5, 3])

Show answer

Correct answer

  • C

    torch.Size([5, 1, 3, 1]), torch.Size([5, 3])

Question 3

+2 marksOne correct option

You want to train a linear model using stochastic gradient descent (SGD). Assume that the loss function and training loop are implemented correctly. Which of the following model definitions will result in the weights being updated during training?

  1. A
    Figure from the original question paper
  2. B
    Figure from the original question paper
  3. C
    Figure from the original question paper
Show answer

Correct answer

  • B
    Figure from the original question paper

Question 4

+2 marksOne correct option

Consider the following training loop:

Which statement best describes the problem in this training loop?

Consider the following training loop:
  1. A

    The forward pass is missing

  2. B

    Gradients accumulate across epochs, leading to incorrect updates

  3. C

    The optimizer cannot update parameters without model.eval()

  4. D

    The loss function cannot compute gradients

Show answer

Correct answer

  • B

    Gradients accumulate across epochs, leading to incorrect updates

Question 5

+2 marksOne correct option

You are given a dataset of 10 × 10 grayscale images. Your goal is to build a 5-class classifier. You have to adopt one of the following two options: ● Model A: The input is flattened into a 100-dimensional vector, followed by a fully-connected layer with 5 neurons (without bias). ● Model B: The input is directly given to a convolutional layer with five 10 × 10 filters. (without bias) Suppose you make your choice on the basis of the number of parameters in the models: ● Let = number of parameters in Model A . ● Let = number of parameters in Model B . Which of the following is correct?

  1. A

    p_A > p_B

  2. B

    p_A = p_B

  3. C

    p_A < p_B

Show answer

Correct answer

  • B

    p_A = p_B

Question 6

+2 marksOne correct option

An image contains 16 channels. Which of the following code snippets correctly creates a convolution layer for this image?

  1. A

    —

  2. B

    —

  3. C

    —

  4. D

    —

Show answer

Correct answer

  • A

    —

Question 7

+2 marksOne correct option

Consider the following pytorch code to preprocess the FashionMNIST dataset.

Which of the following hold true?

Consider the following pytorch code to preprocess the FashionMNIST dataset.
  1. A

    The images in train_dataset will be converted to tensors and normalized before being returned.

  2. B

    The dataset will return normalized images in the range [−1,1] because FashionMNIST is grayscale.

  3. C

    The transforms are automatically applied to the test split while they are not applied to train split.

  4. D

    The dataset will return PIL images and not tensors.

Show answer

Correct answer

  • D

    The dataset will return PIL images and not tensors.

Question 8

+2 marksOne correct option

An input volume has shape 6x6x2 (height=6, width=6, depth=2 channels). Perform the following two steps on it. ● Step 1: Apply 2x2 Max Pooling with stride=2 ● Step 2: Then, apply 1x1 Convolution with 4 filters. What is the shape of the final output volume?

  1. A

    3x3x2

  2. B

    3x3x4

  3. C

    6x6x4

  4. D

    3x3x8

Show answer

Correct answer

  • B

    3x3x4

Question 9

+2 marksOne correct option

In an Inception module, four parallel paths produce outputs of shapes: 28x28x64, 28x28x128, 28x28x32, and 28x28x32. After concatenation, what is the output shape?

  1. A

    112×28×128

  2. B

    28×112×256

  3. C

    28×28×256

  4. D

    112×112×256

Show answer

Correct answer

  • C

    28×28×256

Question 10

+2 marksOne correct option

A CNN produces an output feature map of size 7x7x512, which is followed by Global Average Pooling (GAP) and then a fully connected layer with 10 output classes. Which of the following statements is correct?

  1. A

    GAP converts the feature map into a 49 × 512 vector before classification

  2. B

    GAP produces a 512-dimensional vector, resulting in 5120 trainable parameters in the final layer

  3. C

    GAP produces a 7 × 7 × 1 feature map, followed by a 10-unit fully connected layer

  4. D

    GAP increases the number of parameters compared to flattening

Show answer

Correct answer

  • B

    GAP produces a 512-dimensional vector, resulting in 5120 trainable parameters in the final layer

Question 11

+3 marksOne correct option

Consider the following code snippet:

What will be printed?

Consider the following code snippet:
  1. A

    torch.Size([3, 3, 4]), torch.Size([3, 3, 4]), 72

  2. B

    torch.Size([3, 3, 4]), torch.Size([3, 4]), 72

  3. C

    torch.Size([9, 4]), torch.Size([9, 4]), 72

  4. D

    torch.Size([3, 3, 4]), torch.Size([3, 3, 4]), 36

Show answer

Correct answer

  • A

    torch.Size([3, 3, 4]), torch.Size([3, 3, 4]), 72

Question 12

+3 marksOne correct option

A CNN uses three consecutive 3x3 convolution layers with stride 1 and no pooling. What is the receptive field of a neuron in the third layer?

  1. A

    3x3

  2. B

    5x5

  3. C

    7x7

  4. D

    9x9

Show answer

Correct answer

  • C

    7x7

Question 13

+3 marksOne correct option

An input feature map of size 32x32 is convolved using SAME padding in the following two independent cases: Case I: ● Filter size: 5x5 ● Stride: 1 Case II: ● Filter size: 3x3 ● Stride: 1 What amount of padding is applied on each side (top, bottom, left, right) in Case I and Case II, respectively?

  1. A

    Case I: 2 pixels, Case II: 1 pixel

  2. B

    Case I: 1 pixel, Case II: 2 pixels

  3. C

    Case I: 2 pixels, Case II: 0 pixels

  4. D

    Case I: 4 pixels, Case II: 2 pixels

Show answer

Correct answer

  • A

    Case I: 2 pixels, Case II: 1 pixel

Question 14

+2 marksWritten answer

Consider an input image of size 12x12x4. In the convolution layer a single filter of size 12 x 12 is passed to the image. Now consider the image is resized to 14x14x4. How many additional parameters will be added to the convolution layer?

Show answer

A written answer, not marked automatically.

Question 15

+3 marksOne or more correct options

A hidden layer in the feed_forward network of a CNN contains 5 neurons labelled A,B,C,D,E. We apply dropout to this hidden layer to prevent overfitting. During training the following observations occured - Epoch 1 - B and E were dropped out Epoch 2 - A and D were dropped out Select the false statements :

Select all that apply.

  1. A

    During epoch 3 of training C will be dropped out

  2. B

    During epoch 4 of training none of the neurons will be dropped out for sure since all of them have been dropped in one of the previous epochs.

  3. C

    During inference all of A,B,C,D and E have equal chances of being dropped out

  4. D

    During inference none of the neurons will be dropped out.

Show answer

Correct answers

  • A

    During epoch 3 of training C will be dropped out

  • B

    During epoch 4 of training none of the neurons will be dropped out for sure since all of them have been dropped in one of the previous epochs.

  • C

    During inference all of A,B,C,D and E have equal chances of being dropped out

Question 16

+3 marksWritten answer

Consider the following CNN :

Calculate the total number of parameters in the CNN.

Consider the following CNN :
Show answer

A written answer, not marked automatically.

Question 17

+2 marksOne correct option

Consider the below neural network with fixed weights and answer the given subquestions:

Consider the below neural network with fixed weights and answer the given subquestions:

Given the input , what is the output of the network?

  1. A

    0

  2. B

    1

  3. C

    2

  4. D

    2.5

Show answer

Correct answer

  • C

    2

Question 18

+2 marksWritten answer

Consider the below neural network with fixed weights and answer the given subquestions:

Consider the below neural network with fixed weights and answer the given subquestions:

Assume the target value is . Using Mean Squared Error (MSE) as the loss function, compute the numerical value of the loss assuming the input .

Show answer

A written answer, not marked automatically.

Question 19

+3 marksOne correct option

Consider the below neural network with fixed weights and answer the given subquestions:

Consider the below neural network with fixed weights and answer the given subquestions:

For which of the following conditions on will the first neuron of the hidden layer not be activated ( )?

  1. A

    —

  2. B

    —

  3. C

    —

  4. D

    —

Show answer

Correct answer

  • D

    —

Question 20

+2 marksOne correct option

Consider the following fixed neural network implemented in PyTorch.

Loss function used: Based on the above data, answer the given subquestions.

Consider the following fixed neural network implemented in PyTorch.

Given the input: What is the output produced by the network?

  1. A

    0.500

  2. B

    0.612

  3. C

    0.648

  4. D

    0.731

Show answer

Correct answer

  • C

    0.648

Question 21

+2 marksOne correct option

Consider the following fixed neural network implemented in PyTorch.

Loss function used: Based on the above data, answer the given subquestions.

Consider the following fixed neural network implemented in PyTorch.

For the input:

The network output is: Recall:

What is the gradient of the loss with respect to the hidden layer activations (i.e. )?

For the input:
For the input:
  1. A

    [ 0.334, 0.334]

  2. B

    [ 0.334, -0.334]

  3. C

    [-0.334, 0.334]

  4. D

    [ 0.111, -0.111]

Show answer

Correct answer

  • B

    [ 0.334, -0.334]

Question 22

+2 marksOne or more correct options

Consider the following fixed neural network implemented in PyTorch.

Loss function used: Based on the above data, answer the given subquestions.

Consider the following fixed neural network implemented in PyTorch.

Based on the hidden-layer weights and the output-layer weights, which of the following statements are correct?

Select all that apply.

  1. A

    Hidden neuron 0 produces larger activations when .

  2. B

    Hidden neuron 0 produces larger activations when .

  3. C

    Hidden neuron 1 produces larger activations when .

  4. D

    If the predicted class is 1, then the hidden neuron 0 is highly activated.

  5. E

    If the predicted class is 0, then the hidden neuron 0 is highly activated.

  6. F

    If the predicted class is 0, then the hidden neuron 1 is highly activated.

Show answer

Correct answers

  • A

    Hidden neuron 0 produces larger activations when .

  • C

    Hidden neuron 1 produces larger activations when .

  • D

    If the predicted class is 1, then the hidden neuron 0 is highly activated.

  • F

    If the predicted class is 0, then the hidden neuron 1 is highly activated.

Question 23

+1 markWritten answer

Consider the below neural network with fixed weights and answer the given subquestions:

Consider the below neural network with fixed weights and answer the given subquestions:
Show answer

A written answer, not marked automatically.

Question 24

+1 markWritten answer

Consider the following fixed neural network implemented in PyTorch.

Loss function used: Based on the above data, answer the given subquestions.

Consider the following fixed neural network implemented in PyTorch.
Show answer

A written answer, not marked automatically.