uiz Space

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

Introduction to Deep Learning and Generative AI Quiz 1: 19 July 2026 (May 2026 term)

The IIT Madras BS Introduction to Deep Learning and Generative AI (Deep Learning and GenAI) Quiz 1 paper sat on 19 Jul 2026, in the May 2026 term: 20 questions for 51 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
51
Duration
120 min
Written
5
MCQ
15

Updated

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

Question 1

+3 marksWritten answer

Consider the following data point and weight vector in a simple single layer neural network. (Assume that there is no bias.) x = [1,0] w = [0,1] Once the data flows through the simple network and is passed through the activation function, the final output comes out to be 0.5. Once you have identified the activation function, enter the maximum value that the derivative of the activation function can take.

Show answer

A written answer, not marked automatically.

Question 2

+3 marksWritten answer

A BatchNorm layer is applied to the output of a convolutional layer. The output feature map has dimensions: where: 32 = Batch size (number of images in the mini-batch)• 28 = Height of each feature map• 28 = Width of each feature map• 64 = Number of channels• How many learnable parameters does this BatchNorm layer contain?

Show answer

A written answer, not marked automatically.

Question 3

+3 marksOne correct option

Consider a McCulloch-Pitts (MP) neuron with binary inputs, unit positive weights, and no inhibitory connections. Given the following data points: a = [0,0] b = [1,1] c = [1,0] The neuron must satisfy: a → 0 b → 0 c → 1 Which of the following statements is TRUE (θ is the threshold for the neuron to fire.)?

  1. A

    This is possible with = 1

  2. B

    This is possible with = 2

  3. C

    This is possible with some threshold value

  4. D

    This is impossible for a standard MP neuron

Show answer

Correct answer

  • D

    This is impossible for a standard MP neuron

Question 4

+3 marksOne correct option

Consider the following pytorch code:

What is the output of the above code?

Consider the following pytorch code:
  1. A

    —

  2. B

    —

  3. C

    —

  4. D

    —

Show answer

Correct answer

  • D

    —

Question 5

+3 marksOne correct option

A student is training a neural network for regression problem with a sigmoid activation at the output layer to predict the continuous value between 0 and 1. The true mathematical error term for Mean Squared Error (MSE) loss is . However, due to a coding mistake, the student implements the error term for Binary Cross- Entropy (BCE) loss instead, calculating it as . Assuming the network has not yet reached zero error ( ), which of the following correctly describes the relationship between the implemented and the true ?

  1. A

    The student's equals the true because the error term always holds regardless of loss function.

  2. B

    The student's is always at least 4 times larger in magnitude than true .

  3. C

    The student's is smaller than the true because sigmoid squashes the gradient.

  4. D

    The student's equals the true only when , since is maximum there and cancels with the MSE factor.

Show answer

Correct answer

  • B

    The student's is always at least 4 times larger in magnitude than true .

Question 6

+3 marksOne correct option

An input image of size 32×32 is passed through a CNN containing three convolution layers: • Conv1: 3x3, stride 1 • Conv2: 3x3, stride 1 • Conv3: 3x3, stride 1 Find the receptive field of a neuron in Conv3.

  1. A

    3x3

  2. B

    4x4

  3. C

    5x5

  4. D

    6x6

  5. E

    7x7

  6. F

    8x8

Show answer

Correct answer

  • E

    7x7

Question 7

+3 marksOne correct option

For a convolution layer, suppose the input feature map has size 28x28x64. A 1x1 convolution with 32 filters is applied to it. What will be the output size? (Assume stride = 1 and no padding.)

  1. A

    28x28x64

  2. B

    28x28x32

  3. C

    32x32x28

  4. D

    64x64x32

Show answer

Correct answer

  • B

    28x28x32

Question 8

+3 marksOne correct option

A convolution operation is applied to an input image of size 64x64 using a single 3x3 filter. The convolution uses: Kernel size = 3x3• Padding = 1• Stride = 1• What will be the size of the output feature map produced by this filter?

  1. A

    62x62

  2. B

    64x64

  3. C

    66x66

  4. D

    60x60

Show answer

Correct answer

  • B

    64x64

Question 9

+3 marksOne correct option

Consider the following PyTorch convolutional layer:

How many total learnable parameters (including biases) does this layer contain?

Consider the following PyTorch convolutional layer:
  1. A

    4,800

  2. B

    9,600

  3. C

    9,664

  4. D

    4,864

Show answer

Correct answer

  • D

    4,864

Question 10

+3 marksOne correct option

Consider the following image preprocessing pipeline:

Which of the following statements is correct about the above preprocessing pipeline?

Consider the following image preprocessing pipeline:
  1. A

    Steps A, B, and C add randomness to training images, helping the model generalize better.

  2. B

    The Normalize step should be placed before converting the image to a tensor for correct scaling.

  3. C

    Data Augmentation should be added in test pipeline otherwise the code won't work.

  4. D

    The ColorJitter operation is applied after normalization, so pixel values stay between 0 and 1.

Show answer

Correct answer

  • A

    Steps A, B, and C add randomness to training images, helping the model generalize better.

Question 11

+2 marksOne correct option

A perceptron in 2D is defined by a linear decision function:

