MauryaHub PYQ Practice

Large Language Models · Quiz 2 · Sep 2025

Large Language Models · Quiz 2 · 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 / 23 published solutions

Question 105 NAT · 3.0 marks

Suppose for a 2-component GMM, at some iteration you have
Source diagram or notation
What is the responsibility
Source diagram or notation
?

A published solution is not available for this question yet.

Report a correction for Q105

Question 107 NAT · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q107

Question 108 NAT · 2.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q108

Question 109 MCQ · 3.0 marks

Source diagram or notation
Based on the above data, answer the given subquestions.
Which token will be generated in the first merge?
6406535903010.Source diagram or notation
6406535903011.Source diagram or notation
6406535903012.Source diagram or notation
6406535903013.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q109

Question 110 NAT · 2.0 marks

A study is comparing three architectures, all trained with the same compute budget: • **Model A (Encoder-Decoder):** A 12-layer encoder and a 12-layer decoder with separate parameters. Its total size is 220 million parameters. • **Model B (Decoder-Only):** A 24-layer decoder-only model. Its total size is also approximately 220 million parameters. • **Model C (Shared Enc-Dec):** A 12-layer encoder and a 12-layer decoder where the parameters are shared (
Source diagram or notation
). Assuming that the 12-layer encoder and 12-layer decoder in Model A have an equal number of parameters, what is the approximate total parameter count (in millions) of Model C?

A published solution is not available for this question yet.

Report a correction for Q110

Question 111 NAT · 2.0 marks

Consider a text corpus being processed using the Byte Pair Encoding (BPE) algorithm. The initial vocabulary contains
Source diagram or notation
tokens (representing characters), and the corpus contains a total of
Source diagram or notation
tokens. During BPE training, the following merge operations are performed. Each merge combines all occurrences of a particular token pair into a single new token, reducing the total token count accordingly: 1. **Merge 1:** Pair ('t', 'h') appears 24 times → merged into new token 'th' 2. **Merge 2:** Pair ('i', 'n') appears 18 times → merged into new token 'in' 3. **Merge 3:** Pair ('th', 'e') appears 10 times → merged into new token 'the' 4. **Merge 4:** Pair ('i', 's') appears 8 times → merged into new token 'is' What is the final total number of tokens in the corpus after all 4 merges are completed?

A published solution is not available for this question yet.

Report a correction for Q111

Question 112 NAT · 2.0 marks

If Byte-Pair Encoding (BPE) starts with
Source diagram or notation
unique characters and performs
Source diagram or notation
merge operations, what will be the final vocabulary size?

A published solution is not available for this question yet.

Report a correction for Q112

Question 113 NAT · 2.0 marks

In a 4-token sequence, a Transformer is calculating the attention for the third Token. Its Query vector (
Source diagram or notation
) must be compared against the Key vectors (
Source diagram or notation
) of all tokens. The Causal LM mask is applied to the raw scores before the softmax function. The raw dot-product scores are: •
Source diagram or notation
•
Source diagram or notation
•
Source diagram or notation
•
Source diagram or notation
After the Causal LM mask and the subsequent softmax function are applied, what will be the final attention probability assigned to Token 4?

A published solution is not available for this question yet.

Report a correction for Q113

Question 114 MSQ · 3.0 marks

Which of the following is/are **primarily** multilingual datasets? Select all that apply.
6406535903018.
Sangraha
6406535903019.
DOLMA
6406535903020.
BookCorpus
6406535903021.
CommonCrawl

A published solution is not available for this question yet.

Report a correction for Q114

Question 115 MSQ · 2.0 marks

Which decoding method ensures the same response every time for a given prompt (assuming no randomness in model weights)? Select all that apply.
6406535903022.
Top-k with k = 3, temperature > 1
6406535903023.
Top-k with k = 3, temperature = 1
6406535903024.
Top-p with p = 0.2, Temperature > 1
6406535903025.
Top-p with p = 0.2, Temperature = 1
6406535903026.
Beam Search with beam-size = 5
6406535903027.
Beam Search with beam-size = 1

