Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DIPLOMA LEVEL : INTRODUCTION TO DEEP LEARNING AND GENERATIVE AI (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
What will be the output of the following PyTorch code?

Solution
Consider the following code snippet:

What will be printed?
What will be printed?
Solution
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?
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?
Solution
Consider the following training loop:

Which statement best describes the problem in this training loop?
Which statement best describes the problem in this training loop?
Solution
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?
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
- Let
Which of the following is correct?
Solution
An image contains 16 channels.
Which of the following code snippets correctly creates a convolution layer for this image?
Which of the following code snippets correctly creates a convolution layer for this image?
Solution
Consider the following pytorch code to preprocess the FashionMNIST dataset.

Which of the following hold true?
Which of the following hold true?
Solution
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?
- 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?
Solution
In an Inception module, four parallel paths produce outputs of shapes:
28x28x64, 28x28x128, 28x28x32, and 28x28x32.
After concatenation, what is the output shape?
28x28x64, 28x28x128, 28x28x32, and 28x28x32.
After concatenation, what is the output shape?
Solution
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?
Which of the following statements is correct?
Solution
Consider the following code snippet:

What will be printed?
What will be printed?
Solution
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?
Solution
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?
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?
Solution
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?
Now consider the image is resized to 14x14x4.
How many additional parameters will be added to the convolution layer?
Solution
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 :
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 :
Solution
Consider the following CNN :

Calculate the total number of parameters in the CNN.
Calculate the total number of parameters in the CNN.
Solution
Given the input
, what is the output
of the network?
Solution
Assume the target value is
. Using Mean Squared Error (MSE) as the loss function, compute the numerical value of the loss assuming the input
.
Solution
For which of the following conditions on
will the first neuron of the hidden layer
not be activated (
)?
Solution
Given the input:

What is the output
produced by the network?
What is the output
Solution
For the input:

The network output is:

Recall:

What is the gradient of the loss with respect to the hidden layer activations
(i.e.
)?
The network output is:
Recall:
What is the gradient of the loss with respect to the hidden layer activations
Solution
Based on the hidden-layer weights and the output-layer weights, which of the following statements are correct?
Solution
Shape
Thickness [ / ]
3
All colors