Suppose a classification rule satisfies: 1. All points with x1 + x2 = 1 are classified as +1 2. All points with x1 + x2 = 0 are classified as -1 3. All points with x1 + x2 = 2 are classified as -1 Which of the following is TRUE?

A perceptron in 2D is defined by a linear decision function:
  1. A

    The problem is linearly separable because classes depend only on x1 + x2

  2. B

    The problem is not linearly separable

  3. C

    A linear separator exists only if w1 = w2

  4. D

    The problem is linearly separable when w1 = -w2

Show answer

Correct answer

  • B

    The problem is not linearly separable

Question 12

+2 marksOne correct option

Consider the following tensor operation in pytorch:

What will be the output of the final print statement?

Consider the following tensor operation in pytorch:
  1. A

    —

  2. B

    —

  3. C

    —

  4. D

    —

Show answer

Correct answer

  • A

    —

Question 13

+2 marksOne correct option

A student is using a single neuron with activation where Can this single neuron represent XOR exactly for the four binary input pairs?

  1. A

    A suitable choice of parameters can represent XOR exactly.

  2. B

    XOR always requires at least one hidden layer, hence it can not represent XOR exactly for the four binary input pairs.

  3. C

    It can not represent XOR exactly for the four binary input pairs but only when .

  4. D

    It can not represent XOR exactly for the four binary input pairs because a single neuron can only represent linear decision boundaries.

Show answer

Correct answer

  • A

    A suitable choice of parameters can represent XOR exactly.

Question 14

+2 marksOne correct option

Consider the following snippet of a CNN block:

A part of which classical CNN architecture is represented by the above code?

Consider the following snippet of a CNN block:
  1. A

    VGG

  2. B

    GoogleNet

  3. C

    Resnet

  4. D

    Alexnet

Show answer

Correct answer

  • B

    GoogleNet

Question 15

+2 marksOne correct option

In deep CNN architectures like VGGNet, multiple 3×3 convolutional layers are stacked instead of using a single large kernel (e.g.,7×7). Which of the following statements best explains the advantage of this design choice?

  1. A

    It increases the receptive field and parameter count simultaneously, improving representational power.

  2. B

    It provides a similar effective receptive field as a larger kernel while introducing more non-linearities and fewer parameters.

  3. C

    It reduces the receptive field size, but compensates with more skip connections to retain context.

  4. D

    It limits model depth to avoid overfitting by reducing the total number of convolutional layers.

Show answer

Correct answer

  • B

    It provides a similar effective receptive field as a larger kernel while introducing more non-linearities and fewer parameters.

Question 16

+2 marksOne correct option

A CNN produces an output feature map of size 10x10x64. Global Average Pooling (GAP) is applied to this feature map. What is the dimension of the output after applying the GAP?

  1. A

    10×10×64

  2. B

    1×1×64

  3. C

    1×1×1

  4. D

    64×64×64

Show answer

Correct answer

  • B

    1×1×64

Question 17

+3 marksWritten answer

Consider the following neural network and answer the given subquestions.

A feedforward neural network has 2 input neurons, one hidden layer (l = 1) with 2 neurons, and one output neuron (l = 2). Every neuron uses the sigmoid activation

. For each layer : , Here is the input. Binary cross entropy loss is being used.

Consider the following neural network and answer the given subquestions.
Consider the following neural network and answer the given subquestions.
Consider the following neural network and answer the given subquestions.
Consider the following neural network and answer the given subquestions.

Compute the pre-activation input to the output neuron, , and the final output . Give correct to four decimal places.

Show answer

A written answer, not marked automatically.

Question 18

+4 marksWritten answer

Consider the following neural network and answer the given subquestions.

A feedforward neural network has 2 input neurons, one hidden layer (l = 1) with 2 neurons, and one output neuron (l = 2). Every neuron uses the sigmoid activation

. For each layer : , Here is the input. Binary cross entropy loss is being used.

Consider the following neural network and answer the given subquestions.
Consider the following neural network and answer the given subquestions.
Consider the following neural network and answer the given subquestions.
Consider the following neural network and answer the given subquestions.

Compute

i.e., the gradient of the loss with respect to the hidden-layer weight (connecting input to hidden neuron ).Give the value correct upto four decimal places.

Compute
Show answer

A written answer, not marked automatically.

Question 19

+1 markOne correct option

Which statement is guaranteed by the Universal Approximation Theorem (UAT)?

  1. A

    A sufficiently large neural network can always be trained successfully using gradient descent.

  2. B

    The theorem provides a bound on the number of neurons required for a given approximation error.

  3. C

    The theorem provides a bound on the amount of training data required.

  4. D

    None of these

Show answer

Correct answer

  • D

    None of these

Question 20

+1 markWritten answer

Consider the following neural network and answer the given subquestions.

A feedforward neural network has 2 input neurons, one hidden layer (l = 1) with 2 neurons, and one output neuron (l = 2). Every neuron uses the sigmoid activation

. For each layer : , Here is the input. Binary cross entropy loss is being used.

Consider the following neural network and answer the given subquestions.
Consider the following neural network and answer the given subquestions.
Consider the following neural network and answer the given subquestions.
Consider the following neural network and answer the given subquestions.
Show answer

A written answer, not marked automatically.