uiz Space

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

Introduction to Deep Learning and Generative AI Quiz 2: 12 April 2026 (January 2026 term)

The IIT Madras BS Introduction to Deep Learning and Generative AI (Deep Learning and GenAI) Quiz 2 paper sat on 12 Apr 2026, in the January 2026 term: 20 questions for 48 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
20
Marks
48
Duration
120 min
MCQ
15
Numerical
1
MSQ
4

Updated

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

Question 1

+2 marksOne correct option

Consider the following code:

  1. A

    It enables gradient computation

  2. B

    It resets the model parameters every epoch

  3. C

    It clears previously stored gradients

  4. D

    It ensures layers like Dropout and BatchNorm behave correctly during training

Show answer

Correct answer

  • D

    It ensures layers like Dropout and BatchNorm behave correctly during training

Question 2

+2 marksOne correct option

Consider the following code:

What is the spatial size of the output after applying the given pooling code?

  1. A

    2x3

  2. B

    2x2

  3. C

    1x1

  4. D

    1x2

Show answer

Correct answer

  • C

    1x1

Question 3

+2 marksOne correct option

Which of the following code snippets generates fake images from random noise for training a fully connected GAN network?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 4

+2 marksOne correct option

Consider the following code:

What will be the final output of the code (z_biased)?

  1. A

    tensor([0.0000, 4.0000])

  2. B

    tensor([1.5000, 4.7000])

  3. C

    tensor([0.5000, 8.7000])

  4. D

    tensor([1.5000, 7.7000])

Show answer

Correct answer

  • D

    tensor([1.5000, 7.7000])

Question 5

+2 marksOne correct option

Consider the following architecture for a discriminator:

In which of the following lines would you suggest code changes to make the discriminator work as intended?

  1. A

    Line1

  2. B

    Line2

  3. C

    Line3

  4. D

    The code will perfectly work as intended for a discriminator

Show answer

Correct answer

  • D

    The code will perfectly work as intended for a discriminator

Question 6

+2 marksOne correct option

If Model A has cross-entropy loss = 2.0 and Model B has loss = 1.5, which model has lower perplexity?

  1. A

    Model A

  2. B

    Model B

  3. C

    Both equal

  4. D

    Insufficient Information

Show answer

Correct answer

  • B

    Model B

Question 7

+2 marksOne correct option
  1. A

    Model A: Exploding, Model B: Near-Stable, Model C: Vanishing

  2. B

    Model A: Exploding, Model B: Exploding, Model C: Vanishing

  3. C

    Model A: Exploding, Model B: Vanishing, Model C: Vanishing

  4. D

    Model A: Near-Stable, Model B: Vanishing, Model C: Vanishing

  5. E

    Model A: Exploding, Model B: Near-Stable, Model C: Near-Stable

Show answer

Correct answer

  • C

    Model A: Exploding, Model B: Vanishing, Model C: Vanishing

Question 8

+2 marksOne correct option

Consider the following code snippet:

  1. A

    (32, 10, 16)

  2. B

    (10, 32, 16)

  3. C

    (32, 16)

  4. D

    (2, 32, 16)

  5. E

    (2, 32, 10, 16)

Show answer

Correct answer

  • A

    (32, 10, 16)

Question 9

+3 marksNumerical answer
Show answer

Correct answer: 0.7 (accepted within ±0.05)

Question 10

+3 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 11

+3 marksOne correct option

You are designing a simple RNN to process sentences of length 10 words for next-word prediction in a chat application.
Each word is represented using a vector of size 6.
The RNN has: Hidden layer size = 4 neurons• Output layer size = 5 neurons• What is the total number of trainable parameters in this RNN including biases?

  1. A

    55

  2. B

    64

  3. C

    69

  4. D

    90

Show answer

Correct answer

  • C

    69

Question 12

+3 marksOne or more correct options

Consider the following real-valued functions defined on their natural domains. Select all functions that are convex over their respective domains.

Select all that apply.

  1. A
  2. B
  3. C
  4. D
  5. E
  6. F
