Unit 5: LLM-Driven Agents and Generative Workflows - Practice Quiz

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

1 What is the main role of an LLM in an agentic framework?

Integration of LLMs into agentic frameworks Easy
A. Physically repairing computer hardware
B. Encrypting every file on a device
C. Replacing the operating system kernel
D. Interpreting inputs and generating actions

2 Which component typically carries out an action selected by an LLM agent?

Integration of LLMs into agentic frameworks Easy
A. A screen saver
B. A tool interface
C. A font renderer
D. A file compressor

3 What commonly guides an LLM agent toward its intended behavior?

Integration of LLMs into agentic frameworks Easy
A. A display cable
B. A keyboard layout
C. A task prompt
D. A battery setting

4 In agent planning, what does chain-of-thought reasoning generally involve?

Chain-of-thought reasoning for planning Easy
A. Translating code into machine instructions
B. Increasing the computer screen resolution
C. Storing files in alphabetical order
D. Breaking a task into intermediate steps

5 Why is step-based planning useful for an LLM agent?

Chain-of-thought reasoning for planning Easy
A. It organizes complex tasks
B. It disables external tools
C. It removes the need for goals
D. It guarantees perfect answers

6 What is the purpose of memory augmentation in an LLM agent?

Memory augmentation Easy
A. To shorten every user prompt
B. To redesign network hardware
C. To increase monitor brightness
D. To retain useful past information

7 Which type of information is most suitable for an agent's long-term memory?

Memory augmentation Easy
A. A processor fan speed
B. A temporary loading icon
C. A random animation frame
D. A recurring user preference

8 What action does an agent perform when it searches stored memory for relevant facts?

Memory augmentation Easy
A. Image rendering
B. Packet routing
C. Memory retrieval
D. File encryption

9 Why might an LLM agent call a weather API?

Tool-use and API orchestration by agents Easy
A. To format a local disk
B. To replace the computer processor
C. To obtain current weather data
D. To train a new language model

10 What does API orchestration mean in an agentic workflow?

Tool-use and API orchestration by agents Easy
A. Arranging icons on a desktop
B. Coordinating calls to external services
C. Changing a device's physical parts
D. Compressing all application files

11 Which tool is most appropriate for an agent that must perform an exact arithmetic calculation?

Tool-use and API orchestration by agents Easy
A. A calendar tool
B. A translation tool
C. A mapping tool
D. A calculator tool

12 What two activities are combined in the ReAct framework?

ReAct framework Easy
A. Reasoning and acting
B. Routing and encrypting
C. Rendering and printing
D. Reading and compressing

13 In a ReAct workflow, what is an observation?

ReAct framework Easy
A. The agent's hardware specification
B. The initial training dataset
C. The result returned by an action
D. The user's display configuration

14 What can a ReAct agent do after receiving an observation?

ReAct framework Easy
A. Update its next action
B. Remove its original goal
C. Guarantee a flawless result
D. Rebuild its physical hardware

15 What is LangChain commonly used for?

Introduction to LangChain Agents and AutoGPT Easy
A. Building LLM-powered applications
B. Managing electrical power grids
C. Manufacturing computer processors
D. Designing mechanical keyboards

16 What is a LangChain agent designed to do?

Introduction to LangChain Agents and AutoGPT Easy
A. Replace all application source code
B. Increase the device's storage capacity
C. Choose tools based on a task
D. Control the computer's cooling system

17 What is AutoGPT mainly known for demonstrating?

Introduction to LangChain Agents and AutoGPT Easy
A. Goal-driven autonomous task execution
B. Physical network cable installation
C. Manual spreadsheet cell formatting
D. Operating system device management

18 What does autonomous task delegation involve?

Autonomous task delegation Easy
A. Assigning subtasks with limited human input
B. Sending every task to one fixed tool
C. Deleting tasks before they are processed
D. Preventing agents from sharing results

19 Why might a multi-agent system delegate a research subtask to a specialized agent?