A published solution is not available for this question yet.

Report a correction for Q115

Question 116 MCQ · 2.0 marks

A data preprocessing pipeline removed data from the Common Crawl snapshot in three stages: 50% after language identification, 24% of the remaining after quality filtering, and 12% of what remained after deduplication. What percentage of the original Common Crawl snapshot remains in the final dataset? (Choose the closest number)
6406535903028.
21%
6406535903029.
66%
6406535903030.
33%
6406535903031.
50%

A published solution is not available for this question yet.

Report a correction for Q116

Question 117 MCQ · 3.0 marks

A data preprocessing pipeline needs to apply the following steps on raw Common Crawl data: 1. Fuzzy deduplication (using MinHash) 2. Toxicity detection (using ML-based classifiers) 3. PII removal (using regex patterns) 4. Exact deduplication (using hash-based matching) 5. Quality filtering (using several rule-based heuristics) 6. URL Filtering What is the most efficient sequence to apply these steps?
6406535903032.
6
Source diagram or notation
4
Source diagram or notation
1
Source diagram or notation
5
Source diagram or notation
2
Source diagram or notation
3
6406535903033.
1
Source diagram or notation
4
Source diagram or notation
2
Source diagram or notation
5
Source diagram or notation
3
Source diagram or notation
6
6406535903034.
5
Source diagram or notation
6
Source diagram or notation
4
Source diagram or notation
1
Source diagram or notation
2
Source diagram or notation
3
6406535903035.
4
Source diagram or notation
5
Source diagram or notation
6
Source diagram or notation
1
Source diagram or notation
3
Source diagram or notation
2

A published solution is not available for this question yet.

Report a correction for Q117

Question 118 MCQ · 4.0 marks

Source diagram or notation
6406535903036.
A = BART, B = T5, C = BERT, D = GPT
6406535903037.
A = T5, B = BERT, C = GPT, D = BART
6406535903038.
A = BERT, B = GPT, C = BART, D = T5
6406535903039.
A = BERT, B = BART, C = GPT, D = T5

A published solution is not available for this question yet.

Report a correction for Q118

Question 119 MCQ · 2.0 marks

Consider the scaling law:
Source diagram or notation
where
Source diagram or notation
= model parameters,
Source diagram or notation
= training tokens,
Source diagram or notation
= scale constants,
Source diagram or notation
= scaling exponents. A team trains an LLM and observes the following losses for their model: 1. Training Loss 2. Test Loss (same distribution as training) 3. Test Loss (different distribution from training) Which loss does
Source diagram or notation
represent?
6406535903040.
Both 2 and 3
6406535903041.
Both 1 and 2
6406535903042.
1 only
6406535903043.
2 only

A published solution is not available for this question yet.

Report a correction for Q119

Question 120 MCQ · 3.0 marks

A company is building a sentiment analysis system for customer reviews. They have two
6406535903044.
BART is expected to provide significantly better accuracy and is worth the extra computational cost since it's pre-trained on more diverse corruption tasks.
6406535903045.
BART is better because its decoder can verify the encoder's sentiment understanding, providing a built-in validation mechanism that improves robustness.
6406535903046.
They should use BART's encoder only and discard the decoder, which will give them the same efficiency as BERT with better pre-training.
6406535903047.
BERT is more suitable because sentiment classification only requires understanding (encoding), not generation (decoding), making it faster and more memory-efficient without sacrificing accuracy.

A published solution is not available for this question yet.

Report a correction for Q120

Question 121 MCQ · 2.0 marks

