Unit 1: Foundations of LLMs and Agentic Systems - Practice Quiz

CSE473 — Large Language Models And Agentic Ai 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is an intelligent agent?

Introduction to intelligent agents and their types Easy
A. A system that perceives and acts
B. A network that only transfers files
C. A database that stores records
D. A compiler that translates code

2 Which type of agent acts only on the current percept using condition-action rules?

Introduction to intelligent agents and their types Easy
A. Model-based agent
B. Simple reflex agent
C. Goal-based agent
D. Learning agent

3 Which agent type improves its behavior through experience?

Introduction to intelligent agents and their types Easy
A. Utility-based agent
B. Learning agent
C. Goal-based agent
D. Simple reflex agent

4 What distinguishes Agentic AI from a basic text-generation system?

Emergence of Agentic AI Easy
A. It only stores training data
B. It only predicts user age
C. It autonomously pursues goals
D. It manually labels every token

5 Which capability is commonly associated with Agentic AI?

Emergence of Agentic AI Easy
A. Planning a sequence of actions
B. Displaying only static web pages
C. Compressing files without input
D. Replacing all computer hardware

6 Which architecture forms the foundation of most modern large language models?

Transformer architecture basics Easy
A. Linear regression
B. Transformer
C. Decision tree
D. K-means clustering

7 What information do positional encodings provide to a Transformer?

Transformer architecture basics Easy
A. The price of tokens
B. The color of tokens
C. The order of tokens
D. The owner of tokens

8 Which Transformer component converts token representations into contextual representations?

Transformer architecture basics Easy
A. Network routers
B. Transformer layers
C. Storage sectors
D. Display drivers

9 What does the attention mechanism help a language model do?

Attention mechanism Easy
A. Focus on relevant tokens
B. Delete every repeated token
C. Measure the monitor size
D. Encrypt the training dataset

10 What does self-attention compare within a sequence?

Attention mechanism Easy
A. Each model with its license
B. Each file with its folder
C. Each token with other tokens
D. Each server with its keyboard

11 Why are multiple attention heads used in a Transformer?

Attention mechanism Easy
A. To replace the training objective
B. To remove all token positions
C. To capture different relationships
D. To reduce every sentence equally

12 What is tokenization in an LLM pipeline?

Tokenization approaches Easy
A. Converting images into paper copies
B. Dividing text into smaller units
C. Sorting computers by processor speed
D. Removing all spaces from documents

13 Which tokenization approach represents text using pieces smaller than many complete words?

Tokenization approaches Easy
A. Document tokenization
B. Subword tokenization
C. Paragraph tokenization
D. Sentence tokenization

14 What is the usual objective of next-token prediction?

Pre-training objectives in LLMs Easy
A. Predict the following token
B. Count all paragraphs
C. Translate every sentence
D. Remove the first token

15 In masked language modeling, what does the model learn to predict?

Pre-training objectives in LLMs Easy
A. Hidden tokens in text
B. User locations on maps
C. Screen colors in images
D. File sizes on disk

16 What is the first main step in an agent's perception-action cycle?

Agent perception-action cycle Easy
A. Ending every process
B. Rebuilding the hardware
C. Deleting the environment
D. Perceiving the environment

17 After selecting an action, what does an agent normally do next?

Agent perception-action cycle Easy
A. Retrains every language model
B. Executes it in the environment
C. Erases its entire memory
D. Stops observing permanently

18 What is a percept in agent-environment interaction?

Agent-environment interaction Easy
A. A device built by the agent
B. Information sensed by the agent
C. A reward hidden from the agent
D. A goal deleted by the agent

19 What can an agent use to affect its environment?

Agent-environment interaction Easy
A. Actuators
B. Embeddings
C. Tokenizers
D. Datasets

20 Which organization developed the GPT family of language models?

Overview of popular LLMs Easy
A. Google
B. Meta
C. Anthropic
D. OpenAI

21 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?

Introduction to intelligent agents and their types Medium
A. A learning agent
B. A simple reflex agent
C. A utility-based agent
D. A model-based reflex agent

22 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?

Introduction to intelligent agents and their types Medium
A. A utility-based agent
B. A goal-based agent
C. A model-based agent
D. A simple reflex agent

23 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?

Emergence of Agentic AI Medium
A. It was trained on conference documents
B. It generates fluent natural-language text
C. It autonomously plans, acts, and revises
D. It stores prompts in a context window

24 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?

Emergence of Agentic AI Medium
A. A lower embedding dimension
B. A larger tokenizer vocabulary
C. A tool-use stopping policy
D. A longer pre-training corpus

