MauryaHub PYQ Practice

Large Language Models · Quiz 1 · Sep 2025

Large Language Models · Quiz 1 · Sep 2025

← Course papers · Start practice / exam

Questions and published explanations below are available without starting a test. Some questions may not have a published solution yet.

0 / 19 published solutions

Question 173 MCQ · 2.0 marks

Source diagram or notation
6406535121364.
To increase the numerical precision of the attention scores.
6406535121365.
To reduce the overall computational cost of the attention mechanism.
6406535121366.
To ensure that the sum of the attention scores for each query equals 1.
6406535121367.
To avoid numerical issues and loss of gradients during training.

A published solution is not available for this question yet.

Report a correction for Q173

Question 174 MCQ · 2.0 marks

Which of the following is true regarding sinusoidal encoding?
6406535121368.
The encoding vector of words present at even positions in the given text sequence uses sine, and the encoding vector of words present at odd positions uses cosine.
6406535121369.
The encoding vector of words present at odd positions in the given text sequence uses sine, and the encoding vector of words present at even positions uses cosine.
6406535121370.
The encoding vector for each word position contains values computed using both sine (for even dimensions) and cosine (for odd dimensions).

A published solution is not available for this question yet.

Report a correction for Q174

Question 175 MCQ · 2.0 marks

Source diagram or notation
6406535121375.
‘content’
6406535121376.
‘je’
6406535121377.
‘suis’
6406535121378.
‘heureux’

A published solution is not available for this question yet.

Report a correction for Q175

Question 176 MCQ · 2.0 marks

Source diagram or notation
6406535121379.Source diagram or notation
6406535121380.Source diagram or notation
6406535121381.Source diagram or notation
6406535121382.Source diagram or notation
6406535121383.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q176

Question 177 MCQ · 2.0 marks

In the context of language model training, teacher forcing is a technique where:
6406535121384.
The correct target tokens from the training data are used as input for the next time step, regardless of the model’s prediction.
6406535121385.
The model’s predictions are used as the input for the next time step, even if they are incorrect.
6406535121386.
The model is forced to learn without any pre-trained weights.
6406535121387.
The model is forced to correct the input data.

A published solution is not available for this question yet.

Report a correction for Q177

Question 178 MCQ · 2.0 marks

Source diagram or notation
6406535121397.Source diagram or notation
6406535121398.Source diagram or notation
6406535121399.Source diagram or notation
6406535121400.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q178

Question 179 MCQ · 3.0 marks

Source diagram or notation
6406535121371.Source diagram or notation
6406535121372.Source diagram or notation
6406535121373.Source diagram or notation
6406535121374.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q179

Question 180 MCQ · 3.0 marks

Source diagram or notation
6406535121388.Source diagram or notation
6406535121389.Source diagram or notation
6406535121390.Source diagram or notation
6406535121391.Source diagram or notation
6406535121392.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q180

Question 181 MCQ · 3.0 marks

For a vocabulary size of 10, how many beams will there be in greedy search, beam search with beam size 3, and exhaustive search at step 1 and step 3, respectively?
6406535121401.
Step 1: Greedy: 1, Beam: 1, Exhaustive: 1 Step 3: Greedy: 1, Beam: 1, Exhaustive: 1
6406535121402.
Step 1: Greedy: 1, Beam: 3, Exhaustive: 10 Step 3: Greedy: 1, Beam: 3, Exhaustive: 10
6406535121403.
Step 1: Greedy: 1, Beam: 3, Exhaustive: 1 Step 3: Greedy: 1, Beam: 3, Exhaustive: 100
6406535121404.
Step 1: Greedy: 1, Beam: 3, Exhaustive: 10 Step 3: Greedy: 1, Beam: 3, Exhaustive: 1000

A published solution is not available for this question yet.

Report a correction for Q181

Question 182 MSQ · 2.0 marks

Which of the following decoding strategies is/are inherently non-deterministic?
6406535121393.
Beam
6406535121394.
Greedy
6406535121395.
Nucleus
6406535121396.
Exhaustive

A published solution is not available for this question yet.

Report a correction for Q182

Question 183 MSQ · 2.0 marks

Which of the following statements about multiple attention heads in a Transformer are true?
6406535121405.
They allow learning diverse local/global relations.
6406535121406.
They reduce memory usage compared to one head.
6406535121407.
Increasing the number of heads while keeping dmodel fixed, decreases the dimensionality handled by each head.
6406535121408.
All heads necessarily learn completely independent information about the input.

A published solution is not available for this question yet.

Report a correction for Q183

Question 184 MSQ · 4.0 marks

Which of the following statements about the Transformer architecture are true?
6406535121409.
Masking (look-ahead mask) is applied in every decoder self-attention layer, not just the first one.
6406535121410.
Token embeddings are used in the encoder but not in the decoder.
6406535121411.
Positional encoding is required only in the encoder, not in the decoder.
6406535121412.
Token embeddings are used in both the encoder and the decoder.
6406535121413.
Positional encodings are added to the input embeddings in both the encoder and the decoder.

A published solution is not available for this question yet.

Report a correction for Q184

Question 185 MSQ · 4.0 marks

Source diagram or notation
6406535121414.
Beam search with beam size 2 will keep either A or B as per probability whereas Top-2 sampling will keep both A and B.
6406535121415.
Beam search with beam size 2 will keep both A and B whereas Top-2 sampling will keep either A or B.
6406535121416.
Beam search with beam size 2 will randomly choose any two tokens, whereas Top-2 sampling will always pick the two least probable tokens.
6406535121417.
Beam search with beam size 2 will always keep the top-2 most probable tokens, whereas Top-2 sampling will restrict choices to top-2 tokens and then sample one probabilistically.

A published solution is not available for this question yet.

Report a correction for Q185

Question 186 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q186

Question 187 NAT · 3.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q187

Question 188 NAT · 2.0 marks

Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q188

Question 189 NAT · 3.0 marks

Source diagram or notation
How many next-token prediction targets are generated during training a full batch?

A published solution is not available for this question yet.

Report a correction for Q189

Question 190 NAT · 2.0 marks

Source diagram or notation
For one sequence, how many non-zero attention scores remain in the masked attention score matrix (per head)?

A published solution is not available for this question yet.

Report a correction for Q190

Question 191 NAT · 2.0 marks

Source diagram or notationSource diagram or notation

A published solution is not available for this question yet.

Report a correction for Q191