uiz Space

May 2025 term · Deep Learning for Computer Vision · BSDA5006

Deep Learning for Computer Vision End Term: 31 August 2025, Set QDB1 (May 2025 term)

The IIT Madras BS Deep Learning for Computer Vision (Deep Learning for Computer Vision) End Term paper sat on 31 Aug 2025, in the May 2025 term, set QDB1: 52 questions for 72 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
52
Marks
72
Duration
180 min
MCQ
16
MSQ
7
Numerical
29

Updated

Official paper: IIT M IMPROVEMENT AN EXAM QIA3 31 Aug 2025 · No negative marking.

Question 1

+2 marksOne correct option

Choose the correct matching:

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

Correct answer

  • D

Question 2

+2 marksOne correct option
  1. A

    1→ iii, 2→ iv, 3→ i, 4 → ii

  2. B

    1→ iii, 2→ i, 3 → ii, 4 → v

  3. C

    1→ iii, 2→ iv, 3→ v, 4 → ii

  4. D

    1→ iv, 2→ iii, 3→ i, 4 → ii

Show answer

Correct answer

  • C

    1→ iii, 2→ iv, 3→ v, 4 → ii

Question 3

+2 marksOne correct option

Identify the correct sequence of steps in a Canny edge detection pipeline. Steps are listed below: 1. Compute gradient magnitude and direction
2. Connect individual components
3. Smoothen the image
4. Threshold into strong, weak, or no edge
5. Gaussian Filter and Hysteresis
6. Non-maximum suppression
7. Apply derivative to get edges

  1. A

    6→ 1→ 4→ 5 → 2

  2. B

    3→ 1→ 6→ 4 → 2

  3. C

    3→ 5→ 1→ 4 → 2

  4. D

    6→ 3→ 5→ 7 → 2

Show answer

Correct answer

  • B

    3→ 1→ 6→ 4 → 2

Question 4

+2 marksOne correct option
  1. A

    Only statement P is true

  2. B

    Only statement Q is true

  3. C

    Both statements are true

  4. D

    None of these statements is true

Show answer

Correct answer

  • A

    Only statement P is true

Question 5

+2 marksOne correct option

Match the derivative of activation functions f(x)f(x) with their counterparts on the right column accordingly.

1) Leaky ReLUi) f(x)(1−f(x))f(x)(1 - f(x))
2) Tanhii) 0 if x<0x < 0 and 1 if x>0x > 0
3) ReLUiii) 1−f(x)21 - f(x)^2
4) Sigmoidiv) 0.01 if x<0x < 0 and 1 if x>0x > 0
v) 0 if x⩾0x \geqslant 0 and 1 if x<0x < 0
vi) 0.01 if x⩾0x \geqslant 0 and 1 if x<0x < 0
  1. A

    1→ vi, 2→ iii, 3 →v, 4 → i

  2. B

    1→ i, 2→ iv, 3 → iii, 4→ ii

  3. C

    1→ i, 2→ v, 3 → iii, 4→ iv

  4. D

    1→ iv, 2→ iii, 3→ ii, 4 → i

Show answer

Correct answer

  • D

    1→ iv, 2→ iii, 3→ ii, 4 → i

Question 6

+2 marksOne correct option

Which of the following is the correct sequence of steps of the SIFT algorithm?
1. Using the Taylor series expansion of the scale-space function, lo-calize the key points. 2. Estimate the orientation of keypoints using the local image gra-dients.
3. Find the edge points using the eigenvalues of the Hessian and reject these points.
4. Find a raw SIFT descriptor vector using the gradient orientations of the neighborhood around the key points.
5. Detect extreme points in scale space using an approximation of the Laplacian of Gaussian.

  1. A

    5, 2, 1, 3, 4

  2. B

    5, 1, 3, 2, 4

  3. C

    1, 3, 2, 4, 5

  4. D

    1, 5, 3, 2, 4

Show answer

Correct answer

  • B

    5, 1, 3, 2, 4

Question 7

+2 marksOne correct option
  1. A

    Sigmoid of alignment scores

  2. B

    ReLU of alignment scores

  3. C

    Softmax of alignment scores

  4. D

    Linear projections of alignment scores

Show answer

Correct answer

  • C

    Softmax of alignment scores

Question 8

+2 marksOne correct option