Autonomous task delegation Easy
A. To make every subtask identical
B. To avoid producing a final result
C. To use the agent's relevant capability
D. To prevent access to useful information

20 Which example best represents an LLM agent used for decision support?

Applications in automation and decision support Easy
A. Summarizing reports and comparing options
B. Replacing damaged components in a server
C. Increasing the voltage of a power supply
D. Installing physical locks on office doors

21 A customer-support agent must answer questions, query an order database, and request human approval before issuing large refunds. Which architecture best supports these requirements?

Integration of LLMs into agentic frameworks Medium
A. Use a database trigger to generate every customer-facing response
B. Use an LLM as the controller, expose approved tools, and enforce refund policies outside the model
C. Fine-tune an LLM on order records and allow it to issue refunds directly
D. Store refund policies in the prompt and remove all external validation

22 An LLM agent produces different action formats on repeated runs, causing downstream failures. What is the most appropriate improvement?

Integration of LLMs into agentic frameworks Medium
A. Add previous failures to long-term conversational memory
B. Require schema-validated structured output for every action
C. Replace tool responses with natural-language summaries
D. Increase the model temperature for greater action diversity

23 An agent receives the goal: "Prepare a competitor report and email it to the manager." Which planning approach is most effective?

Chain-of-thought reasoning for planning Medium
A. Repeat the original goal until a complete report is produced
B. Decompose the goal into research, synthesis, review, and delivery tasks
C. Generate the entire report from the goal without using evidence
D. Send an initial email before collecting competitor information

24 A planning agent often continues executing after a required data source fails. Which mechanism would most improve its behavior?

Chain-of-thought reasoning for planning Medium
A. Use a fixed plan that cannot change during execution
B. Increase the context window without checking task status
C. Re-plan after each result and verify task preconditions
D. Remove intermediate observations from the agent prompt

25 A technical-support agent must retrieve earlier cases that are semantically similar even when users use different wording. Which memory design is most suitable?

Memory augmentation Medium
A. Store every case in model weights after each conversation
B. Sort cases alphabetically and retrieve matching initial letters
C. Keep only the most recent message in the active prompt
D. Store cases in a vector database and retrieve by embedding similarity

26 A long-running assistant exceeds its context limit because it includes every previous message. What is the best solution?

Memory augmentation Medium
A. Repeat recent messages so that the model prioritizes them
B. Increase response length to capture more conversational detail
C. Summarize older interactions and retain important facts separately
D. Delete all earlier messages whenever the context becomes full

27 An agent needs to remember a user's preferred report format across sessions but should not treat temporary task notes as permanent. What should the system do?

Memory augmentation Medium
A. Keep preferences only in the current prompt and discard them later
B. Save stable preferences in long-term memory and task notes in working memory
C. Encode task notes in the tool descriptions used by every user
D. Store both preferences and task notes permanently without labels

28 A weather agent calls an API with city names, but requests sometimes fail because required parameters are missing. Which change best addresses the problem?

Tool-use and API orchestration by agents Medium
A. Describe the API only through examples in conversation history
B. Define a tool schema with required fields and validate arguments
C. Let the model invent parameters when values are unavailable
D. Retry every failed request with the same incomplete arguments

29 An agent retries a timed-out payment API call, occasionally charging a customer twice. Which mechanism most directly prevents duplicate charges?

Tool-use and API orchestration by agents Medium
A. A larger context window for recording payment descriptions
B. A shorter system prompt describing the payment workflow
C. A higher temperature for selecting alternative payment actions
D. An idempotency key reused across retries of the same transaction

30 A scheduling agent can read calendars, create events, and delete events. How should tool permissions be configured for an agent that only proposes meeting times?

Tool-use and API orchestration by agents Medium
A. Grant read-only access and require approval for any calendar change
B. Grant deletion access but disable reading participant availability
C. Grant all calendar permissions so the agent can handle future tasks
D. Grant event creation access and hide all tool execution logs

31 In a ReAct-style agent, what should normally happen after the agent selects and invokes a search tool?