25 A transformer receives the same words in two different orders. Which component enables it to distinguish the sequences before attention is applied?

Transformer architecture basics Medium
A. Vocabulary decoding
B. Layer normalization
C. Positional encoding
D. Output projection

26 Why can transformer training usually process all tokens in a sequence more parallelly than a traditional recurrent neural network?

Transformer architecture basics Medium
A. Self-attention avoids sequential hidden-state updates
B. Self-attention eliminates token embeddings
C. Transformers remove all matrix operations
D. Transformers use only one attention head

27 In a transformer block, what is the primary role of the position-wise feed-forward network?

Transformer architecture basics Medium
A. To transform each position's representation nonlinearly
B. To select the final generated vocabulary
C. To tokenize the original input sequence
D. To assign absolute positions to all tokens

28 In scaled dot-product attention, scores are divided by . What problem does this scaling mainly address?

Attention mechanism Medium
A. Large dot products can saturate the softmax
B. Long sequences can remove positional information
C. Small vocabularies can produce unknown tokens
D. Multiple heads can generate identical embeddings

29 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?

Attention mechanism Medium
A. Resolving a contextual dependency
B. Splitting text into subwords
C. Assigning a positional embedding
D. Predicting sequence length

30 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?

Attention mechanism Medium
A. The model can avoid using token embeddings entirely
B. The model can reduce every sequence to one token
C. The model can guarantee factually correct generations
D. The model can represent varied relationships simultaneously

31 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?

Tokenization approaches Medium
A. Document-level tokenization
B. Subword tokenization
C. Fixed word-level tokenization
D. Sentence-level tokenization

32 A model uses byte-level tokenization rather than a fixed word vocabulary. Which advantage is most relevant when processing multilingual text and unusual symbols?

Tokenization approaches Medium
A. Every sentence uses exactly one token
B. Token sequences are always shorter
C. Nearly any input can be represented
D. Word meanings are explicitly encoded

33 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?

Pre-training objectives in LLMs Medium
A. Causal language modeling
B. Masked language modeling
C. Contrastive image learning
D. Sequence classification

34 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?

Pre-training objectives in LLMs Medium
A. Masked language modeling
B. Autoregressive decoding
C. Reinforcement learning
D. Causal language modeling

35 A pre-trained LLM produces grammatically strong answers but does not reliably follow user instructions. Which additional training stage most directly targets this limitation?

Pre-training objectives in LLMs Medium
A. Instruction tuning on prompt-response examples
B. Expanding positional encodings without training
C. Replacing subwords with word-level tokens
D. Removing normalization from every layer

36 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?

Agent perception-action cycle Medium
A. Plan, ignore feedback, repeat, stop
B. Act, terminate, perceive, initialize
C. Perceive, evaluate, act, perceive again
D. Train, tokenize, embed, decode

37 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?

Agent perception-action cycle Medium
A. Observing the action's outcome
B. Encoding the original instruction
C. Selecting the model vocabulary
D. Pre-training the language model

38 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?

Agent-environment interaction Medium
A. Fully observable
B. Completely deterministic
C. Single-state episodic
D. Partially observable

39 A trading simulation changes in response both to the agent's orders and to other participants' unpredictable decisions. Which description best captures the environment?

Agent-environment interaction Medium
A. Static and deterministic
B. Discrete and single-agent
C. Dynamic and stochastic
D. Episodic and fully known

40 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?

Overview of popular LLMs Medium
A. Gemini through a hosted API only
B. Llama
C. Claude through a hosted API only
D. GPT through a hosted API only

41 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?

Introduction to intelligent agents and their types Hard
A. A model-based agent minimizing environmental uncertainty
B. A utility-based rational agent maximizing expected utility
C. A goal-based agent ignoring outcome preferences
D. A simple reflex agent applying condition-action rules

42 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?

Emergence of Agentic AI Hard
A. A larger context window for storing the generated plan
B. A higher sampling temperature for producing diverse plans
C. A bidirectional encoder for understanding user instructions
D. A closed-loop mechanism linking actions, observations, and replanning

43 In a deep pre-layer-normalized Transformer block, which update equation correctly places layer normalization while preserving an unnormalized residual stream?

Transformer architecture basics Hard
A.
B.
C.
D.

44 A single attention head has , query , keys and , and scalar values , . With scaled dot-product attention and no mask, what is the output?

Attention mechanism Hard
A.
B.
C.
D.

45 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?

Tokenization approaches Hard
A. It is always represented by one universal unknown token
B. It is decomposed using learned merges, possibly down to base symbols
C. It is assigned a new token without changing the vocabulary
D. It is segmented according to its linguistic morphemes alone

