MauryaHub PYQ Practice

Introduction to Natural Language Processing (i-NLP) · Quiz 2 · Jan 2025

Introduction to Natural Language Processing (i-NLP) · Quiz 2 · Jan 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 136 MCQ · 3.0 marks

Source diagram or notation
6406533952728.Source diagram or notation
6406533952729.Source diagram or notation
6406533952730.Source diagram or notation
6406533952731.Source diagram or notation
6406533952732.Source diagram or notation
6406533952733.Source diagram or notation
      **i-NLP** **Section Id :** 64065382587 **Section Number :** 8 **Section type :** Online **Mandatory or Optional :** Mandatory **Number of Questions :** 19 **Number of Questions to be attempted :** 19 **Section Marks :** 50 **Display Number Panel :** Yes **Section Negative Marks :** 0 **Group All Questions :** No **Enable Mark as Answered Mark for Review and** No **Clear Response :** **Section Maximum Duration :** 0 **Section Minimum Duration :** 0 **Section Time In :** Minutes **Maximum Instruction Time :** 0

A published solution is not available for this question yet.

Report a correction for Q136

Question 138 MCQ · 2.0 marks

Consider the given Assertion and Reason. Choose the correct option. **Assertion (A):** FastText produces word embeddings of variable size, depending on the number of subword n-grams a word contains. **Reason (R):** FastText computes the final embedding for a word by summing or averaging the embeddings of its subword n-grams.
6406533952736.
Both Assertion (A) and Reason (R) are true, and (R) is the correct explanation of (A).
6406533952737.
Both Assertion (A) and Reason (R) are true, but (R) is not the correct explanation of (A).
6406533952738.
Assertion (A) is false, but Reason (R) is true.
6406533952739.
Assertion (A) is false, and Reason (R) is false.

A published solution is not available for this question yet.

Report a correction for Q138

Question 139 MCQ · 2.0 marks

Suppose TF-IDF is applied to a corpus of medical research papers. In a document discussing COVID-19 vaccines, which of the following terms is likely to have the highest TF-IDF score?
6406533952740.
"COVID-19"
6406533952741.
"Spike protein"
6406533952742.
"vaccine"
6406533952743.
"treatment"

A published solution is not available for this question yet.

Report a correction for Q139

Question 140 MCQ · 2.0 marks

Which of the following statements is/are INCORRECT?
6406533952752.
Recurrent neural networks can handle a sequence of arbitrary length, while feedforward neural networks can not.
6406533952753.
Training recurrent neural networks is hard because of vanishing and exploding gradient problems.
6406533952754.
Gradient clipping is an effective way of solving vanishing gradient problem.
6406533952755.
Gated recurrent units (GRUs) have fewer parameters than LSTMs

A published solution is not available for this question yet.

Report a correction for Q140

Question 141 MCQ · 2.0 marks

In an LSTM network, each gate has a specific function. Which of the following statements about the functions of LSTM gates is INCORRECT?
6406533952756.
The forget gate decides which information from the cell state should be discarded.
6406533952757.
The input gate determines what new information to add to the cell state.
6406533952758.
The output gate decides which part of the input sequence is passed to the cell state.
6406533952759.
The forget gate helps prevent the accumulation of irrelevant information in the cell state.

A published solution is not available for this question yet.

Report a correction for Q141

Question 142 MCQ · 2.0 marks

Given the following corpus with word frequencies:
Source diagram or notation
If we apply BPE, What will be the merged token after the second merge operation?
6406533952760.Source diagram or notation
6406533952761.Source diagram or notation
6406533952762.Source diagram or notation
6406533952763.Source diagram or notation

A published solution is not available for this question yet.

Report a correction for Q142

Question 143 MCQ · 2.0 marks

Which of the following statements best explains why RLHF improves over instruction fine-tuning alone?
6406533952768.
RLHF removes the need for any supervised training.
6406533952769.
RLHF creates labeled data directly from human feedback, hence does not require supplying any labeled data.
6406533952770.
RLHF ensures the model generates factually correct answers every time.
6406533952771.
RLHF allows models to optimize responses beyond the training dataset through human involvement.

A published solution is not available for this question yet.

Report a correction for Q143

Question 144 MCQ · 4.0 marks

Match the application to the correct RNN type:
Source diagram or notation
Which of the following mappings is correct?
6406533952744.
A-i, B-ii, C-iii
6406533952745.
A-ii, B-iii, C-i
6406533952746.
A-iii, B-i, C-ii
6406533952747.
A-i, B-iii, C-ii

A published solution is not available for this question yet.

Report a correction for Q144

Question 145 MCQ · 3.0 marks

In an attention-based RNN, what does the context vector represent?
6406533952748.
The concatenation of all input embeddings
6406533952749.
A weighted sum of the encoder’s hidden states
6406533952750.
The output of the decoder at each time step
6406533952751.
The hidden state of the encoder

A published solution is not available for this question yet.

Report a correction for Q145