ReAct framework Medium
A. The tool result is observed before the next action is selected
B. The model parameters are updated using the search result
C. The final answer is emitted without reading the tool output
D. The original prompt is discarded before the tool returns

32 A ReAct agent repeatedly calls the same unsuccessful tool with identical arguments. Which control is most appropriate?

ReAct framework Medium
A. Add loop detection and require an alternative action after repeated failures
B. Increase the maximum number of identical calls without restriction
C. Disable all observations so repeated failures are not visible
D. Store the failed output as the agent's final response immediately

33 A fact-checking agent must answer a question using a document search tool. Which behavior best reflects the ReAct framework?

ReAct framework Medium
A. Search every available document regardless of the question
B. Select a search action, inspect evidence, and then decide whether more evidence is needed
C. Train a new model on the documents before answering each query
D. Generate an answer first and search only after sending it

34 In a LangChain agent, what is the primary role of a tool description?

Introduction to LangChain Agents and AutoGPT Medium
A. It determines the network timeout for all external services
B. It stores every previous tool result in the model context
C. It tells the agent when the tool is useful and what it does
D. It permanently changes the model weights for one capability

35 Which scenario most clearly benefits from an AutoGPT-style autonomous loop rather than a single LLM call?

Introduction to LangChain Agents and AutoGPT Medium
A. Researching a market, comparing sources, and producing a report
B. Reformatting one date into a specified pattern
C. Defining a term from a supplied paragraph
D. Correcting the spelling of one sentence

36 A manager agent delegates data collection, statistical analysis, and report writing to specialist agents. How should it reduce errors caused by task dependencies?

Autonomous task delegation Medium
A. Define input-output contracts and execute dependent tasks in order
B. Start every task simultaneously and ignore intermediate outputs
C. Send every specialist only the final report formatting rules
D. Allow each specialist to redefine the overall objective independently

37 Two delegated agents produce conflicting recommendations based on different sources. What should the coordinator agent do?

Autonomous task delegation Medium
A. Select the recommendation produced first without further checking
B. Combine both recommendations while removing their source references
C. Compare evidence quality and escalate unresolved conflicts for review
D. Ask both agents to repeat their answers with higher temperature

38 A delegated sub-agent receives access to customer records even though it only formats a report. Which design principle has been violated?

Autonomous task delegation Medium
A. Temperature scaling for response diversity
B. Context compression for token efficiency
C. Least privilege for delegated capabilities
D. Semantic similarity for memory retrieval

39 An LLM agent ranks loan applications for staff review. Which design best supports responsible decision support?

Applications in automation and decision support Medium
A. Hide confidence scores to prevent staff from questioning the model
B. Provide evidence, uncertainty, and human review for consequential decisions
C. Use longer generated explanations instead of checking source data
D. Automatically reject every low-ranked application without appeal

40 A factory uses an LLM agent to recommend maintenance based on sensor summaries. What is the best response when required sensor data is missing?

Applications in automation and decision support Medium
A. Choose the least expensive maintenance action automatically
B. Ignore the missing values and increase the response temperature
C. Report insufficient evidence and request the missing measurements
D. Generate a confident recommendation using typical historical values

41 An LLM agent can read customer records, issue refunds, and send email. Which architecture most effectively limits damage if the model is manipulated by an adversarial document?

Integration of LLMs into agentic frameworks Hard
A. Require the model to explain its intent before invoking any external operation
B. Place a policy-enforcement layer between the model and capability-scoped tool adapters
C. Fine-tune the model on examples in which malicious documents are manually rejected
D. Give the model broad credentials but log every generated action for later review

42 An agent must choose between answering from its model, querying an expensive authoritative service, or abstaining. Which control strategy best accounts for both uncertainty and action cost?

Integration of LLMs into agentic frameworks Hard
A. Query only when two independently sampled model answers contain different wording
B. Select the action with the greatest estimated utility after calibration and service cost
C. Abstain whenever retrieved evidence is absent from the model's original training corpus
D. Query whenever the model's most likely token has probability below a fixed threshold

