Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 4 MCQsIntroduction to deep neural networks; Modern NLP
Question 1 of 60 · Introduction to Neural Networks · Easy
What is a neural network primarily inspired by?
Not quite. Try another option.
Answer: The structure and function of the human brain
Artificial neural networks are inspired by biological neurons in the human brain, using interconnected nodes to process information.
Question 2 of 60 · Introduction to Neural Networks · Easy
What is the basic computational unit of a neural network called?
Not quite. Try another option.
Answer: Neuron (node)
The neuron, also called a node, is the basic unit that receives inputs, applies weights, and produces an output.
Question 3 of 60 · Perceptron · Easy
Who introduced the perceptron model?
Not quite. Try another option.
Answer: Frank Rosenblatt
The perceptron was introduced by Frank Rosenblatt in 1958 as an early model of a single artificial neuron.
Question 4 of 60 · Perceptron · Easy
A single-layer perceptron can only classify data that is:
Not quite. Try another option.
Answer: Linearly separable
A single-layer perceptron can only solve problems where classes can be separated by a straight line (linearly separable).
Question 5 of 60 · MLP · Easy
What does MLP stand for in neural networks?
Not quite. Try another option.
Answer: Multi-Layer Perceptron
MLP stands for Multi-Layer Perceptron, a network with one or more hidden layers between input and output.
Question 6 of 60 · MLP · Easy
Which layer in an MLP is located between the input and output layers?
Not quite. Try another option.
Answer: Hidden layer
The hidden layer(s) sit between the input and output layers and enable the network to learn complex, non-linear patterns.
Question 7 of 60 · CNN · Easy
CNNs are most commonly used for which type of data?
Not quite. Try another option.
Answer: Images
Convolutional Neural Networks (CNNs) are specialized for grid-like data such as images, detecting spatial features like edges and shapes.
Question 8 of 60 · CNN · Easy
What does the 'C' in CNN stand for?
Not quite. Try another option.
Answer: Convolutional
The 'C' in CNN stands for Convolutional, referring to the convolution operation used to extract features from input data.
Question 9 of 60 · RNN · Easy
What type of data are Recurrent Neural Networks (RNNs) especially suited for?
Not quite. Try another option.
Answer: Sequential data
RNNs are designed for sequential data like text or time series, because they maintain a memory of previous inputs.
Question 10 of 60 · RNN · Easy
What feature allows an RNN to remember information from previous steps in a sequence?
Not quite. Try another option.
Answer: A hidden state that is passed forward through time steps and updated at each step to retain past context
RNNs use a hidden state carried across time steps, allowing information from earlier inputs to influence later outputs.
Question 11 of 60 · Transformer Architecture and Applications · Easy
Which mechanism is the core innovation of the Transformer architecture?
Not quite. Try another option.
Answer: Self-attention
The Transformer relies on the self-attention mechanism to weigh the importance of different words in a sequence in parallel.
Question 12 of 60 · Transformer Architecture and Applications · Easy
What is the title of the 2017 paper that introduced the Transformer?
Not quite. Try another option.
Answer: Attention Is All You Need
The Transformer was introduced in the 2017 paper titled "Attention Is All You Need" by Vaswani et al.
Question 13 of 60 · Introduction to NLP · Easy
What does NLP stand for?
Not quite. Try another option.
Answer: Natural Language Processing
NLP stands for Natural Language Processing, the field concerned with enabling computers to understand and generate human language.
Question 14 of 60 · NLP phases · Easy
Which NLP phase deals with the grammatical structure of sentences?
Not quite. Try another option.
Answer: Syntactic analysis
Syntactic analysis (parsing) checks how words are arranged grammatically to form valid sentences.
Question 15 of 60 · Tokenization · Easy
What is tokenization in NLP?
Not quite. Try another option.
Answer: Breaking text into smaller units such as words or subwords
Tokenization splits text into smaller pieces called tokens (words, subwords, or characters) for further processing.
Question 16 of 60 · Embeddings · Easy
What do word embeddings represent?
Not quite. Try another option.
Answer: Words as dense numerical vectors capturing meaning
Word embeddings map words into dense vectors where similar meanings are located close together in the vector space.
Question 17 of 60 · Attention · Easy
What does the attention mechanism help a model do?
Not quite. Try another option.
Answer: Focus on the most relevant parts of the input
Attention lets a model assign different weights to input parts, focusing on the most relevant information for a task.
Question 18 of 60 · Language models (BERT, GPT) · Easy
What does the 'G' in GPT stand for?
Not quite. Try another option.
Answer: Generative
GPT stands for Generative Pre-trained Transformer, where 'Generative' refers to its ability to generate text.
Question 19 of 60 · Language models (BERT, GPT) · Easy
BERT is designed to read text in which manner?
Not quite. Try another option.
Answer: Bidirectionally, considering both left and right context of a word at the same time to understand meaning
BERT (Bidirectional Encoder Representations from Transformers) reads text in both directions to better understand context.
Question 20 of 60 · NLP use cases (sentiment analysis, translation, summarization) · Easy
Which NLP task involves determining whether a piece of text is positive, negative, or neutral?
Not quite. Try another option.
Answer: Sentiment analysis
Sentiment analysis classifies the emotional tone of text as positive, negative, or neutral.
Question 21 of 60 · Perceptron · Medium
A single perceptron uses a step activation and weights , , bias . For input , what is the output if the threshold is at ?
Not quite. Try another option.
Answer: 1
The weighted sum is . Since , the step function outputs .
Question 22 of 60 · Perceptron · Medium
Why can a single-layer perceptron not solve the XOR problem?
Not quite. Try another option.
Answer: XOR is not linearly separable
A single perceptron draws only a linear decision boundary. XOR classes cannot be separated by one straight line, so it requires a hidden layer.
Question 23 of 60 · Introduction to Neural Networks · Medium
During backpropagation, what is primarily computed to update the network weights?
Not quite. Try another option.
Answer: Gradient of the loss with respect to each weight
Backpropagation applies the chain rule to compute for each weight, which gradient descent then uses to update weights.
Question 24 of 60 · MLP · Medium
Which property of non-linear activation functions makes a multi-layer perceptron more powerful than a single linear layer?
Not quite. Try another option.
Answer: They let the network approximate non-linear functions
Without non-linearities, stacking linear layers collapses to one linear map. Non-linear activations enable the MLP to model complex, non-linear relationships.
Question 25 of 60 · MLP · Medium
A fully connected layer maps 128 inputs to 64 outputs. Ignoring bias, how many weight parameters does it contain?
Not quite. Try another option.
Answer: 8192
A dense layer has weights: .
Question 26 of 60 · CNN · Medium
Applying a convolution filter with stride 1 and no padding to a input produces an output of what spatial size?
Not quite. Try another option.
Answer:
Output size , giving a feature map.
Question 27 of 60 · CNN · Medium
What is the main purpose of a pooling layer in a CNN?
Not quite. Try another option.
Answer: Reduce spatial dimensions and add invariance
Pooling (e.g. max pooling) downsamples feature maps, lowering computation and giving small translation invariance.
Question 28 of 60 · CNN · Medium
Why is parameter sharing in convolutional layers advantageous compared to fully connected layers for images?
Not quite. Try another option.
Answer: The same filter detects a feature anywhere in the image with fewer parameters
A convolution slides one shared kernel across the whole image, drastically reducing parameters while detecting a feature regardless of its position.
Question 29 of 60 · RNN · Medium
What problem do LSTM and GRU units specifically address in standard RNNs?
Not quite. Try another option.
Answer: The vanishing gradient over long sequences
Gating mechanisms in LSTM/GRU preserve gradient flow across many time steps, helping capture long-range dependencies that plain RNNs lose.
Question 30 of 60 · RNN · Medium
In an RNN, what makes it suitable for sequential data compared to a plain MLP?
Not quite. Try another option.
Answer: It maintains a hidden state passed across time steps
RNNs feed the previous hidden state into the next step, giving them memory of earlier elements in the sequence.
Question 31 of 60 · Transformer Architecture and Applications · Medium
Why do Transformers require positional encodings to be added to input embeddings?
Not quite. Try another option.
Answer: Self-attention itself is order-agnostic
Self-attention treats inputs as a set, so positional encodings inject information about token order into the model.
Question 32 of 60 · Transformer Architecture and Applications · Medium
What is a key computational advantage of Transformers over RNNs when training on long sequences?
Not quite. Try another option.
Answer: Tokens can be processed in parallel
The correct option follows directly from the given concept and definitions.
Question 33 of 60 · Attention · Medium
In scaled dot-product attention, the score is divided by mainly to:
Not quite. Try another option.
Answer: Prevent large dot products from saturating the softmax
Scaling by keeps the dot products from growing too large, avoiding extremely small softmax gradients and stabilizing training.
Question 34 of 60 · Attention · Medium
What is the primary benefit of using multi-head attention instead of a single attention head?
Not quite. Try another option.
Answer: It lets the model attend to different representation subspaces jointly
Multiple heads learn to focus on different relationships and features in parallel, giving the model richer contextual representations.
Question 35 of 60 · Tokenization · Medium
Why do modern language models often use subword tokenization (e.g. Byte-Pair Encoding) instead of whole-word tokenization?
Not quite. Try another option.
Answer: It handles rare and unknown words while limiting vocabulary size
Subword tokenization splits rare words into known pieces, avoiding out-of-vocabulary problems while keeping the vocabulary compact.
Question 36 of 60 · Embeddings · Medium
In word embeddings, why can the relationship hold?
Not quite. Try another option.
Answer: Semantic relationships are captured as directions in vector space
Dense embeddings place semantically related words such that analogies become consistent vector offsets in the embedding space.
Question 37 of 60 · NLP phases · Medium
Which NLP phase is primarily concerned with the grammatical structure and arrangement of words in a sentence?
Not quite. Try another option.
Answer: Syntactic analysis
Syntactic (parsing) analysis checks grammar and word arrangement, whereas semantics handles meaning and pragmatics handles context of use.
Question 38 of 60 · Introduction to NLP · Medium
Consider the sentences "I saw the man with a telescope." Which NLP challenge does this best illustrate?
Not quite. Try another option.
Answer: Ambiguity in interpretation
The phrase can mean the man had a telescope or the observer used one. This structural/semantic ambiguity is a core challenge in NLP.
Question 39 of 60 · Language models (BERT, GPT) · Medium
What is a key architectural difference between BERT and GPT?
Not quite. Try another option.
Answer: BERT is bidirectional while GPT is left-to-right
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.
Question 40 of 60 · Language models (BERT, GPT) · Medium
BERT's pre-training uses a Masked Language Model objective. What does this involve?
Not quite. Try another option.
Answer: Predicting randomly hidden tokens from surrounding context
In MLM, some tokens are masked and the model learns to predict them using bidirectional context, enabling deep contextual representations.
Question 41 of 60 · Perceptron · Hard
A 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?
Not quite. Try another option.
Answer: XOR is not linearly separable, so no single hyperplane can classify all four points
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.
Question 42 of 60 · MLP · Hard
Consider an MLP where every hidden neuron uses a linear (identity) activation function across all layers. What is the expressive power of this network?
Not quite. Try another option.
Answer: It collapses to an equivalent single linear transformation regardless of depth
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.
Question 43 of 60 · Introduction to Neural Networks · Hard
During backpropagation in a deep sigmoid network, gradients in early layers become extremely small. Which statement best explains this vanishing gradient phenomenon?
Not quite. Try another option.
Answer: Repeated multiplication of derivatives bounded by shrinks gradients exponentially with depth
The sigmoid derivative has a maximum of . Backpropagation multiplies these small factors across layers, so gradients decay exponentially with depth, stalling early-layer learning.
Question 44 of 60 · CNN · Hard
A 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?
Not quite. Try another option.
Answer:
Output size . So the feature map is .
Question 45 of 60 · CNN · Hard
Why does parameter sharing in convolutional layers provide an advantage over fully connected layers for image data?
Not quite. Try another option.
Answer: It drastically reduces parameters and enforces translation-equivariant feature detection
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.
Question 46 of 60 · RNN · Hard
An LSTM is preferred over a vanilla RNN for long sequences primarily because:
Not quite. Try another option.
Answer: Its gating and additive cell state allow gradients to flow without vanishing across many steps
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.
Question 47 of 60 · Transformer Architecture and Applications · Hard
In scaled dot-product attention, the dot products of queries and keys are divided by . What problem does this scaling primarily address?
Not quite. Try another option.
Answer: For large , large dot products push softmax into regions with vanishingly small gradients
With large , dot products grow in magnitude, saturating the softmax and producing tiny gradients. Dividing by keeps variance controlled, preserving useful gradients during training.
Question 48 of 60 · Transformer Architecture and Applications · Hard
Why do Transformers require explicit positional encodings while RNNs do not?
Not quite. Try another option.
Answer: Self-attention is permutation-invariant and has no inherent notion of token order
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.
Question 49 of 60 · Attention · Hard
Multi-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?
Not quite. Try another option.
Answer: Different heads can jointly attend to information from different representation subspaces
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.
Question 50 of 60 · Language models (BERT, GPT) · Hard
BERT and GPT differ fundamentally in their pretraining objectives and attention. Which statement correctly contrasts them?
Not quite. Try another option.
Answer: BERT uses bidirectional attention with masked LM; GPT uses causal (left-to-right) attention with next-token prediction
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.
Question 51 of 60 · Tokenization · Hard
Subword tokenization schemes like Byte-Pair Encoding (BPE) are preferred over word-level tokenization mainly because they:
Not quite. Try another option.
Answer: Handle rare and out-of-vocabulary words by decomposing them into known subword units
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.
Question 52 of 60 · Embeddings · Hard
A key limitation of static word embeddings like Word2Vec compared to contextual embeddings from BERT is that static embeddings:
Not quite. Try another option.
Answer: Assign a single fixed vector per word, ignoring polysemy across contexts
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.
Question 53 of 60 · Embeddings · Hard
In Word2Vec, the famous analogy works because the embedding space captures:
Not quite. Try another option.
Answer: Consistent linear directions encoding semantic relationships
Word2Vec learns a space where relational offsets (like gender or royalty) are approximately consistent vector directions, enabling linear analogy arithmetic between word vectors.
Question 54 of 60 · NLP phases · Hard
Consider the pipeline: raw text tokens POS tags parse tree meaning representation. Which classical NLP phase corresponds to constructing the parse tree?
Not quite. Try another option.
Answer: Syntactic analysis (parsing)
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.
Question 55 of 60 · NLP phases · Hard
The 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?
Not quite. Try another option.
Answer: Coreference resolution using semantic and pragmatic reasoning
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.
Question 56 of 60 · NLP use cases (sentiment analysis, translation, summarization) · Hard
In abstractive summarization compared to extractive summarization, the model:
Not quite. Try another option.
Answer: Generates novel phrasing that may not appear verbatim in the source
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.
Question 57 of 60 · NLP use cases (sentiment analysis, translation, summarization) · Hard
A sentiment classifier labels "This movie is not bad at all" as negative. What linguistic phenomenon most likely caused this error?
Not quite. Try another option.
Answer: The model failed to handle negation and its scope over the sentiment word
"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.
Question 58 of 60 · Building chatbots and digital assistants · Hard
A retrieval-augmented (RAG) chatbot is chosen over a purely generative LLM chatbot for an enterprise knowledge base primarily to:
Not quite. Try another option.
Answer: Ground responses in retrieved documents, reducing hallucination and enabling up-to-date facts
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.
Question 59 of 60 · Transformer Architecture and Applications · Hard
The self-attention mechanism has a computational and memory complexity that scales as which function of sequence length ?
Not quite. Try another option.
Answer: quadratic in sequence length
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.
Question 60 of 60 · RNN · Hard
A bidirectional RNN improves over a unidirectional RNN for sequence tagging tasks because it:
Not quite. Try another option.
Answer: Encodes each token using both past and future context in the sequence
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.
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of INT428 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of INT428 save you a night before the exam?
Then you can help keep it free for the next batch. 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.