Which one of the following statements is true?

  1. A

    Attention mechanisms cannot be applied to the bidirectional RNN model

  2. B

    An image captioning network cannot be trained end-to-end even though we are using 2 different modalities to train the network

  3. C

    One of the key components in the vanilla transformer are the recurrent connections that help them to deal with variable input length.

  4. D

    None of these

Show answer

Correct answer

  • D

    None of these

Question 9

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

Correct answer

  • D

Question 10

+2 marksOne correct option

Which one of the following statements regarding hyperparameter tuning is false?

  1. A

    Validation set is the best choice for tuning hyperparameters

  2. B

    Picking hyperparameters that perform the best on the training set leads to overfitting

  3. C

    Tuning hyperparameters on the test set is an acceptable approach to find the most powerful model for generalization performance

  4. D

    Test set performance, with hyperparameters tuned on the validation set, would be a realistic measure of how the model will generalize to new data.

Show answer

Correct answer

  • C

    Tuning hyperparameters on the test set is an acceptable approach to find the most powerful model for generalization performance

Question 11

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

Correct answer

  • A

Question 12

+2 marksOne correct option
  1. A

    1→ iii, 2→ iv, 3→ ii, 4 → i

  2. B

    1→ i, 2→ iv, 3 → iii, 4→ ii

  3. C

    1→ iv, 2→ iii, 3→ ii, 4 → i

  4. D

    1→ iii, 2→ i, 3 → ii, 4 →v

Show answer

Correct answer

  • D

    1→ iii, 2→ i, 3 → ii, 4 →v

Question 13

+2 marksOne correct option
  1. A

    1→ iv, 2→ v, 3→ i, 4 → ii

  2. B

    1→ iii, 2→ i, 3 → v, 4→ ii

  3. C

    1→ iv, 2→ iii, 3→ ii, 4 → i

  4. D

    1→ iii, 2→ i, 3 → ii, 4→ v

Show answer

Correct answer

  • A

    1→ iv, 2→ v, 3→ i, 4 → ii

Question 14

+2 marksOne correct option

What makes the Segment Anything Model (SAM) particularly advantageous for image annotation tasks compared to conventional segmentation approaches?

  1. A

    It has perfect segmentation accuracy

  2. B

    It has minimal hardware requirements for operation

  3. C

    It can generalize to segment objects it wasn’t specifically trained on

  4. D

    It automatically identifies and labels all objects in an image without user prompts

Show answer

Correct answer

  • C

    It can generalize to segment objects it wasn’t specifically trained on

Question 15

+2 marksOne correct option

Statement 1: The Segment Anything Model (SAM) demonstrates zero-shot generalization capabilities across various downstream tasks.
Statement 2: SAM’s training involves a largescale, diverse mask dataset using a prompt-based segmentation approach. Which one of the following options is most appropriate?

  1. A

    Both statements are correct, and Statement 2 correctly explains Statement 1.

  2. B

    Both statements are correct, but Statement 2 does not correctly explain Statement 1.

  3. C

    Statement 1 is correct, but Statement 2 is incorrect.

  4. D

    Statement 1 is incorrect, but Statement 2 is correct.

  5. E

    Both statements are incorrect.

Show answer

Correct answer

  • A

    Both statements are correct, and Statement 2 correctly explains Statement 1.

Question 16

+2 marksOne correct option

Why does DETR typically exhibit poor performance in detecting small objects compared to larger ones?

  1. A

    The CNN backbone used in DETR has a fixed receptive field that’s too large for small objects

  2. B

    The global self-attention mechanism in DETR tends to dilute the signal from small objects across all image locations

  3. C

    DETR’s loss function actively discards all detections smaller than 50x50 pixels

  4. D

    The object queries in DETR are programmed to ignore any object smaller than 10

  5. E

    DETR’s encoder-decoder architecture was specifically designed to only detect large objects

Show answer

Correct answer

  • B

    The global self-attention mechanism in DETR tends to dilute the signal from small objects across all image locations

Question 17

+2 marksOne or more correct options

Which of the following statements are false? (Select all that apply)

Select all that apply.

  1. A

    Generative adversarial networks (GANs) generate sharper images compared to Variational AutoEncoders (VAE)

  2. B

    GAN is an example of an implicit density estimation model

  3. C

    Fully connected layers in mapping network of Style-GAN do not change the dimension of its input

  4. D

    The generator and discriminator are always trained together in a GAN

Show answer