Show answer

Correct answers

  • A
  • B
  • E

Question 13

+3 marksOne or more correct options

In a GAN training loop, the following function is used before each backward pass:

Suppose a GAN is trained and this function is used in every iteration with learning rate α = 0.01 :
During iteration 1:
The true discriminator gradient (∇θ_D L_D) = 0.6 The true generator gradient (∇θ_G L_G) = 0.5
During iteration 2:
The new discriminator gradient (∇θ_D L_D) = 0.4 The new generator gradient (∇θ_G L_G) = 0.2
What will be the effective parameter update after the second iteration (assume gradients accumulate linearly in PyTorch)?

Select all that apply.

  1. A

    θ_D ← θ_D - 0.004

  2. B

    θ_D ← θ_D + 0.004

  3. C

    θ_D ← θ_D + 0.010

  4. D

    θ_G ← θ_G - 0.010

  5. E

    θ_G ← θ_G - 0.002

  6. F

    θ_G ← θ_G - 0.007

Show answer

Correct answers

  • A

    θ_D ← θ_D - 0.004

  • F

    θ_G ← θ_G - 0.007

Question 14

+3 marksOne or more correct options

During GAN training, the following code is used to update the discriminator:

However the code doesnt work as intended. Identify the flaws which are preventing to make the code work as intended.

Select all that apply.

  1. A

    The reset grad method to erase previous gradients needs to be added.

  2. B

    The fake loss should use fake_labels instead of real_labels.

  3. C
  4. D

    Ratio of the two losses should be taken to compute the final descriminator loss.

Show answer

Correct answers

  • A

    The reset grad method to erase previous gradients needs to be added.

  • B

    The fake loss should use fake_labels instead of real_labels.

  • C

Question 15

+2 marksOne or more correct options

Consider the following statements related to optimization in deep learning. Select all statements that are correct.

Select all that apply.

  1. A

    Step decay, exponential decay, and cosine decay are examples of learning rate scheduling techniques.

  2. B

    Accelerated gradient methods necessarily require the learning rate to decrease over time in order to converge.

  3. C

    Momentum-based methods can improve convergence speed even when the learning rate is kept constant.

  4. D

    Learning rate scheduling methods introduce memory of past gradients into the optimization process.

  5. E

    Learning rate scheduling and accelerated gradient methods can be used together.

Show answer

Correct answers

  • A

    Step decay, exponential decay, and cosine decay are examples of learning rate scheduling techniques.

  • C

    Momentum-based methods can improve convergence speed even when the learning rate is kept constant.

  • E

    Learning rate scheduling and accelerated gradient methods can be used together.

Question 16

+3 marksOne correct option

Consider the following reference sentence:
Reference: machine learning is very fun

Answer the subquestions based on the given data.

Prediction 1: machine learning is fun fun What is the BLEU-1 score for the given prediction?

  1. A

    1.000

  2. B

    0.779

  3. C

    0.800

  4. D

    0.606

Show answer

Correct answer

  • C

    0.800

Question 17

+2 marksOne correct option

Consider the following reference sentence:
Reference: machine learning is very fun

Answer the subquestions based on the given data.

Prediction 2: machine learning is fun What is the BLEU-1 score for the given prediction?

  1. A

    1.000

  2. B

    0.779

  3. C

    0.800

  4. D

    0.606

Show answer

Correct answer

  • B

    0.779

Question 18

+2 marksOne correct option

Consider the following PyTorch model:

Answer the subquestions based on the given data.

What is the total number of trainable parameters in the GRU layer?

  1. A

    4,992

  2. B

    4,864

  3. C

    5,184

  4. D

    5,568

Show answer

Correct answer

  • C

    5,184

Question 19

+3 marksOne correct option

Consider the following PyTorch model:

Answer the subquestions based on the given data.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 20

+2 marksOne correct option

and the binary cross-entropy loss function.
Based on the above data, answer the given subquestions.

What are the updated values of the weights after the first SGD step?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B