CS 7643 Deep Learning
Practice Exam - Version B
100 questions | Immediate answers | Detailed explanations
100 16 A-D
QUESTIONS TOPIC MODULES ANSWER FORMAT
A concept-first workbook with immediate answers and teaching rationales
,PASSPOINT PRO / CS 7643 DEEP LEARNING
Practice Exam - Version B
100 original A-D practice questions. Each answer and rationale follows the question. Topics include theory, computation,
architecture, debugging and research design.
001. An SGD step starts at weight 3, gradient 1, learning rate 0.05. What is the updated weight?
A. 3
B. 2.95
C. 0.05
D. 3.05
Answer: B - 2.95
Explanation: SGD uses w_new=w-eta*g=3-0.05(1)=2.95. Review loss trends, learning-rate scale and gradient norms on a
controlled minibatch. A small, repeatable optimization experiment can separate a bad step size from a bad model.
002. While reviewing a multilingual encoder, a developer asks: what distinguishes a causal decoder
from a bidirectional encoder?
A. A decoder cannot output logits
B. The encoder has no attention layers
C. Only encoders have learned parameters
D. A decoder masks future positions while a bidirectional encoder may attend across the full input
Answer: D - A decoder masks future positions while a bidirectional encoder may attend across the full input
Explanation: The attention mask determines whether future context is accessible. Check the sequence mask and the
feature dimension through every transformer block. A model trained with a causal mask cannot legitimately use unseen
future tokens at inference.
003. While reviewing an iterative sampler, a developer asks: why is a discriminator's high training
accuracy alone a poor GAN success metric?
A. It does not tell whether samples are diverse and realistic
B. It measures test-set FID exactly
C. It proves generator coverage perfectly
D. It removes any optimization instability
Answer: A - It does not tell whether samples are diverse and realistic
Explanation: Adversarial balance and sample quality cannot be inferred from discriminator accuracy alone. Inspect sample
fidelity, diversity and the training-versus-sampling procedure. Generated sample diversity and quality must be measured
beyond a single training loss.
004. While reviewing a multilingual encoder, a developer asks: what does temperature below one
typically do when sampling a softmax language-model distribution?
A. Reverse the token order
B. Increase sequence length automatically
C. Make it sharper and less random
D. Make all tokens exactly equiprobable
Answer: C - Make it sharper and less random
Explanation: Dividing logits by a temperature below one increases differences before softmax. Check the sequence mask
and the feature dimension through every transformer block. A model trained with a causal mask cannot legitimately use
unseen future tokens at inference.
Original practice and instructional resources 2
,PASSPOINT PRO / CS 7643 DEEP LEARNING
005. While reviewing a transcript classifier, a developer asks: what is teacher forcing during
autoregressive sequence training?
A. Freeze all decoder parameters
B. Provide ground-truth prior tokens as decoder inputs
C. Use future test labels at inference
D. Remove the output projection
Answer: B - Provide ground-truth prior tokens as decoder inputs
Explanation: Teacher forcing conditions the next-step prediction on observed preceding tokens during training. Check
ordering, padding masks and hidden-state transitions step by step. The ordering of information through time determines
what the model is allowed to use.
006. For f(x)=wx+b with w=1, b=2, x=2, target y=5, and L=(f(x)-y)^2, what is dL/dw?
A. -3
B. 2
C. -1
D. -2
Answer: D - -2
Explanation: By the chain rule, dL/dw = 2(wx+b-y)*x = 2(4-5)*2 = -2. Use local chain-rule checks or small finite-difference
tests to validate gradients. Correct local gradients are the building blocks of an accurate end-to-end backward pass.
007. How many learnable parameters (including one bias per output channel) are in a Conv2d layer
with 3 input channels, 32 output channels, and 3x3 kernels?
A. 28
B. 864
C. 896
D. 928
Answer: C - 896
Explanation: Each of the 32 output filters has 3x3x3 weights plus one bias, giving 32(3*3*3+1) = 896. Apply the exact
kernel, padding, stride and dilation formula to each spatial axis. The resulting output tensor determines which downstream
layer shapes are valid.
008. For f(x)=wx+b with w=3, b=4, x=2, target y=11, and L=(f(x)-y)^2, what is dL/dw?
A. 6
B. -6
C. -1
D. -2
Answer: B - -6
Explanation: By the chain rule, dL/dw = 2(wx+b-y)*x = 2(10-11)*2 = -6. Use local chain-rule checks or small
finite-difference tests to validate gradients. Correct local gradients are the building blocks of an accurate end-to-end
backward pass.
Original practice and instructional resources 3