46 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?

Pre-training objectives in LLMs Hard
A. Model M defines the same normalized autoregressive sequence likelihood
B. Model C can condition each token on all future sequence tokens
C. Model M must generate complete sequences in one parallel operation
D. Model C defines a left-to-right factorization of sequence likelihood

47 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?

Agent perception-action cycle Hard
A. It senses the environment more often than it acts
B. It replans before incorporating the post-action percept
C. It uses a model rather than a reflex policy
D. It updates utility before selecting its previous action

48 In a partially observable environment with known transition and observation models, what statistic is sufficient for optimal decision-making under the standard POMDP formulation?

Agent-environment interaction Hard
A. The single most probable latent state estimate
B. The most recently observed environmental symbol
C. The complete action history without observations
D. The posterior belief distribution over latent states

49 Which architecture-objective mapping is correct for the original pre-training formulations of BERT, GPT-style models, and T5?

Overview of popular LLMs Hard
A. BERT: encoder MLM; GPT: decoder CLM; T5: encoder-decoder span corruption
B. BERT: decoder CLM; GPT: encoder MLM; T5: decoder replaced-token detection
C. BERT: encoder CLM; GPT: encoder-decoder MLM; T5: encoder contrastive learning
D. BERT: encoder-decoder CLM; GPT: encoder MLM; T5: decoder span classification

50 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?

Introduction to intelligent agents and their types Hard
A. The critic
B. The problem generator
C. The performance element
D. The internal actuator

51 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?

Emergence of Agentic AI Hard
A. A decoder using more attention heads per layer
B. A tokenizer supporting a larger multilingual vocabulary
C. Tool actions whose observable outcomes influence later decisions
D. Prompt templates containing several solved reasoning examples

52 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?

Transformer architecture basics Hard
A. Its attention matrix becomes strictly lower triangular
B. Its token-level outputs are permutation-equivariant
C. Its hidden states become permutation-invariant at every position
D. Its sequence output is inherently order-sensitive

53 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?

Attention mechanism Hard
A. Several query heads share key-value heads, reducing KV-cache memory
B. Attention becomes linear by eliminating the softmax normalization
C. Every query head receives unique keys, increasing KV-cache memory
D. Future tokens become visible through shared causal-mask entries

54 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?

Tokenization approaches Hard
A. Word-level tokenization guarantees representability with fewer tokens
B. Word-level tokenization reconstructs unseen words from learned merges
C. Byte-level tokenization guarantees one token for each Unicode character
D. Byte-level tokenization guarantees representability but may use longer sequences

55 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?

Pre-training objectives in LLMs Hard
A. Converting masked prediction into exact causal likelihood training
B. Ensuring every selected position retains its original input token
C. Reducing mismatch caused by relying exclusively on a special mask token
D. Preventing bidirectional attention from accessing left-side context

56 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?

Agent perception-action cycle Hard
A. Deterministic decoding with a fixed low temperature
B. Open-loop execution with a longer initial planning horizon
C. Receding-horizon execution with state updates and replanning
D. Static memory containing additional demonstration trajectories

57 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?

Agent-environment interaction Hard
A. Elimination of uncertainty through repeated interaction
B. Full observability of every agent's internal objective
C. Guaranteed convergence to a unique optimal policy
D. Effective non-stationarity in the environment dynamics

58 Which statement correctly distinguishes the core architectures associated with the BERT, LLaMA, and T5 model families?

Overview of popular LLMs Hard
A. BERT is encoder-decoder, LLaMA is decoder-only, and T5 is encoder-only
B. BERT is encoder-only, LLaMA is encoder-decoder, and T5 is decoder-only
C. BERT is decoder-only, LLaMA is encoder-only, and T5 is encoder-decoder
D. BERT is encoder-only, LLaMA is decoder-only, and T5 is encoder-decoder

59 Compared with masked-language modeling, ELECTRA's replaced-token detection can obtain a training signal at more sequence positions. Why?

Pre-training objectives in LLMs Hard
A. Its generator predicts every token through causal factorization
B. Its encoder reconstructs only tokens hidden by span masks
C. Its discriminator computes loss only on substituted positions
D. Its discriminator classifies every position as original or replaced

60 Rotary positional embeddings apply position-dependent rotations to query and key vector pairs. Which property explains their usefulness in attention scoring?

Attention mechanism Hard
A. Their query-key dot products encode relative positional displacement
B. Their dot products implement an exact causal attention mask
C. Their key vectors become identical across different positions
D. Their rotations make attention independent of all token positions