Correct Answer: The structure and function of the human brain
Explanation:
Artificial neural networks are inspired by biological neurons in the human brain, using interconnected nodes to process information.
Incorrect! Try again.
2What is the basic computational unit of a neural network called?
Introduction to Neural Networks
Easy
A.Register
B.Pixel
C.Neuron (node)
D.Token
Correct Answer: Neuron (node)
Explanation:
The neuron, also called a node, is the basic unit that receives inputs, applies weights, and produces an output.
Incorrect! Try again.
3Who introduced the perceptron model?
Perceptron
Easy
A.John McCarthy
B.Geoffrey Hinton
C.Frank Rosenblatt
D.Alan Turing
Correct Answer: Frank Rosenblatt
Explanation:
The perceptron was introduced by Frank Rosenblatt in 1958 as an early model of a single artificial neuron.
Incorrect! Try again.
4A single-layer perceptron can only classify data that is:
Perceptron
Easy
A.Linearly separable
B.Exponentially scaled
C.Randomly distributed
D.Circularly clustered
Correct Answer: Linearly separable
Explanation:
A single-layer perceptron can only solve problems where classes can be separated by a straight line (linearly separable).
Incorrect! Try again.
5What does MLP stand for in neural networks?
MLP
Easy
A.Multi-Layer Perceptron
B.Managed Layer Protocol
C.Maximum Learning Process
D.Multiple Linear Predictor
Correct Answer: Multi-Layer Perceptron
Explanation:
MLP stands for Multi-Layer Perceptron, a network with one or more hidden layers between input and output.
Incorrect! Try again.
6Which layer in an MLP is located between the input and output layers?
MLP
Easy
A.Hidden layer
B.Recurrent layer
C.Pooling layer
D.Convolution layer
Correct Answer: Hidden layer
Explanation:
The hidden layer(s) sit between the input and output layers and enable the network to learn complex, non-linear patterns.
Incorrect! Try again.
7CNNs are most commonly used for which type of data?
CNN
Easy
A.Tabular spreadsheets
B.Images
C.SQL queries
D.Audio timestamps only
Correct Answer: Images
Explanation:
Convolutional Neural Networks (CNNs) are specialized for grid-like data such as images, detecting spatial features like edges and shapes.
Incorrect! Try again.
8What does the 'C' in CNN stand for?
CNN
Easy
A.Convolutional
B.Computational
C.Connected
D.Cognitive
Correct Answer: Convolutional
Explanation:
The 'C' in CNN stands for Convolutional, referring to the convolution operation used to extract features from input data.
Incorrect! Try again.
9What type of data are Recurrent Neural Networks (RNNs) especially suited for?
RNN
Easy
A.Unrelated data points
B.Sequential data
C.Fixed-size vectors only
D.Static images
Correct Answer: Sequential data
Explanation:
RNNs are designed for sequential data like text or time series, because they maintain a memory of previous inputs.
Incorrect! Try again.
10What feature allows an RNN to remember information from previous steps in a sequence?
RNN
Easy
A.A hidden state that is passed forward through time steps and updated at each step to retain past context
B.Convolution filters
C.Max pooling
D.One-hot encoding
Correct Answer: A hidden state that is passed forward through time steps and updated at each step to retain past context
Explanation:
RNNs use a hidden state carried across time steps, allowing information from earlier inputs to influence later outputs.
Incorrect! Try again.
11Which mechanism is the core innovation of the Transformer architecture?
Transformer Architecture and Applications
Easy
A.Recurrence
B.Convolution
C.Pooling
D.Self-attention
Correct Answer: Self-attention
Explanation:
The Transformer relies on the self-attention mechanism to weigh the importance of different words in a sequence in parallel.
Incorrect! Try again.
12What is the title of the 2017 paper that introduced the Transformer?
Transformer Architecture and Applications
Easy
A.Long Short-Term Memory
B.Attention Is All You Need
C.ImageNet Classification
D.Deep Residual Learning
Correct Answer: Attention Is All You Need
Explanation:
The Transformer was introduced in the 2017 paper titled "Attention Is All You Need" by Vaswani et al.
Incorrect! Try again.
13What does NLP stand for?
Introduction to NLP
Easy
A.Numeric Language Parsing
B.Neural Learning Protocol
C.Natural Language Processing
D.Nested Loop Programming
Correct Answer: Natural Language Processing
Explanation:
NLP stands for Natural Language Processing, the field concerned with enabling computers to understand and generate human language.
Incorrect! Try again.
14Which NLP phase deals with the grammatical structure of sentences?
NLP phases
Easy
A.Phonetic analysis
B.Discourse analysis
C.Syntactic analysis
D.Pragmatic analysis
Correct Answer: Syntactic analysis
Explanation:
Syntactic analysis (parsing) checks how words are arranged grammatically to form valid sentences.
Incorrect! Try again.
15What is tokenization in NLP?
Tokenization
Easy
A.Encrypting text into cipher form
B.Translating text into another language
C.Converting text into audio
D.Breaking text into smaller units such as words or subwords
Correct Answer: Breaking text into smaller units such as words or subwords
Explanation:
Tokenization splits text into smaller pieces called tokens (words, subwords, or characters) for further processing.
Incorrect! Try again.
16What do word embeddings represent?
Embeddings
Easy
A.Words as audio waveforms
B.Words as raw ASCII codes
C.Words as dense numerical vectors capturing meaning
D.Words as fixed image pixels
Correct Answer: Words as dense numerical vectors capturing meaning
Explanation:
Word embeddings map words into dense vectors where similar meanings are located close together in the vector space.
Incorrect! Try again.
17What does the attention mechanism help a model do?
Attention
Easy
A.Convert text into images
B.Increase the file size of the model
C.Reduce the total number of layers
D.Focus on the most relevant parts of the input
Correct Answer: Focus on the most relevant parts of the input
Explanation:
Attention lets a model assign different weights to input parts, focusing on the most relevant information for a task.
Incorrect! Try again.
18What does the 'G' in GPT stand for?
Language models (BERT, GPT)
Easy
A.Grouped
B.Guided
C.Graphical
D.Generative
Correct Answer: Generative
Explanation:
GPT stands for Generative Pre-trained Transformer, where 'Generative' refers to its ability to generate text.
Incorrect! Try again.
19BERT is designed to read text in which manner?
Language models (BERT, GPT)
Easy
A.One character at a time
B.Bidirectionally, considering both left and right context of a word at the same time to understand meaning
C.Only right to left
D.Only left to right
Correct Answer: Bidirectionally, considering both left and right context of a word at the same time to understand meaning
Explanation:
BERT (Bidirectional Encoder Representations from Transformers) reads text in both directions to better understand context.
Incorrect! Try again.
20Which NLP task involves determining whether a piece of text is positive, negative, or neutral?
NLP use cases (sentiment analysis, translation, summarization)
Easy
A.Machine translation
B.Named entity recognition
C.Text summarization
D.Sentiment analysis
Correct Answer: Sentiment analysis
Explanation:
Sentiment analysis classifies the emotional tone of text as positive, negative, or neutral.
Incorrect! Try again.
21A single perceptron uses a step activation and weights , , bias . For input , what is the output if the threshold is at ?
Perceptron
Medium
A.1
B.0.5
C.0
D.-0.2
Correct Answer: 1
Explanation:
The weighted sum is . Since , the step function outputs .
Incorrect! Try again.
22Why can a single-layer perceptron not solve the XOR problem?
Perceptron
Medium
A.XOR is not linearly separable
B.XOR uses continuous outputs only
C.XOR requires more than two inputs
D.XOR needs a sigmoid activation
Correct Answer: XOR is not linearly separable
Explanation:
A single perceptron draws only a linear decision boundary. XOR classes cannot be separated by one straight line, so it requires a hidden layer.
Incorrect! Try again.
23During backpropagation, what is primarily computed to update the network weights?
Introduction to Neural Networks
Medium
A.Second derivative of the activation
B.Average of all layer outputs
C.Variance of the input features
D.Gradient of the loss with respect to each weight
Correct Answer: Gradient of the loss with respect to each weight
Explanation:
Backpropagation applies the chain rule to compute for each weight, which gradient descent then uses to update weights.
Incorrect! Try again.
24Which property of non-linear activation functions makes a multi-layer perceptron more powerful than a single linear layer?
MLP
Medium
A.They let the network approximate non-linear functions
B.They reduce the number of parameters needed
C.They guarantee faster convergence always
D.They remove the need for a bias term
Correct Answer: They let the network approximate non-linear functions
Explanation:
Without non-linearities, stacking linear layers collapses to one linear map. Non-linear activations enable the MLP to model complex, non-linear relationships.
Incorrect! Try again.
25A fully connected layer maps 128 inputs to 64 outputs. Ignoring bias, how many weight parameters does it contain?
MLP
Medium
A.192
B.2048
C.4096
D.8192
Correct Answer: 8192
Explanation:
A dense layer has weights: .
Incorrect! Try again.
26Applying a convolution filter with stride 1 and no padding to a input produces an output of what spatial size?
CNN
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Output size , giving a feature map.
Incorrect! Try again.
27What is the main purpose of a pooling layer in a CNN?
CNN
Medium
A.Normalize the input pixel values
B.Reduce spatial dimensions and add invariance
C.Introduce non-linearity into the model
D.Increase the number of channels
Correct Answer: Reduce spatial dimensions and add invariance
Explanation:
Pooling (e.g. max pooling) downsamples feature maps, lowering computation and giving small translation invariance.
Incorrect! Try again.
28Why is parameter sharing in convolutional layers advantageous compared to fully connected layers for images?
CNN
Medium
A.It removes the need for activation functions
B.It allows variable-length text inputs
C.It guarantees the network cannot overfit
D.The same filter detects a feature anywhere in the image with fewer parameters
Correct Answer: The same filter detects a feature anywhere in the image with fewer parameters
Explanation:
A convolution slides one shared kernel across the whole image, drastically reducing parameters while detecting a feature regardless of its position.
Incorrect! Try again.
29What problem do LSTM and GRU units specifically address in standard RNNs?
RNN
Medium
A.The absence of a loss function
B.The lack of any recurrent connection
C.The vanishing gradient over long sequences
D.The inability to process numeric data
Correct Answer: The vanishing gradient over long sequences
Explanation:
Gating mechanisms in LSTM/GRU preserve gradient flow across many time steps, helping capture long-range dependencies that plain RNNs lose.
Incorrect! Try again.
30In an RNN, what makes it suitable for sequential data compared to a plain MLP?
RNN
Medium
A.It maintains a hidden state passed across time steps
B.It uses convolution over the sequence
C.It processes all tokens fully in parallel
D.It requires no weight training
Correct Answer: It maintains a hidden state passed across time steps
Explanation:
RNNs feed the previous hidden state into the next step, giving them memory of earlier elements in the sequence.
Incorrect! Try again.
31Why do Transformers require positional encodings to be added to input embeddings?
Transformer Architecture and Applications
Medium
A.Embeddings cannot store word meaning
B.Positional encodings replace the need for weights
C.Attention cannot handle more than 512 tokens
D.Self-attention itself is order-agnostic
Correct Answer: Self-attention itself is order-agnostic
Explanation:
Self-attention treats inputs as a set, so positional encodings inject information about token order into the model.
Incorrect! Try again.
32What is a key computational advantage of Transformers over RNNs when training on long sequences?
Transformer Architecture and Applications
Medium
A.They need no attention mechanism
B.Tokens can be processed in parallel
C.They avoid using any matrix multiplication
D.They use far fewer parameters
Correct Answer: Tokens can be processed in parallel
Explanation:
The correct option follows directly from the given concept and definitions.
Incorrect! Try again.
33In scaled dot-product attention, the score is divided by mainly to:
Attention
Medium
A.Prevent large dot products from saturating the softmax
B.Reduce the number of attention heads
C.Guarantee the weights sum to zero
D.Convert scores into embeddings
Correct Answer: Prevent large dot products from saturating the softmax
Explanation:
Scaling by keeps the dot products from growing too large, avoiding extremely small softmax gradients and stabilizing training.
Incorrect! Try again.
34What is the primary benefit of using multi-head attention instead of a single attention head?
Attention
Medium
A.It reduces the sequence length automatically
B.It eliminates the positional encoding requirement
C.It lets the model attend to different representation subspaces jointly
D.It removes the need for feed-forward layers
Correct Answer: It lets the model attend to different representation subspaces jointly
Explanation:
Multiple heads learn to focus on different relationships and features in parallel, giving the model richer contextual representations.
Incorrect! Try again.
35Why do modern language models often use subword tokenization (e.g. Byte-Pair Encoding) instead of whole-word tokenization?
Tokenization
Medium
A.It only works for numeric inputs
B.It removes the need for embeddings
C.It handles rare and unknown words while limiting vocabulary size
D.It always produces exactly one token per sentence
Correct Answer: It handles rare and unknown words while limiting vocabulary size
Explanation:
Subword tokenization splits rare words into known pieces, avoiding out-of-vocabulary problems while keeping the vocabulary compact.
Incorrect! Try again.
36In word embeddings, why can the relationship hold?
Embeddings
Medium
A.Semantic relationships are captured as directions in vector space
B.Embeddings are randomly assigned and fixed
C.Words are stored as one-hot vectors
D.Each word maps to a single scalar value
Correct Answer: Semantic relationships are captured as directions in vector space
Explanation:
Dense embeddings place semantically related words such that analogies become consistent vector offsets in the embedding space.
Incorrect! Try again.
37Which NLP phase is primarily concerned with the grammatical structure and arrangement of words in a sentence?
NLP phases
Medium
A.Discourse integration
B.Syntactic analysis
C.Pragmatic analysis
D.Lexical analysis
Correct Answer: Syntactic analysis
Explanation:
Syntactic (parsing) analysis checks grammar and word arrangement, whereas semantics handles meaning and pragmatics handles context of use.
Incorrect! Try again.
38Consider the sentences "I saw the man with a telescope." Which NLP challenge does this best illustrate?
Introduction to NLP
Medium
A.Ambiguity in interpretation
B.Missing stop words
C.Character encoding errors
D.Tokenization failure
Correct Answer: Ambiguity in interpretation
Explanation:
The phrase can mean the man had a telescope or the observer used one. This structural/semantic ambiguity is a core challenge in NLP.
Incorrect! Try again.
39What is a key architectural difference between BERT and GPT?
Language models (BERT, GPT)
Medium
A.BERT has no attention mechanism
B.BERT is bidirectional while GPT is left-to-right
C.BERT is trained without any data
D.GPT cannot generate text
Correct Answer: BERT is bidirectional while GPT is left-to-right
Explanation:
BERT uses a masked bidirectional encoder seeing both sides of a token, while GPT is an autoregressive decoder predicting the next token left to right.
Incorrect! Try again.
40BERT's pre-training uses a Masked Language Model objective. What does this involve?
Language models (BERT, GPT)
Medium
A.Predicting randomly hidden tokens from surrounding context
B.Removing all punctuation from text
C.Translating sentences into another language
D.Predicting the next word one at a time
Correct Answer: Predicting randomly hidden tokens from surrounding context
Explanation:
In MLM, some tokens are masked and the model learns to predict them using bidirectional context, enabling deep contextual representations.
Incorrect! Try again.
41A single-layer perceptron with a step activation function is trained on the XOR dataset. After many epochs, the training loss fails to reach zero. What is the fundamental reason?
Perceptron
Hard
A.The step function's zero gradient prevents any weight update
B.XOR is not linearly separable, so no single hyperplane can classify all four points
C.The dataset is too small for the perceptron to generalize
D.The learning rate is too high, causing oscillation around the minimum
Correct Answer: XOR is not linearly separable, so no single hyperplane can classify all four points
Explanation:
A single perceptron can only learn linearly separable functions. XOR requires a non-linear decision boundary, which needs at least one hidden layer (MLP) to solve.
Incorrect! Try again.
42Consider an MLP where every hidden neuron uses a linear (identity) activation function across all layers. What is the expressive power of this network?
MLP
Hard
A.It collapses to an equivalent single linear transformation regardless of depth
B.It can approximate any continuous function given enough neurons
C.It can learn XOR because of the multiple layers
D.It behaves like a deep non-linear classifier due to weight stacking
Correct Answer: It collapses to an equivalent single linear transformation regardless of depth
Explanation:
Composition of linear maps is itself linear. Without non-linear activations, any number of layers reduces to a single linear layer, so depth adds no expressive power.
Incorrect! Try again.
43During backpropagation in a deep sigmoid network, gradients in early layers become extremely small. Which statement best explains this vanishing gradient phenomenon?
Introduction to Neural Networks
Hard
A.The chain rule adds gradients, causing them to average toward zero
B.Large learning rates saturate the sigmoid at its extremes
C.Sigmoid outputs are always positive, forcing weights to grow unbounded
D.Repeated multiplication of derivatives bounded by shrinks gradients exponentially with depth
Correct Answer: Repeated multiplication of derivatives bounded by shrinks gradients exponentially with depth
Explanation:
The sigmoid derivative has a maximum of . Backpropagation multiplies these small factors across layers, so gradients decay exponentially with depth, stalling early-layer learning.
Incorrect! Try again.
44A CNN layer has an input of size , uses a kernel with stride and no padding. What is the spatial dimension of the output feature map?
CNN
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Output size . So the feature map is .
Incorrect! Try again.
45Why does parameter sharing in convolutional layers provide an advantage over fully connected layers for image data?
CNN
Hard
A.It removes the vanishing gradient problem in deep networks
B.It eliminates the need for pooling layers entirely
C.It guarantees rotation invariance of learned features
D.It drastically reduces parameters and enforces translation-equivariant feature detection
Correct Answer: It drastically reduces parameters and enforces translation-equivariant feature detection
Explanation:
The same kernel slides across all positions, so a feature detected in one location is detected anywhere (translation equivariance), while sharing weights greatly reduces the parameter count versus dense layers.
Incorrect! Try again.
46An LSTM is preferred over a vanilla RNN for long sequences primarily because:
RNN
Hard
A.It uses fewer parameters and trains faster on all tasks
B.It replaces the tanh activation with ReLU to avoid saturation
C.Its gating and additive cell state allow gradients to flow without vanishing across many steps
D.It processes the entire sequence in parallel like a Transformer
Correct Answer: Its gating and additive cell state allow gradients to flow without vanishing across many steps
Explanation:
The LSTM's cell state has an additive update controlled by gates, creating a near-constant error carousel that preserves gradient flow across long time steps, mitigating the vanishing gradient problem.
Incorrect! Try again.
47In scaled dot-product attention, the dot products of queries and keys are divided by . What problem does this scaling primarily address?
Transformer Architecture and Applications
Hard
A.It ensures the attention weights sum to one across the sequence
B.It normalizes the output to a valid probability distribution
C.It reduces the computational cost of the matrix multiplication
D.For large , large dot products push softmax into regions with vanishingly small gradients
Correct Answer: For large , large dot products push softmax into regions with vanishingly small gradients
Explanation:
With large , dot products grow in magnitude, saturating the softmax and producing tiny gradients. Dividing by keeps variance controlled, preserving useful gradients during training.
Incorrect! Try again.
48Why do Transformers require explicit positional encodings while RNNs do not?
Transformer Architecture and Applications
Hard
A.RNNs cannot process sequences without positional signals either
B.Transformers use softmax which discards magnitude information
C.Self-attention is permutation-invariant and has no inherent notion of token order
D.Positional encodings replace the need for an embedding layer
Correct Answer: Self-attention is permutation-invariant and has no inherent notion of token order
Explanation:
Self-attention treats inputs as an unordered set, computing the same output regardless of token order. Positional encodings inject order information. RNNs process tokens sequentially, so order is implicit.
Incorrect! Try again.
49Multi-head attention with heads splits the model dimension so each head operates on . What is the main benefit of using multiple heads instead of one large head?
Attention
Hard
A.It makes attention weights deterministic and non-learnable
B.It reduces total computation to of single-head attention
C.It removes the need for the feed-forward sublayer
D.Different heads can jointly attend to information from different representation subspaces
Correct Answer: Different heads can jointly attend to information from different representation subspaces
Explanation:
Each head learns distinct query/key/value projections, letting the model capture multiple relationship types (e.g., syntactic and semantic) simultaneously, which a single attention head averages away.
Incorrect! Try again.
50BERT and GPT differ fundamentally in their pretraining objectives and attention. Which statement correctly contrasts them?
B.BERT uses bidirectional attention with masked LM; GPT uses causal (left-to-right) attention with next-token prediction
C.BERT is autoregressive; GPT uses masked language modeling
D.Both use identical bidirectional attention but differ only in tokenizer
Correct Answer: BERT uses bidirectional attention with masked LM; GPT uses causal (left-to-right) attention with next-token prediction
Explanation:
BERT masks tokens and attends to both left and right context (encoder-style). GPT is a decoder that predicts the next token using only preceding context via causal masking, making it naturally generative.
Incorrect! Try again.
51Subword tokenization schemes like Byte-Pair Encoding (BPE) are preferred over word-level tokenization mainly because they:
Tokenization
Hard
A.Eliminate the need for an embedding matrix
B.Guarantee one token per morpheme in every language
C.Handle rare and out-of-vocabulary words by decomposing them into known subword units
D.Always produce shorter sequences than word tokenization
Correct Answer: Handle rare and out-of-vocabulary words by decomposing them into known subword units
Explanation:
BPE builds a vocabulary of frequent subword units, so unseen or rare words are split into known pieces. This avoids OOV tokens while keeping vocabulary size manageable, unlike fixed word vocabularies.
Incorrect! Try again.
52A key limitation of static word embeddings like Word2Vec compared to contextual embeddings from BERT is that static embeddings:
Embeddings
Hard
A.Require a Transformer encoder to be computed
B.Assign a single fixed vector per word, ignoring polysemy across contexts
C.Cannot be trained on large corpora efficiently
D.Produce embeddings that violate the triangle inequality
Correct Answer: Assign a single fixed vector per word, ignoring polysemy across contexts
Explanation:
Static embeddings map each word to one vector regardless of usage, so "bank" (river vs. money) shares a representation. Contextual models like BERT generate different vectors depending on surrounding context.
Incorrect! Try again.
53In Word2Vec, the famous analogy works because the embedding space captures:
Embeddings
Hard
A.Character-level spelling similarities between words
B.Exact one-hot encodings of each word
C.Frequency counts of word co-occurrence only
D.Consistent linear directions encoding semantic relationships
Correct Answer: Consistent linear directions encoding semantic relationships
Explanation:
Word2Vec learns a space where relational offsets (like gender or royalty) are approximately consistent vector directions, enabling linear analogy arithmetic between word vectors.
Incorrect! Try again.
54Consider the pipeline: raw text tokens POS tags parse tree meaning representation. Which classical NLP phase corresponds to constructing the parse tree?
NLP phases
Hard
A.Pragmatic analysis
B.Discourse integration
C.Syntactic analysis (parsing)
D.Lexical analysis
Correct Answer: Syntactic analysis (parsing)
Explanation:
Syntactic analysis (parsing) determines the grammatical structure of a sentence, producing a parse tree. Lexical handles tokens, semantic handles meaning, and pragmatic handles context-dependent interpretation.
Incorrect! Try again.
55The sentence "The trophy did not fit in the suitcase because it was too big" requires resolving what "it" refers to. This challenge is primarily handled by which NLP capability?
NLP phases
Hard
A.Tokenization of pronouns
B.Coreference resolution using semantic and pragmatic reasoning
C.Morphological analysis
D.Part-of-speech tagging
Correct Answer: Coreference resolution using semantic and pragmatic reasoning
Explanation:
Determining that "it" refers to the trophy requires world knowledge and reasoning about size relationships. This is coreference resolution, which draws on semantic and pragmatic understanding, not mere syntax.
Incorrect! Try again.
56In abstractive summarization compared to extractive summarization, the model:
NLP use cases (sentiment analysis, translation, summarization)
Hard
A.Requires no language generation capability
B.Only removes stop words from the original text
C.Selects and concatenates the most important source sentences verbatim
D.Generates novel phrasing that may not appear verbatim in the source
Correct Answer: Generates novel phrasing that may not appear verbatim in the source
Explanation:
Extractive summarization copies salient sentences from the source. Abstractive summarization paraphrases and generates new text, potentially using words not in the original, which requires generative modeling.
Incorrect! Try again.
57A sentiment classifier labels "This movie is not bad at all" as negative. What linguistic phenomenon most likely caused this error?
NLP use cases (sentiment analysis, translation, summarization)
Hard
A.The softmax temperature was miscalibrated
B.The embedding dimension was too large
C.The model failed to handle negation and its scope over the sentiment word
D.Tokenization split the contractions incorrectly
Correct Answer: The model failed to handle negation and its scope over the sentiment word
Explanation:
"Not bad" is actually positive. Models that rely on the presence of negative words like "bad" without correctly modeling negation scope misclassify such sentences. Handling negation is a known hard problem in sentiment analysis.
Incorrect! Try again.
58A retrieval-augmented (RAG) chatbot is chosen over a purely generative LLM chatbot for an enterprise knowledge base primarily to:
Building chatbots and digital assistants
Hard
A.Eliminate the need for any language model
B.Reduce the token embedding dimension for faster inference
C.Guarantee grammatically perfect output in all languages
D.Ground responses in retrieved documents, reducing hallucination and enabling up-to-date facts
Correct Answer: Ground responses in retrieved documents, reducing hallucination and enabling up-to-date facts
Explanation:
RAG retrieves relevant documents and conditions generation on them, grounding answers in a factual source. This reduces hallucination and allows knowledge updates without retraining the underlying LLM.
Incorrect! Try again.
59The self-attention mechanism has a computational and memory complexity that scales as which function of sequence length ?
Transformer Architecture and Applications
Hard
A. linear in sequence length
B. log-linear
C. quadratic in sequence length
D. constant regardless of length
Correct Answer: quadratic in sequence length
Explanation:
Self-attention computes pairwise scores between all tokens, forming an attention matrix. Both time and memory therefore scale as , which motivates efficient attention variants for long sequences.
Incorrect! Try again.
60A bidirectional RNN improves over a unidirectional RNN for sequence tagging tasks because it:
RNN
Hard
A.Encodes each token using both past and future context in the sequence
B.Can generate text autoregressively during inference
C.Trains with half the parameters of a unidirectional RNN
D.Removes recurrence, enabling full parallel computation
Correct Answer: Encodes each token using both past and future context in the sequence
Explanation:
A bidirectional RNN runs two RNNs (forward and backward) and concatenates their states, so each token's representation incorporates both preceding and following context, which is valuable for tagging tasks like NER.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →