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 1 MCQsFoundations of LLMs and Agentic Systems
Question 1 of 60 · Introduction to intelligent agents and their types · Easy
What is an intelligent agent?
Not quite. Try another option.
Answer: A system that perceives and acts
An intelligent agent perceives its environment and takes actions to achieve goals.
Question 2 of 60 · Introduction to intelligent agents and their types · Easy
Which type of agent acts only on the current percept using condition-action rules?
Not quite. Try another option.
Answer: Simple reflex agent
A simple reflex agent selects actions from the current percept without maintaining an internal model.
Question 3 of 60 · Introduction to intelligent agents and their types · Easy
Which agent type improves its behavior through experience?
Not quite. Try another option.
Answer: Learning agent
A learning agent uses experience and feedback to improve its future actions.
Question 4 of 60 · Emergence of Agentic AI · Easy
What distinguishes Agentic AI from a basic text-generation system?
Not quite. Try another option.
Answer: It autonomously pursues goals
Agentic AI can plan and perform actions toward goals with some degree of autonomy.
Question 5 of 60 · Emergence of Agentic AI · Easy
Which capability is commonly associated with Agentic AI?
Not quite. Try another option.
Answer: Planning a sequence of actions
Agentic AI often plans multiple actions and executes them to complete a task.
Question 6 of 60 · Transformer architecture basics · Easy
Which architecture forms the foundation of most modern large language models?
Not quite. Try another option.
Answer: Transformer
Most modern LLMs are built using the Transformer architecture.
Question 7 of 60 · Transformer architecture basics · Easy
What information do positional encodings provide to a Transformer?
Not quite. Try another option.
Answer: The order of tokens
Positional encodings help the model represent where each token occurs in a sequence.
Question 8 of 60 · Transformer architecture basics · Easy
Which Transformer component converts token representations into contextual representations?
Not quite. Try another option.
Answer: Transformer layers
Transformer layers process token representations to capture context and relationships.
Question 9 of 60 · Attention mechanism · Easy
What does the attention mechanism help a language model do?
Not quite. Try another option.
Answer: Focus on relevant tokens
Attention assigns different importance to tokens based on their relevance to the current context.
Question 10 of 60 · Attention mechanism · Easy
What does self-attention compare within a sequence?
Not quite. Try another option.
Answer: Each token with other tokens
Self-attention relates each token to other tokens in the same sequence.
Question 11 of 60 · Attention mechanism · Easy
Why are multiple attention heads used in a Transformer?
Not quite. Try another option.
Answer: To capture different relationships
Multiple heads allow the model to attend to different patterns and relationships simultaneously.
Question 12 of 60 · Tokenization approaches · Easy
What is tokenization in an LLM pipeline?
Not quite. Try another option.
Answer: Dividing text into smaller units
Tokenization divides text into units that a language model can process.
Question 13 of 60 · Tokenization approaches · Easy
Which tokenization approach represents text using pieces smaller than many complete words?
Not quite. Try another option.
Answer: Subword tokenization
Subword tokenization splits words into reusable pieces, helping handle rare or unfamiliar words.
Question 14 of 60 · Pre-training objectives in LLMs · Easy
What is the usual objective of next-token prediction?
Not quite. Try another option.
Answer: Predict the following token
Next-token prediction trains a model to predict the token that follows the preceding context.
Question 15 of 60 · Pre-training objectives in LLMs · Easy
In masked language modeling, what does the model learn to predict?
Not quite. Try another option.
Answer: Hidden tokens in text
Masked language modeling hides selected tokens and trains the model to recover them from context.
Question 16 of 60 · Agent perception-action cycle · Easy
What is the first main step in an agent's perception-action cycle?
Not quite. Try another option.
Answer: Perceiving the environment
The cycle begins when an agent receives information about its environment through percepts.
Question 17 of 60 · Agent perception-action cycle · Easy
After selecting an action, what does an agent normally do next?
Not quite. Try another option.
Answer: Executes it in the environment
The selected action is executed, potentially changing the environment and producing new percepts.
Question 18 of 60 · Agent-environment interaction · Easy
What is a percept in agent-environment interaction?
Not quite. Try another option.
Answer: Information sensed by the agent
A percept is information that an agent receives from its environment.
Question 19 of 60 · Agent-environment interaction · Easy
What can an agent use to affect its environment?
Not quite. Try another option.
Answer: Actuators
Actuators allow an agent to perform actions that affect its environment.
Question 20 of 60 · Overview of popular LLMs · Easy
Which organization developed the GPT family of language models?
Not quite. Try another option.
Answer: OpenAI
OpenAI developed the GPT family of large language models.
Question 21 of 60 · Introduction to intelligent agents and their types · Medium
A warehouse robot selects routes using a fixed set of condition-action rules and does not maintain an internal representation of previously observed obstacles. Which type of agent best describes it?
Not quite. Try another option.
Answer: A simple reflex agent
A simple reflex agent chooses actions from the current percept using predefined rules, without maintaining an internal state.
Question 22 of 60 · Introduction to intelligent agents and their types · Medium
A delivery drone evaluates several safe routes and chooses the one that best balances travel time, energy use, and customer priority. Which agent type is most appropriate?
Not quite. Try another option.
Answer: A utility-based agent
A utility-based agent compares outcomes using a utility function, allowing it to balance multiple competing preferences.
Question 23 of 60 · Emergence of Agentic AI · Medium
A language model is asked to organize a conference. It creates a task list, calls calendar and email tools, checks the responses, and revises its schedule. What most clearly makes this an agentic AI system?
Not quite. Try another option.
Answer: It autonomously plans, acts, and revises
Agentic AI goes beyond text generation by pursuing goals through planning, tool use, observation, and adaptation.
Question 24 of 60 · Emergence of Agentic AI · Medium
An LLM agent repeatedly calls an expensive search tool even after it has enough evidence to answer. Which design addition would most directly reduce this behavior?
Not quite. Try another option.
Answer: A tool-use stopping policy
A stopping policy helps the agent decide when sufficient information has been gathered and further tool calls are unnecessary.
Question 25 of 60 · Transformer architecture basics · Medium
A transformer receives the same words in two different orders. Which component enables it to distinguish the sequences before attention is applied?
Not quite. Try another option.
Answer: Positional encoding
Positional encoding adds order information because self-attention alone does not inherently represent token positions.
Question 26 of 60 · Transformer architecture basics · Medium
Why can transformer training usually process all tokens in a sequence more parallelly than a traditional recurrent neural network?
Unlike recurrent networks, transformers do not need to compute a hidden state token by token, so sequence positions can be processed in parallel during training.
Question 27 of 60 · Transformer architecture basics · Medium
In a transformer block, what is the primary role of the position-wise feed-forward network?
Not quite. Try another option.
Answer: To transform each position's representation nonlinearly
The feed-forward network independently applies learned nonlinear transformations to the representation at each sequence position.
Question 28 of 60 · Attention mechanism · Medium
In scaled dot-product attention, scores are divided by . What problem does this scaling mainly address?
Not quite. Try another option.
Answer: Large dot products can saturate the softmax
As the key dimension grows, dot products can become large. Scaling keeps softmax values in a range with more useful gradients.
Question 29 of 60 · Attention mechanism · Medium
In the sentence "The animal did not cross the street because it was tired," an attention head links "it" strongly to "animal." What capability does this illustrate?
Not quite. Try another option.
Answer: Resolving a contextual dependency
Attention can connect related tokens across a sequence, helping the model interpret references and other contextual dependencies.
Question 30 of 60 · Attention mechanism · Medium
Two attention heads in the same layer consistently focus on different relationships: one tracks nearby syntax, while another tracks long-range references. What is the main benefit?
Not quite. Try another option.
Answer: The model can represent varied relationships simultaneously
Multi-head attention lets different heads learn complementary relationships and combine them into richer token representations.
Question 31 of 60 · Tokenization approaches · Medium
A tokenizer encounters the rare word "microbioluminescence," which is absent from its vocabulary. Which approach is most likely to represent it using meaningful reusable pieces?
Not quite. Try another option.
Answer: Subword tokenization
Subword tokenization can decompose rare words into known fragments, reducing unknown tokens while preserving useful structure.
Question 32 of 60 · Tokenization approaches · Medium
A model uses byte-level tokenization rather than a fixed word vocabulary. Which advantage is most relevant when processing multilingual text and unusual symbols?
Not quite. Try another option.
Answer: Nearly any input can be represented
Byte-level tokenization can encode arbitrary text without relying on a language-specific vocabulary, though it may create longer sequences.
Question 33 of 60 · Pre-training objectives in LLMs · Medium
A decoder-only model is trained on the sequence "Agents use tools" by predicting each token from only the tokens before it. Which objective is being used?
Not quite. Try another option.
Answer: Causal language modeling
Causal language modeling predicts the next token using only preceding context, which matches decoder-only generation.
Question 34 of 60 · Pre-training objectives in LLMs · Medium
During pre-training, selected words in a sentence are hidden and the model predicts them using context on both sides. Which task does this describe?
Not quite. Try another option.
Answer: Masked language modeling
Masked language modeling reconstructs hidden tokens from bidirectional context and is commonly associated with encoder-based models.
Question 35 of 60 · Pre-training objectives in LLMs · Medium
A pre-trained LLM produces grammatically strong answers but does not reliably follow user instructions. Which additional training stage most directly targets this limitation?
Not quite. Try another option.
Answer: Instruction tuning on prompt-response examples
Instruction tuning teaches a pre-trained model to map user requests to appropriate responses using supervised task examples.
Question 36 of 60 · Agent perception-action cycle · Medium
A cleaning robot observes that a room remains dirty after one pass and then increases suction power for the next pass. Which sequence best represents this behavior?
Not quite. Try another option.
Answer: Perceive, evaluate, act, perceive again
The agent uses a feedback loop: it perceives the environment, evaluates the situation, acts, and observes the new state.
Question 37 of 60 · Agent perception-action cycle · Medium
A web-browsing agent submits a form and immediately assumes success without checking the resulting page. Which part of the perception-action cycle is missing?
Not quite. Try another option.
Answer: Observing the action's outcome
After acting, an agent should perceive the resulting environment state so it can detect failure and adjust its next action.
Question 38 of 60 · Agent-environment interaction · Medium
A game agent can see only the area immediately around its character, while important objects may be elsewhere on the map. How should this environment be classified?
Not quite. Try another option.
Answer: Partially observable
The environment is partially observable because the agent's current percept does not reveal the complete underlying state.
Question 39 of 60 · Agent-environment interaction · Medium
A trading simulation changes in response both to the agent's orders and to other participants' unpredictable decisions. Which description best captures the environment?
Not quite. Try another option.
Answer: Dynamic and stochastic
The environment changes over time and includes uncertain outcomes caused by other participants, making it dynamic and stochastic.
Question 40 of 60 · Overview of popular LLMs · Medium
A team needs a model whose weights can be deployed on its own infrastructure and adapted for a specialized internal task. Which model family is commonly suited to this requirement?
Not quite. Try another option.
Answer: Llama
Llama models are available in downloadable-weight variants, making local deployment and task-specific adaptation possible under their applicable licenses.
Question 41 of 60 · Introduction to intelligent agents and their types · Hard
An agent must select between two routes. Route X always yields utility 6. Route Y yields utility 20 with probability 0.4 and utility 0 otherwise. The agent knows these probabilities and consistently selects Route Y. Which classification best explains its behavior?
Not quite. Try another option.
Answer: A utility-based rational agent maximizing expected utility
Route Y has expected utility , exceeding Route X's utility of . Comparing graded outcome preferences under uncertainty is characteristic of a utility-based agent.
Question 42 of 60 · Emergence of Agentic AI · Hard
A language model generates a complete multi-step plan but cannot inspect results, call tools, revise actions, or preserve state. Which missing capability most directly prevents the system from being genuinely agentic?
Not quite. Try another option.
Answer: A closed-loop mechanism linking actions, observations, and replanning
Agentic behavior requires a feedback loop in which actions affect an environment and subsequent observations guide revised decisions. Producing a static plan alone is open-loop generation.
Question 43 of 60 · Transformer architecture basics · Hard
In a deep pre-layer-normalized Transformer block, which update equation correctly places layer normalization while preserving an unnormalized residual stream?
Not quite. Try another option.
Answer:
Pre-LN applies normalization before the sublayer and adds its output to the original residual stream. This arrangement generally improves gradient flow in deep Transformers.
Question 44 of 60 · Attention mechanism · Hard
A single attention head has , query , keys and , and scalar values , . With scaled dot-product attention and no mask, what is the output?
Not quite. Try another option.
Answer:
The scaled logits are and . Softmax therefore assigns the first value weight .
Question 45 of 60 · Tokenization approaches · Hard
A BPE tokenizer is trained only on a fixed corpus and then applied to a new domain. Which claim about an unseen technical term is most accurate?
Not quite. Try another option.
Answer: It is decomposed using learned merges, possibly down to base symbols
BPE applies its fixed merge rules to available base symbols. An unseen word can therefore be represented as several known subword or byte-level units without adding vocabulary entries.
Question 46 of 60 · Pre-training objectives in LLMs · Hard
Two models use identical Transformer capacity. Model C is trained with causal language modeling, while Model M predicts independently selected masked tokens using bidirectional context. Which consequence follows directly from the objectives?
Not quite. Try another option.
Answer: Model C defines a left-to-right factorization of sequence likelihood
Causal modeling optimizes , directly defining an autoregressive sequence distribution. Standard masked-token prediction does not provide that same factorization.
Question 47 of 60 · Agent perception-action cycle · Hard
A warehouse agent observes shelf occupancy, acts, and then immediately plans again using its previous observation even though another robot may have moved items. What is the most precise defect in its perception-action cycle?
Not quite. Try another option.
Answer: It replans before incorporating the post-action percept
The agent is acting on stale state information. A closed perception-action cycle should observe the consequences of the action and environmental changes before updating state and planning again.
Question 48 of 60 · Agent-environment interaction · Hard
In a partially observable environment with known transition and observation models, what statistic is sufficient for optimal decision-making under the standard POMDP formulation?
Not quite. Try another option.
Answer: The posterior belief distribution over latent states
A POMDP belief state summarizes the action-observation history as a posterior distribution over hidden states. Using only the most likely state discards uncertainty relevant to expected returns.
Question 49 of 60 · Overview of popular LLMs · Hard
Which architecture-objective mapping is correct for the original pre-training formulations of BERT, GPT-style models, and T5?
BERT uses bidirectional encoder representations with masked-token prediction, GPT uses decoder-only causal prediction, and T5 uses an encoder-decoder text-to-text framework with corrupted spans.
Question 50 of 60 · Introduction to intelligent agents and their types · Hard
In the classical learning-agent decomposition, a component evaluates the agent's behavior against a performance standard and supplies feedback to the learning component. Which component performs this role?
Not quite. Try another option.
Answer: The critic
The critic assesses outcomes using the performance measure and provides feedback. The learning element uses that feedback to modify the performance element.
Question 51 of 60 · Emergence of Agentic AI · Hard
An LLM-based system gains tool use, persistent memory, explicit goals, and iterative replanning. Which addition most fundamentally changes it from isolated text generation into an agent-environment system?
Not quite. Try another option.
Answer: Tool actions whose observable outcomes influence later decisions
Agency emerges most directly from consequential actions combined with feedback that affects future behavior. Memory and planning help, but without environment interaction the system remains primarily a generator.
Question 52 of 60 · Transformer architecture basics · Hard
Suppose positional information is removed from a Transformer encoder and no attention masks depend on token position. What property does the resulting network have with respect to permutations of input tokens?
Not quite. Try another option.
Answer: Its token-level outputs are permutation-equivariant
Permuting input tokens correspondingly permutes token-level outputs because self-attention and position-wise feed-forward layers contain no order signal. Equivariance is not the same as invariance.
Question 53 of 60 · Attention mechanism · Hard
A decoder replaces standard multi-head attention with grouped-query attention while keeping the number of query heads unchanged. What is the principal inference-time effect?
Not quite. Try another option.
Answer: Several query heads share key-value heads, reducing KV-cache memory
Grouped-query attention retains many query heads but uses fewer key-value heads shared across groups. This reduces cached key-value tensors and can accelerate autoregressive inference.
Question 54 of 60 · Tokenization approaches · Hard
A byte-level tokenizer and a word-level tokenizer have fixed vocabularies learned from English data. When processing arbitrary valid UTF-8 text from an unseen script, which comparative statement is correct?
Not quite. Try another option.
Answer: Byte-level tokenization guarantees representability but may use longer sequences
Any UTF-8 string can be represented through byte units, avoiding unknown words. Characters may occupy multiple bytes, so the resulting token sequence can be substantially longer.
Question 55 of 60 · Pre-training objectives in LLMs · Hard
A masked-language model masks each selected token independently, but the corruption token used during pre-training never occurs during downstream use. Which issue motivated BERT's mixed replacement strategy for selected positions?
Not quite. Try another option.
Answer: Reducing mismatch caused by relying exclusively on a special mask token
BERT sometimes uses a random token or leaves the token unchanged instead of always inserting the mask symbol. This reduces dependence on an artificial symbol absent during fine-tuning.
Question 56 of 60 · Agent perception-action cycle · Hard
An agent executes the first action of a five-step plan, observes an unexpected state that invalidates the remaining plan, but continues executing it unchanged. Which design principle would most directly correct this failure?
Not quite. Try another option.
Answer: Receding-horizon execution with state updates and replanning
Receding-horizon control executes a limited portion of a plan, observes the resulting state, and replans. It therefore adapts when actual outcomes diverge from predictions.
Question 57 of 60 · Agent-environment interaction · Hard
In a multi-agent environment, an agent's transition statistics change even though the physical rules remain fixed because other agents continually update their policies. From the focal agent's perspective, what challenge does this create?
Not quite. Try another option.
Answer: Effective non-stationarity in the environment dynamics
Other learning agents alter the distribution of future states and rewards. Consequently, dynamics inferred under earlier policies may no longer describe later interactions.
Question 58 of 60 · Overview of popular LLMs · Hard
Which statement correctly distinguishes the core architectures associated with the BERT, LLaMA, and T5 model families?
Not quite. Try another option.
Answer: BERT is encoder-only, LLaMA is decoder-only, and T5 is encoder-decoder
BERT primarily encodes bidirectional context, LLaMA uses causal decoder-only generation, and T5 maps input text to output text through an encoder-decoder architecture.
Question 59 of 60 · Pre-training objectives in LLMs · Hard
Compared with masked-language modeling, ELECTRA's replaced-token detection can obtain a training signal at more sequence positions. Why?
Not quite. Try another option.
Answer: Its discriminator classifies every position as original or replaced
ELECTRA trains a discriminator to judge each input position, including unchanged positions. Masked-language modeling typically computes prediction loss only for selected masked positions.
Question 60 of 60 · Attention mechanism · Hard
Rotary positional embeddings apply position-dependent rotations to query and key vector pairs. Which property explains their usefulness in attention scoring?
Not quite. Try another option.
Answer: Their query-key dot products encode relative positional displacement
The interaction between position-dependent rotations makes a query-key score depend on the relative offset between positions. Causal masking remains a separate operation.
That's unit 1
Answer a few questions and your score shows up here.
Nearly through. Did unit 1 of CSE473 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 1 of CSE473 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.