Which of the following statements best describes the fundamental difference between the unsupervised pre-training objective used in T5 (span corruption) and its supervised fine-tuning objectives such as translation or summarization?
6406535903048.
The pre-training objective is a denoising task, while the fine-tuning objective is a Causal Language Model (CLM) task.
6406535903049.
There is no fundamental difference; both are treated as "text-to-text" tasks, where the model is trained to generate a target sequence given an input sequence.
6406535903050.
The pre-training objective trains the model to fill in [MASK] tokens, while the fine-tuning objective trains the model to generate text from a [CLS] token.
6406535903051.
The pre-training objective trains the entire encoder-decoder, while the fine- tuning objective freezes the encoder and only trains the decoder.

A published solution is not available for this question yet.

Report a correction for Q121

Question 122 MCQ · 2.0 marks

Source diagram or notation
6406535903052.Source diagram or notation
6406535903053.Source diagram or notation
6406535903054.Source diagram or notation
6406535903055.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q122

Question 123 MCQ · 2.0 marks

A Transformer model is designed to handle both understanding and generation tasks. When given the input sequence
Source diagram or notation
, its attention mask allows the following: • When processing
Source diagram or notation
or
Source diagram or notation
, the model can see both
Source diagram or notation
and
Source diagram or notation
. • When processing
Source diagram or notation
, the model can see
Source diagram or notation
and
Source diagram or notation
but not
Source diagram or notation
. This attention scheme is the defining characteristic of which training objective?
6406535903056.
Causal Language Modeling (CLM)
6406535903057.
Masked Language Modeling (MLM)
6406535903058.
Denoising Objective (like BART)
6406535903059.
Prefix Language Modeling (Prefix-LM)

A published solution is not available for this question yet.

Report a correction for Q123

Question 124 MCQ · 2.0 marks

BART is an encoder-decoder model. During its denoising pre-training, what is fed as input to the decoder?
6406535903060.
The corrupted text from the encoder.
6406535903061.
The original, uncorrupted text (shifted right by one token).
6406535903062.
A sequence of [MASK] tokens, one for each original word.
6406535903063.
Nothing; the decoder starts with only the < s > token.

A published solution is not available for this question yet.

Report a correction for Q124

Question 125 MCQ · 2.0 marks

Source diagram or notation
6406535903064.Source diagram or notation
6406535903065.Source diagram or notation
6406535903066.Source diagram or notation
6406535903067.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q125

Question 126 MCQ · 2.0 marks

How does SentencePiece handle whitespace characters (like spaces) during tokenization?
6406535903068.
It only keeps whitespace that appears next to punctuation marks.
6406535903069.
It discards all whitespace as a pre-processing step.
6406535903070.
It replaces all whitespace with a special [SPACE] token.
6406535903071.
It treats whitespace as part of the text stream and encodes it, often using a symbol like
Source diagram or notation
(underscore).

A published solution is not available for this question yet.

Report a correction for Q126

Question 127 MCQ · 2.0 marks

For a layer with
Source diagram or notation
features, how many learnable parameters do BatchNorm and LayerNorm have?
6406535903072.
BatchNorm: 512, LayerNorm: 512
6406535903073.
BatchNorm: 1024, LayerNorm: 512
6406535903074.
BatchNorm: 512, LayerNorm: 1024
6406535903075.
BatchNorm: 1024, LayerNorm: 1024

A published solution is not available for this question yet.

Report a correction for Q127

Question 128 MCQ · 2.0 marks

In a standard Encoder-Decoder Transformer, where do the Query
Source diagram or notation
, Key
Source diagram or notation
, and Value
Source diagram or notation
inputs for the Decoder's Cross-Attention sub-layer come from?
6406535903076.Source diagram or notation
comes from the decoder's previous sub-layer;
Source diagram or notation
and
Source diagram or notation
come from the final hidden states of the encoder.
6406535903077.Source diagram or notation
comes from the final hidden states of the encoder;
Source diagram or notation
and
Source diagram or notation
come from the decoder's previous sub-layer.

A published solution is not available for this question yet.

Report a correction for Q128