Correct answers

  • C

    Fully connected layers in mapping network of Style-GAN do not change the dimension of its input

  • D

    The generator and discriminator are always trained together in a GAN

Question 18

+2 marksOne or more correct options

Which of the following statements are true? (Select all possible correct options)

Select all that apply.

  1. A

    Autoencoder are equivalent to Principal Component Analysis (PCA) provided we don’t use of non-linear activation functions

  2. B

    When using global attention on temporal data, alignment weights are learnt for encoder hidden representations for all time steps

  3. C

    Positional encoding is an important component of the transformer architecture as it conveys information about order in a given sequence

  4. D

    It is not possible to generate different captions for the same image that have similar meaning but different tone/style

  5. E

    Autoencoders can not be used for data compression as its input and output dimensions are different

Show answer

Correct answers

  • A

    Autoencoder are equivalent to Principal Component Analysis (PCA) provided we don’t use of non-linear activation functions

  • B

    When using global attention on temporal data, alignment weights are learnt for encoder hidden representations for all time steps

  • C

    Positional encoding is an important component of the transformer architecture as it conveys information about order in a given sequence

Question 19

+2 marksOne or more correct options

Which of the following statements about CLIP are TRUE? (Select ALL that apply)

Select all that apply.

  1. A

    CLIP uses a contrastive loss function to align text and image embeddings.

  2. B

    CLIP requires image labels for training.

  3. C

    CLIP is trained to maximize cosine similarity between embeddings of matching text-image pairs.

  4. D

    CLIP model is trained with pretext tasks such as rotation prediction and inpainting to learn effective feature representations.

  5. E

    To use the CLIP model for image classification, it is imperative to finetune it on downstream datasets.

Show answer

Correct answers

  • A

    CLIP uses a contrastive loss function to align text and image embeddings.

  • C

    CLIP is trained to maximize cosine similarity between embeddings of matching text-image pairs.

Question 20

+2 marksOne or more correct options

Which one of the following statements is true:

Select all that apply.

  1. A

    Weight change criterion is a method of ‘early stopping’ that checks whether or not the error is dropping over epochs to decide whether to continue training or stop.

  2. B

    L1 norm tends to create more sparse weights than L2 norm.

  3. C

    During the training phase, for each iteration, Dropout ignores a random fraction, p, of nodes, and accounts for it in the test phase by scaling down the activations by a factor of p.

  4. D

    A single McCulloch-Pitts neuron is capable of modeling AND, OR, XOR, NOR, and NAND functions.

Show answer

Correct answers

  • B

    L1 norm tends to create more sparse weights than L2 norm.

  • C

    During the training phase, for each iteration, Dropout ignores a random fraction, p, of nodes, and accounts for it in the test phase by scaling down the activations by a factor of p.

Question 21

+2 marksOne or more correct options

Which of the following are examples of a high-pass filter?

Select all that apply.

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

Correct answers

  • A
  • B
  • C
  • D

Question 22

+2 marksOne or more correct options

Which of the following statements are true? (Select all that apply)

Select all that apply.

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

Correct answers

  • B
  • C

Question 23

+2 marksOne or more correct options

Which of the following techniques help control the exploding or vanishing gradient problem in recurrent neural networks?

Select all that apply.

  1. A

    Gradient clipping

  2. B

    Use ReLU activation funtion to control exploding gradient and sigmoid activation to control vanishing gradients

  3. C

    Use Long Short-Term Memory (LSTM)

  4. D

    Use data augmentation methods (for example, reversing the input sequence)

Show answer

Correct answers

  • A

    Gradient clipping

  • C

    Use Long Short-Term Memory (LSTM)

  • D

    Use data augmentation methods (for example, reversing the input sequence)

Question 24

+2 marksNumerical answer

Given is a 3×33 \times 3 8-bit grayscale image:

[50701209030804060110]\begin{bmatrix} 50 & 70 & 120 \\ 90 & 30 & 80 \\ 40 & 60 & 110 \end{bmatrix}

What is the central element after applying linear contrast stretching? Linear contrast stretching is an image enhancement technique used to improve the contrast in an image. This is achieved by linearly scaling the pixel values so that they span a desired range (0 to 255 for an 8-bit grayscale image).

Show answer

Correct answer: 0

Question 25

+2 marksNumerical answer

Consider the grayscale image shown below as a 5×55 \times 5 matrix:

