∑GateAndNet
PlannerSign Up

Natural Language Processing (NLP) & LLMs — Solved PYQ & Mock Arena

Topic-wise Natural Language Processing (NLP) & LLMs previous-year GATE & UGC NET questions with step-by-step LaTeX solutions

Showing 9 questions in NLP & TransformersClick A / B / C / D for instant verification
Q1GATE DA 2027 Expected MSQNatural Language Processing (NLP) & LLMsMSQHARD
+2M • 0 Neg

Which of the following statements about Transformer Self-Attention and Modern LLMs are TRUE?

☑️ Multiple Select Question — pick one or more options, then click Check Answer.
Q2GATE DA Transformer NATNatural Language Processing (NLP) & LLMsNATMEDIUM
+2M • 0 Neg

A Multi-Head Self-Attention layer has model dimension dmodel=512d_{\text{model}} = 512 and h=8h = 8 attention heads with dk=dv=dmodel/hd_k = d_v = d_{\text{model}} / h. What is the per-head key dimension dkd_k?

Q3GATE DA LLMsNatural Language Processing (NLP) & LLMsMCQEASY
+1M • -0.33

How does GPT (Decoder-Only) prevent token position ii from attending to future tokens j>ij > i during parallelized training?

⚡ Click an option above to verify instantly
Q4GATE DA NLPNatural Language Processing (NLP) & LLMsMCQMEDIUM
+2M • -0.67

An HMM Part-of-Speech tagger has ∣S∣=12|S| = 12 distinct POS tags and processes a sentence of T=20T = 20 tokens. What is the asymptotic order of operations required by the Viterbi algorithm vs naive exhaustive tag enumeration?

⚡ Click an option above to verify instantly
Q5GATE DA TransformersNatural Language Processing (NLP) & LLMsMCQMEDIUM
+2M • -0.67

For an input sequence of length nn and model hidden dimension dd (where n>dn > d), what is the time complexity of computing global Scaled Dot-Product Self-Attention for one Transformer layer?

⚡ Click an option above to verify instantly
Q6GATE DA NLPNatural Language Processing (NLP) & LLMsMCQMEDIUM
+2M • -0.67

Which embedding architecture represents each word as a bag of character nn-grams, enabling it to generate meaningful vectors for unseen Out-of-Vocabulary (OOV) words at inference time?

⚡ Click an option above to verify instantly
Q7GATE DA NLPNatural Language Processing (NLP) & LLMsMCQEASY
+1M • -0.33

In a collection of N=10,000N = 10,000 documents, the word "the" appears at least once in every single document (df=10,000\text{df} = 10,000). Using standard idf⁡(t)=log⁡10(N/dft)\operatorname{idf}(t) = \log_{10}(N / \text{df}_t) without smoothing, what is the TF-IDF weight of "the" in document dd?

⚡ Click an option above to verify instantly
Q8GATE DA NLPNatural Language Processing (NLP) & LLMsMCQEASY
+2M • -0.67

A language model achieves a per-token Cross-Entropy of H(W)=5 bits/tokenH(W) = 5\text{ bits/token} (base-22 log) on a held-out evaluation corpus. What is the Perplexity (PPL\text{PPL}) of the language model?

⚡ Click an option above to verify instantly
Q9GATE DA NLPNatural Language Processing (NLP) & LLMsMCQMEDIUM
+2M • -0.67

A corpus has vocabulary size ∣V∣=1,000|V| = 1,000. The unigram data occurs C(data)=200C(\text{data}) = 200 times, and the bigram data science occurs C(data, science)=19C(\text{data, science}) = 19 times. Under Laplace (Add-1) Smoothing, what is P(science∣data)P(\text{science} \mid \text{data})?

⚡ Click an option above to verify instantly