Question 146 MCQ · 3.0 marks

You are using QLoRA to fine-tune a neural network. The weight matrix W has dimensions 1024 x 2048, and LoRA uses rank 8 matrices. Quantization is applied, reducing precision to 4bits. What is the memory required for storing the parameters introduced by QLoRA?
6406533952764.
12,000 bytes
6406533952765.
13,000 bytes
6406533952766.
12,288 bytes
6406533952767.
24,576 bytes

A published solution is not available for this question yet.

Report a correction for Q146

Question 147 MSQ · 3.0 marks

Which of the following use cases can benefit from using TF-IDF?
6406533952772.
Document similarity detection for plagiarism.
6406533952773.
Extracting the most important keywords from a document.
6406533952774.
Translating text from one language to another.
6406533952775.
Clustering similar articles in a news corpus.

A published solution is not available for this question yet.

Report a correction for Q147

Question 148 MSQ · 3.0 marks

You are comparing rule-based machine translation (RBMT), statistical machine translation(SMT), and example-based machine translation (EBMT) for translating a set of sentences between English and Spanish. Based on the characteristics of these techniques, which of the following statements are correct?
6406533952776.
RBMT heavily relies on linguistic resources such as bilingual dictionaries and grammar rules, making it less effective for low-resource language pairs.
6406533952777.
EBMT does not rely on explicit linguistic rules but instead retrieves and reuses translation examples, making it highly dependent on the quality of the example database.
6406533952778.
RBMT has a strong ability to generalize to unseen inputs due to its reliance on manually crafted linguistic rules.
6406533952779.
SMT can handle unseen words better than RBMT by leveraging subword-level probabilities for translation.
6406533952780.
EBMT achieves higher translation accuracy than SMT in domain-specific scenarios if the example database contains relevant matches.

A published solution is not available for this question yet.

Report a correction for Q148

Question 149 MSQ · 3.0 marks

Which of the following are key components of the BERT architecture?
6406533952781.
Transformer decoder layers
6406533952782.
Masked Language Modeling (MLM) objective
6406533952783.
Sequence-to-sequence training architecture
6406533952784.
Bidirectional context representation

A published solution is not available for this question yet.

Report a correction for Q149

Question 150 MSQ · 3.0 marks

In positional encoding for a transformer model, why are sine and cosine functions used for encoding positions?
6406533952785.
To ensure that the position of each token is represented uniquely with periodic functions.
6406533952786.
To represent positional embeddings in a way that scales linearly with sequence length.
6406533952787.
To allow the model to generalize to unseen sequence lengths using the periodic nature of sine and cosine.
6406533952788.
To reduce the number of parameters required for positional representations compared to learnable embeddings.

A published solution is not available for this question yet.

Report a correction for Q150

Question 151 MSQ · 3.0 marks

What happens if you increase the number of attention heads in a transformer model while keeping the embedding size constant?
6406533952789.
Each head's dimensionality decreases.
6406533952790.
The computational complexity of the attention mechanism decreases.
6406533952791.
The model learns more diverse relationships in the input sequence.
6406533952792.
The model processes longer sequences without truncation.

A published solution is not available for this question yet.

Report a correction for Q151

Question 152 MSQ · 3.0 marks

Which of the following is/are INCORRECT?:
6406533952793.
One-shot learning allows a model to correctly make predictions after seeing only a single example of the task.
6406533952794.
Zero-shot learning adapts a model without any task-specific training, relying on its ability to generalize from pre-trained knowledge.
6406533952795.
One-shot learning requires training the model with a single example from a new task to make predictions for similar cases.
6406533952796.
Zero-shot learning requires the model to have seen examples from the task it is asked to perform.

A published solution is not available for this question yet.

Report a correction for Q152

Question 153 NAT · 4.0 marks

You are analyzing a collection of movie reviews using the Bag of Words (BoW) model. Here are three sample reviews:
Source diagram or notation
The reviews were preprocessed using techniques such as lowercasing and lemmatization, resulting in 19 unique tokens in the vocabulary. Using the BoW model, you generate BoW vectors of length 19 for each review. Each BoW vector represents word frequencies without considering word order or context. Each BoW vector represents word frequencies without considering word order or context. Calculate the total number of non-zero entries across all three review vectors.Assume that each unique word from the vocabulary appears in at least one review. A word that appears in a review contributes one non-zero entry to that review's BoW vector.

A published solution is not available for this question yet.

Report a correction for Q153

Question 154 NAT · 3.0 marks

A simple RNN has 10 hidden units, and the input feature size is 5. If the output size is 8, what is the total number of trainable parameters in the RNN (excluding biases)?

A published solution is not available for this question yet.

Report a correction for Q154

Question 155 NAT · 3.0 marks

A model has 1,000,000 parameters. LoRA is applied to a 100 x 100 parameter matrix in the model and results in 400 new LoRA parameters. What will be the rank (r) of the LoRA matrices?

A published solution is not available for this question yet.

Report a correction for Q155