43 A planning agent produces fluent multi-step rationales, but small changes in irrelevant wording cause different plans. Which intervention most directly improves plan reliability without treating the rationale as proof of correctness?

Chain-of-thought reasoning for planning Hard
A. Convert candidate plans into structured states and validate constraints externally
B. Increase the rationale length until every possible action is discussed explicitly
C. Store all generated rationales and retrieve the most semantically similar one
D. Use a larger sampling temperature and select the plan with the rarest rationale

44 A partially observable task permits replanning after each action. Why can a fixed chain-of-thought plan generated before execution be inferior to a contingent policy?

Chain-of-thought reasoning for planning Hard
A. A fixed plan always consumes more tokens than a policy represented as a decision tree
B. A contingent policy prevents every hallucination by postponing reasoning until execution
C. A fixed plan cannot condition later actions on observations unavailable at planning time
D. A contingent policy guarantees the globally optimal action under unknown transition dynamics

45 An agent retrieves an old note stating that a deployment endpoint is active, although the endpoint was recently retired. Which memory design most directly addresses this failure?

Memory augmentation Hard
A. Rank memories using semantic similarity alone and increase the embedding dimension
B. Prefer the oldest matching memory because it has survived more retrieval cycles
C. Attach provenance and validity intervals, then filter retrieval using current context
D. Summarize all operational notes into one permanent document after each interaction

46 A long-running agent compresses its episodic memory into summaries. Which invariant is most important for preserving its ability to audit consequential actions?

Memory augmentation Hard
A. Every summary must have approximately the same token count as earlier summaries
B. Every compressed item must remain close to its source in embedding-vector distance
C. Every consequential action must retain links to immutable evidence and tool results
D. Every discarded episode must be reproducible from the current model parameters

47 A user invokes a right-to-deletion request after their data has been incorporated into an agent's summaries and vector index. What is the most complete response?

Memory augmentation Hard
A. Mark the conversation hidden so retrieval excludes it during ordinary similarity searches
B. Delete only the original transcript because summaries no longer contain raw records
C. Remove direct identifiers while retaining all embeddings and inferred user preferences
D. Delete source records, derived memories, index entries, and scheduled downstream copies

48 An agent times out after submitting a payment request and cannot tell whether the server processed it. Which mechanism best prevents a retry from charging the customer twice?

Tool-use and API orchestration by agents Hard
A. Repeat the request until two consecutive responses contain the same transaction amount
B. Ask the LLM to infer success from the wording of the timeout exception
C. Send the retry with a lower network timeout and a newly generated payment identifier
D. Use an idempotency key and query the operation status before issuing another request

49 An agent books a flight, hotel, and rental car through services that do not support a shared transaction. The hotel booking fails after the flight succeeds. Which orchestration pattern is most appropriate?

Tool-use and API orchestration by agents Hard
A. Discard the execution trace and regenerate a semantically equivalent itinerary from scratch
B. Wrap the model invocation in a local database transaction covering every remote service
C. Use a saga with recorded state and compensating actions for completed reservations
D. Retry all three services concurrently until every response reports a successful booking

50 A web-search tool returns a page containing instructions telling the agent to reveal secrets and ignore its task. What is the strongest general mitigation?

Tool-use and API orchestration by agents Hard
A. Place the page after the system instructions so its directives have lower precedence
B. Treat tool output as untrusted data and enforce capabilities outside the prompt
C. Ask the same model whether the page appears malicious before following its commands
D. Remove imperative verbs from retrieved text before inserting it into the agent context

51 In a ReAct loop, a tool observation contradicts a fact assumed in the preceding reasoning trace. What should the agent do?

ReAct framework Hard
A. Ignore the observation unless another language model independently predicts the same result
B. Update its working state from the observation and revise the next action accordingly
C. Restart the complete task with an empty context and prohibit use of the conflicting tool
D. Preserve the original assumption because changing it would make the trace inconsistent

