PASSPOINT PRO
CS 7643 Deep Learning
Practice Exam - Version C
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 C
100 original A-D practice questions. Each answer and rationale follows the question. Topics include theory, computation,
architecture, debugging and research design.
001. For a long-context text encoder, select the technically correct answer: what is a causal
attention mask used for?
A. Remove all positional information
B. Ensure every token sees future targets
C. Prevent a token from attending to future positions
D. Force weights to be symmetric
Answer: C - Prevent a token from attending to future positions
Explanation: Causal masking blocks access to later tokens during autoregressive prediction. Inspect the attention-score
shape and where masking enters softmax. Masking and score normalization together define the information an attention
layer can access.
002. A 2D convolution receives a 48x48 feature map with kernel 7, padding 1, stride 1, and dilation
1. What is its output spatial width?
A. 44
B. 45
C. 48
D. 43
Answer: A - 44
Explanation: Use floor((N+2P-K)/S)+1: floor((48+2(1)-7)/1)+1 = 44. Apply the exact kernel, padding, stride and dilation
formula to each spatial axis. The resulting output tensor determines which downstream layer shapes are valid.
003. For a causal decoder, select the technically correct answer: what is the role of token
embeddings?
A. Shuffle target classes at test time
B. Map discrete token IDs to continuous feature vectors
C. Determine the optimizer's step count
D. Replace a vocabulary with image pixels only
Answer: B - Map discrete token IDs to continuous feature vectors
Explanation: An embedding table assigns learned dense vectors to discrete tokens. 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.
004. For a probabilistic decoder, select the technically correct answer: why is posterior collapse a
concern in some VAEs?
A. The decoder may ignore z while the posterior resembles the prior
B. It prevents any forward pass
C. It makes all data points identical
D. It forces reconstruction loss to be negative
Answer: A - The decoder may ignore z while the posterior resembles the prior
Explanation: A powerful decoder can explain observations without using informative latent variables. Separate
reconstruction likelihood, KL regularization and latent sampling. The balance between fit and latent regularization controls
whether z carries useful information.
Original practice and instructional resources 2
,PASSPOINT PRO / CS 7643 DEEP LEARNING
005. Single-head dense self-attention on a sequence of 40 tokens constructs a full attention-score
matrix. How many token-pair scores does it contain?
A. 1280
B. 780
C. 40
D. 1600
Answer: D - 1600
Explanation: Every one of the 40 queries scores every one of the 40 keys, so the matrix contains 40 squared = 1600 entries
(ignoring batch/head axes). Inspect the attention-score shape and where masking enters softmax. Masking and score
normalization together define the information an attention layer can access.
006. For a causal decoder, select the technically correct answer: what does temperature below one
typically do when sampling a softmax language-model distribution?
A. Reverse the token order
B. Make it sharper and less random
C. Make all tokens exactly equiprobable
D. Increase sequence length automatically
Answer: B - 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.
007. For a wearable-sensor forecasting prototype, select the technically correct answer: for X of
shape [B,d] and W of shape [d,h], what is XW shaped like?
A. [B,h]
B. [d,B]
C. [h,d]
D. [B,d,h]
Answer: A - [B,h]
Explanation: The contracted d dimension disappears while the batch and h output dimensions remain. Measure tensor
dimensions explicitly and test a small forward pass. This is why shape assertions are useful even when a formula seems
mathematically valid.
008. For a slow-converging classifier, select the technically correct answer: how does momentum
help gradient optimization?
A. Removes the need for a loss
B. Computes the exact Hessian each step
C. Accumulates a smoothed direction from previous gradients
D. Prevents all local minima
Answer: C - Accumulates a smoothed direction from previous gradients
Explanation: Momentum aggregates recent gradients to damp zig-zag motion and accelerate consistent directions. 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.
Original practice and instructional resources 3
CS 7643 Deep Learning
Practice Exam - Version C
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 C
100 original A-D practice questions. Each answer and rationale follows the question. Topics include theory, computation,
architecture, debugging and research design.
001. For a long-context text encoder, select the technically correct answer: what is a causal
attention mask used for?
A. Remove all positional information
B. Ensure every token sees future targets
C. Prevent a token from attending to future positions
D. Force weights to be symmetric
Answer: C - Prevent a token from attending to future positions
Explanation: Causal masking blocks access to later tokens during autoregressive prediction. Inspect the attention-score
shape and where masking enters softmax. Masking and score normalization together define the information an attention
layer can access.
002. A 2D convolution receives a 48x48 feature map with kernel 7, padding 1, stride 1, and dilation
1. What is its output spatial width?
A. 44
B. 45
C. 48
D. 43
Answer: A - 44
Explanation: Use floor((N+2P-K)/S)+1: floor((48+2(1)-7)/1)+1 = 44. Apply the exact kernel, padding, stride and dilation
formula to each spatial axis. The resulting output tensor determines which downstream layer shapes are valid.
003. For a causal decoder, select the technically correct answer: what is the role of token
embeddings?
A. Shuffle target classes at test time
B. Map discrete token IDs to continuous feature vectors
C. Determine the optimizer's step count
D. Replace a vocabulary with image pixels only
Answer: B - Map discrete token IDs to continuous feature vectors
Explanation: An embedding table assigns learned dense vectors to discrete tokens. 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.
004. For a probabilistic decoder, select the technically correct answer: why is posterior collapse a
concern in some VAEs?
A. The decoder may ignore z while the posterior resembles the prior
B. It prevents any forward pass
C. It makes all data points identical
D. It forces reconstruction loss to be negative
Answer: A - The decoder may ignore z while the posterior resembles the prior
Explanation: A powerful decoder can explain observations without using informative latent variables. Separate
reconstruction likelihood, KL regularization and latent sampling. The balance between fit and latent regularization controls
whether z carries useful information.
Original practice and instructional resources 2
,PASSPOINT PRO / CS 7643 DEEP LEARNING
005. Single-head dense self-attention on a sequence of 40 tokens constructs a full attention-score
matrix. How many token-pair scores does it contain?
A. 1280
B. 780
C. 40
D. 1600
Answer: D - 1600
Explanation: Every one of the 40 queries scores every one of the 40 keys, so the matrix contains 40 squared = 1600 entries
(ignoring batch/head axes). Inspect the attention-score shape and where masking enters softmax. Masking and score
normalization together define the information an attention layer can access.
006. For a causal decoder, select the technically correct answer: what does temperature below one
typically do when sampling a softmax language-model distribution?
A. Reverse the token order
B. Make it sharper and less random
C. Make all tokens exactly equiprobable
D. Increase sequence length automatically
Answer: B - 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.
007. For a wearable-sensor forecasting prototype, select the technically correct answer: for X of
shape [B,d] and W of shape [d,h], what is XW shaped like?
A. [B,h]
B. [d,B]
C. [h,d]
D. [B,d,h]
Answer: A - [B,h]
Explanation: The contracted d dimension disappears while the batch and h output dimensions remain. Measure tensor
dimensions explicitly and test a small forward pass. This is why shape assertions are useful even when a formula seems
mathematically valid.
008. For a slow-converging classifier, select the technically correct answer: how does momentum
help gradient optimization?
A. Removes the need for a loss
B. Computes the exact Hessian each step
C. Accumulates a smoothed direction from previous gradients
D. Prevents all local minima
Answer: C - Accumulates a smoothed direction from previous gradients
Explanation: Momentum aggregates recent gradients to damp zig-zag motion and accelerate consistent directions. 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.
Original practice and instructional resources 3