[20302530404510403520152030255050403515301035252045]\begin{bmatrix} 20 & 30 & 25 & 30 & 40 \\ 45 & 10 & 40 & 35 & 20 \\ 15 & 20 & 30 & 25 & 50 \\ 50 & 40 & 35 & 15 & 30 \\ 10 & 35 & 25 & 20 & 45 \end{bmatrix}

If a median filter with a 3×33 \times 3 neighborhood is applied to this image with a stride of 1 and no padding, what will be the value at position (2,2)(2, 2) in the filtered image? (Assume that the top-left pixel coordinate of output image is addressed as (1,1)(1, 1))?

Show answer

Correct answer: 30

Question 26

+2 marksNumerical answer
Show answer

Correct answer: -0.21 (accepted within ±0.005)

Question 27

+2 marksNumerical answer
Show answer

Correct answer: 45

Question 28

+2 marksNumerical answer
Show answer

Correct answer: 3.75

Question 29

+2 marksNumerical answer
Show answer

Correct answer: 100

Question 30

+1 markNumerical answer
Show answer

Correct answer: -2

Question 31

+1 markNumerical answer
Show answer

Correct answer: 5

Question 32

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Element 1: _______________

Show answer

Correct answer: 0.54

Question 33

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Element 2: _______________

Show answer

Correct answer: 0.25

Question 34

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Element 3: _______________

Show answer

Correct answer: 0.19

Question 35

+1 markNumerical answer

Based on the above data, answer the given subquestions.

Element 4: _______________

Show answer

Correct answer: 0.58

Question 36

+1 markNumerical answer

A 4-dimensional input vector x=[5,3,−1,2]x = [5, 3, -1, 2] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.4,0.6,0.8,−0.2][0.4, 0.6, 0.8, -0.2] and bias is 0.40.4. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z)).

Based on the above data, answer the given subquestions.

Sigmoid _______________

Show answer

Correct answer: 0.95

Question 37

+1 markNumerical answer

A 4-dimensional input vector x=[5,3,−1,2]x = [5, 3, -1, 2] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.4,0.6,0.8,−0.2][0.4, 0.6, 0.8, -0.2] and bias is 0.40.4. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z)).

Based on the above data, answer the given subquestions.

Linear _______________

Show answer

Correct answer: 3

Question 38

+1 markNumerical answer

A 4-dimensional input vector x=[5,3,−1,2]x = [5, 3, -1, 2] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.4,0.6,0.8,−0.2][0.4, 0.6, 0.8, -0.2] and bias is 0.40.4. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z)).

Based on the above data, answer the given subquestions.

Indicator Function _______________

Show answer

Correct answer: 1

Question 39

+1 markNumerical answer

A 4-dimensional input vector x=[5,3,−1,2]x = [5, 3, -1, 2] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.4,0.6,0.8,−0.2][0.4, 0.6, 0.8, -0.2] and bias is 0.40.4. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z)).

Based on the above data, answer the given subquestions.

Softplus _______________

Show answer

Correct answer: 3.05

Question 40

+1 markNumerical answer

A 4-dimensional input vector x=[5,3,−1,2]x = [5, 3, -1, 2] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.4,0.6,0.8,−0.2][0.4, 0.6, 0.8, -0.2] and bias is 0.40.4. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z)).

Based on the above data, answer the given subquestions.

ReLu _______________

Show answer

Correct answer: 3

Question 41

+1 markNumerical answer

A 4-dimensional input vector x=[5,3,−1,2]x = [5, 3, -1, 2] is passed to a hidden layer with a single neuron and an activation function a(.)a(.) to obtain zz. Assume that the corresponding weights (from input to hidden layer) are [0.4,0.6,0.8,−0.2][0.4, 0.6, 0.8, -0.2] and bias is 0.40.4. If the activation function a(.)a(.) is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of zz? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: ln⁡(1+exp⁡(z))\ln(1 + \exp(z)).

Based on the above data, answer the given subquestions.

Leaky-ReLu _______________

Show answer

Correct answer: 3

Question 42

+0.55 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 1

Question 43

+0.55 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 5

Question 44

+0.55 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 11

Question 45

+0.55 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 7

Question 46

+0.55 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 8

Question 47

+0.55 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 4

Question 48

+0.54 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 10

Question 49

+0.54 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 9

Question 50

+0.54 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 3

Question 51

+0.54 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 2

Question 52

+0.54 marksNumerical answer

Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 6