52 A ReAct agent repeatedly alternates between two search queries without gaining information. Which termination rule best handles this while preserving useful exploration?

ReAct framework Hard
A. Stop when marginal information gain remains low under a bounded cost budget
B. Continue until the model emits the same reasoning text with identical punctuation
C. Stop after exactly two tool calls regardless of the task's complexity or evidence
D. Continue whenever either query returns at least one document not seen previously

53 For a task with expensive tool calls and strict dependencies among actions, which modification to basic ReAct is most likely to reduce avoidable execution cost?

ReAct framework Hard
A. Generate a dependency-aware plan first, then use observations to revise it during execution
B. Hide all previous observations after each action so the model cannot anchor on stale evidence
C. Increase sampling temperature before every action so the agent explores more tool sequences
D. Invoke every potentially relevant tool in parallel before constructing an execution objective

54 A LangChain-style agent keeps selecting a tool with semantically appropriate behavior but supplies malformed arguments. Which change most directly addresses the problem?

Introduction to LangChain Agents and AutoGPT Hard
A. Replace tool names with numeric identifiers while leaving arguments unconstrained
B. Add more tools with overlapping descriptions so the agent has alternative choices
C. Expose a typed argument schema and validate each generated call before execution
D. Store malformed calls in conversational memory and raise the sampling temperature

55 An AutoGPT-like system recursively creates goals and executes them unattended. Which addition most directly reduces the risk of endless self-generated work?

Introduction to LangChain Agents and AutoGPT Hard
A. A higher creativity setting, broader tool access, and periodic rewriting of the main goal
B. A global budget, explicit success criteria, and checkpoints for irreversible actions
C. A larger context window, unrestricted memory, and automatic renewal of API credits
D. A second autonomous agent that approves every task without using external policy rules

56 A coordinator delegates tasks represented by a directed acyclic graph. Task requires outputs from both and , while each of those requires . When may safely begin?

Autonomous task delegation Hard
A. Only after both and succeed and their outputs pass interface validation
B. As soon as either or succeeds, because one dependency path is complete
C. As soon as succeeds, because both downstream branches have become reachable
D. Only after every task in the entire graph, including tasks unrelated to , succeeds

57 A manager agent can delegate database analysis to several worker agents with different trust levels. Which policy best limits privilege escalation through delegation?

Autonomous task delegation Hard
A. Share one service account but instruct workers to invoke only the tools they need
B. Allow each worker to inherit all manager permissions for the duration of its task
C. Issue attenuated, task-scoped capabilities that workers cannot extend or redelegate
D. Let workers request permanent credentials when their natural-language rationale is convincing

58 Two worker agents produce incompatible answers from different data snapshots. What should a robust coordinator do before selecting either result?

Autonomous task delegation Hard
A. Merge both answers by averaging every numeric value and concatenating all conclusions
B. Compare provenance and snapshot versions, then rerun against a consistent data state
C. Select the most recent worker response because execution order determines factual validity
D. Choose the answer from the worker whose response contains greater lexical confidence

59 A decision-support agent recommends whether to escalate cases to specialists. Errors have unequal costs, and the data distribution changes over time. Which evaluation design is most appropriate?

Applications in automation and decision support Hard
A. Measure token-level perplexity because lower language uncertainty implies safer recommendations
B. Track overall accuracy on the original test set and deploy the highest-scoring prompt
C. Monitor cost-sensitive outcomes, calibration, subgroup performance, and distribution drift
D. Count accepted recommendations because frequent acceptance establishes objective correctness

60 An automated decision-support system can either recommend an action or defer to a human. Let model error cost be , human-review cost be , and estimated error probability be . Ignoring other costs, when should it defer?

Applications in automation and decision support Hard
A. Defer when , because review is justified by multiplicative uncertainty
B. Defer when , assuming the estimates and costs are calibrated
C. Defer when , because probability and cost contribute independently
D. Defer when , regardless of the expected loss from an automated action