Indian Institute of Technology Madras
BS Degree Programme · Examination & Study Paper
Introduction to Deep Learning and Generative AI
Quiz 1 · 26 Oct 2025 (Afternoon)
Examination Instructions & Guidelines
- Solve on notebook/paper first before checking solutions.
- MCQ: Exactly 1 option is correct. Negative marking applies.
- NAT: Numerical response. No negative marking.
- Scientific calculator allowed for all calculations.
- Official answer key is sealed at the end of this sheet.
Useful Reference Data for this Paper
Note: In all the questions, assume necessary imports wherever applicable.
Q1MCQ2 Marks·Choose one option
- Atorch.tensor([1, 4, 7])
- Btorch.tensor([2, 5, 8])
- Ctorch.tensor([3, 6, 9])
- Dtorch.tensor([4, 5, 6])
- Etorch.tensor([5])
- Q2MCQ2 Marks·Choose one option

- A(3, 4) and (3, 4)
- B(3, 4) and (4, 3)
- C(4, 3) and (4, 3)
- D(4, 3) and (3, 4)
- Q3MCQ2 Marks·Choose one option

- A(1, 2, 2)
- B(2, 2)
- C(2,)
- D(1, 1, 2, 2)
- E(1, 2, 2, 1)
- Q4MCQ2 Marks·Choose one option

- Amodel.cuda()
- Binput_batch.cuda()
- Cinput_batch = input_batch.requires_grad_(True)
- Dinput_batch = input_batch.to(device)
- Etorch.set_default_tensor_type('torch.cuda.FloatTensor')
- Q5MCQ2 Marks·Choose one option

- AIt prevents parameters from being changed by the optimizer during the forward pass.
- BIt deallocates the model's parameters from the GPU to save memory.
- CIt disables the creation of the computational graph, saving memory and speeding up execution.
- DIt ensures that the model operates entirely on the CPU, preventing unnecessary GPU transfers.
- Q6MCQ2 Marks·Choose one option

- A

- B

- C

- D

- A
- Q7NAT2 Marks·Write the number
Your answer: - Q8MCQ3 Marks·Choose one option

- A

- B

- C

- D

- E

- A
Read the passage below, then answer Q9–Q10

Based on the above data, answer the given subquestions.
Q9MCQ3 Marks·Choose one optionIf all the weights are initalized to 0 and the input to the network is also a zero vector, then what should be the value of bias so that the output of the network is 0.5 ?
- A0.5
- Bln(5)
- Cln(1)
- D1
- Q10MCQ4 Marks·Choose one option

- A

- B

- C

- D

- A
Read the passage below, then answer Q11–Q13
Q11MCQ3 Marks·Choose one optionSelect the equation representing the forward pass of the given network:
- A

- B

- C

- D

- A
- Q12NAT6 Marks·Write the number
Your answer: - Q13NAT2 Marks·Write the number
Your answer: Read the passage below, then answer Q14–Q17

Based on the above data, answer the given subquestions.
Q14NAT3 Marks·Write the numberHow many trainable parameters are there in the first convolutional layer including bias (conv1)?
Your answer:- Q15NAT1 Mark·Write the number
What is the total number of trainable parameters in the pooling layers(pool1 and pool2)?
Your answer: - Q16NAT1 Mark·Write the number
How many parameters (weights and biases) does the first fully connected layer (fc1) have?
Your answer: - Q17NAT1 Mark·Write the number
What is the total number of convolution filters used in this CNN?
Your answer: Read the passage below, then answer Q18–Q20

Based on the above data, answer the given subquestions.
Q18NAT3 Marks·Write the number
Your answer:- Q19NAT3 Marks·Write the number
Your answer: - Q20NAT3 Marks·Write the number
Your answer: