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 5 MCQsLLM-Driven Agents and Generative Workflows
Question 1 of 60 · Integration of LLMs into agentic frameworks · Easy
What is the main role of an LLM in an agentic framework?
Not quite. Try another option.
Answer: Interpreting inputs and generating actions
An LLM helps an agent understand input, reason about a task, and propose suitable actions.
Question 2 of 60 · Integration of LLMs into agentic frameworks · Easy
Which component typically carries out an action selected by an LLM agent?
Not quite. Try another option.
Answer: A tool interface
A tool interface connects the agent to functions or services that can perform selected actions.
Question 3 of 60 · Integration of LLMs into agentic frameworks · Easy
What commonly guides an LLM agent toward its intended behavior?
Not quite. Try another option.
Answer: A task prompt
A task prompt describes the goal, context, or instructions that guide the agent.
Question 4 of 60 · Chain-of-thought reasoning for planning · Easy
In agent planning, what does chain-of-thought reasoning generally involve?
Not quite. Try another option.
Answer: Breaking a task into intermediate steps
Chain-of-thought reasoning supports planning by organizing a problem into intermediate reasoning steps.
Question 5 of 60 · Chain-of-thought reasoning for planning · Easy
Why is step-based planning useful for an LLM agent?
Not quite. Try another option.
Answer: It organizes complex tasks
Step-based planning makes a complex task easier to manage by dividing it into smaller parts.
Question 6 of 60 · Memory augmentation · Easy
What is the purpose of memory augmentation in an LLM agent?
Not quite. Try another option.
Answer: To retain useful past information
Memory augmentation allows an agent to store and retrieve information that may help with later tasks.
Question 7 of 60 · Memory augmentation · Easy
Which type of information is most suitable for an agent's long-term memory?
Not quite. Try another option.
Answer: A recurring user preference
A recurring preference can help the agent provide more relevant responses in future interactions.
Question 8 of 60 · Memory augmentation · Easy
What action does an agent perform when it searches stored memory for relevant facts?
Not quite. Try another option.
Answer: Memory retrieval
Memory retrieval is the process of finding stored information that is relevant to the current task.
Question 9 of 60 · Tool-use and API orchestration by agents · Easy
Why might an LLM agent call a weather API?
Not quite. Try another option.
Answer: To obtain current weather data
A weather API gives the agent access to current information that may not be available in the model itself.
Question 10 of 60 · Tool-use and API orchestration by agents · Easy
What does API orchestration mean in an agentic workflow?
Not quite. Try another option.
Answer: Coordinating calls to external services
API orchestration involves selecting, calling, and coordinating external services to complete a task.
Question 11 of 60 · Tool-use and API orchestration by agents · Easy
Which tool is most appropriate for an agent that must perform an exact arithmetic calculation?
Not quite. Try another option.
Answer: A calculator tool
A calculator tool is designed to perform exact arithmetic operations reliably.
Question 12 of 60 · ReAct framework · Easy
What two activities are combined in the ReAct framework?
Not quite. Try another option.
Answer: Reasoning and acting
ReAct combines reasoning about a task with actions such as using tools or gathering information.
Question 13 of 60 · ReAct framework · Easy
In a ReAct workflow, what is an observation?
Not quite. Try another option.
Answer: The result returned by an action
An observation is feedback or information produced after the agent performs an action.
Question 14 of 60 · ReAct framework · Easy
What can a ReAct agent do after receiving an observation?
Not quite. Try another option.
Answer: Update its next action
The agent can use an observation to revise its reasoning and choose a more appropriate next action.
Question 15 of 60 · Introduction to LangChain Agents and AutoGPT · Easy
What is LangChain commonly used for?
Not quite. Try another option.
Answer: Building LLM-powered applications
LangChain provides components for building applications that connect LLMs with prompts, memory, and tools.
Question 16 of 60 · Introduction to LangChain Agents and AutoGPT · Easy
What is a LangChain agent designed to do?
Not quite. Try another option.
Answer: Choose tools based on a task
A LangChain agent uses an LLM to decide which available tools can help complete a task.
Question 17 of 60 · Introduction to LangChain Agents and AutoGPT · Easy
What is AutoGPT mainly known for demonstrating?
Not quite. Try another option.
Answer: Goal-driven autonomous task execution
AutoGPT demonstrates how an LLM-based system can pursue a goal through multiple self-directed steps.
Question 18 of 60 · Autonomous task delegation · Easy
What does autonomous task delegation involve?
Not quite. Try another option.
Answer: Assigning subtasks with limited human input
Autonomous delegation allows a system to distribute subtasks to suitable agents or tools with minimal intervention.
Question 19 of 60 · Autonomous task delegation · Easy
Why might a multi-agent system delegate a research subtask to a specialized agent?
Not quite. Try another option.
Answer: To use the agent's relevant capability
Delegating work to a specialized agent helps match each subtask with an appropriate capability.
Question 20 of 60 · Applications in automation and decision support · Easy
Which example best represents an LLM agent used for decision support?
Not quite. Try another option.
Answer: Summarizing reports and comparing options
Decision-support agents can organize information and compare alternatives while leaving the final decision to a person.
Question 21 of 60 · Integration of LLMs into agentic frameworks · Medium
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?
Not quite. Try another option.
Answer: Use an LLM as the controller, expose approved tools, and enforce refund policies outside the model
The LLM can interpret requests and select tools, while external controls reliably enforce permissions and refund limits.
Question 22 of 60 · Integration of LLMs into agentic frameworks · Medium
An LLM agent produces different action formats on repeated runs, causing downstream failures. What is the most appropriate improvement?
Not quite. Try another option.
Answer: Require schema-validated structured output for every action
Schema validation makes agent actions predictable and prevents malformed outputs from reaching downstream components.
Question 23 of 60 · Chain-of-thought reasoning for planning · Medium
An agent receives the goal: "Prepare a competitor report and email it to the manager." Which planning approach is most effective?
Not quite. Try another option.
Answer: Decompose the goal into research, synthesis, review, and delivery tasks
Task decomposition creates manageable stages whose outputs can be checked before the final report is delivered.
Question 24 of 60 · Chain-of-thought reasoning for planning · Medium
A planning agent often continues executing after a required data source fails. Which mechanism would most improve its behavior?
Not quite. Try another option.
Answer: Re-plan after each result and verify task preconditions
Checking observations and preconditions allows the agent to revise its plan when required information is unavailable.
Question 25 of 60 · Memory augmentation · Medium
A technical-support agent must retrieve earlier cases that are semantically similar even when users use different wording. Which memory design is most suitable?
Not quite. Try another option.
Answer: Store cases in a vector database and retrieve by embedding similarity
Embedding-based retrieval can identify semantically related cases despite differences in wording.
Question 26 of 60 · Memory augmentation · Medium
A long-running assistant exceeds its context limit because it includes every previous message. What is the best solution?
Not quite. Try another option.
Answer: Summarize older interactions and retain important facts separately
Summarization reduces token usage while a separate memory store preserves durable facts needed in future interactions.
Question 27 of 60 · Memory augmentation · Medium
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?
Not quite. Try another option.
Answer: Save stable preferences in long-term memory and task notes in working memory
Long-term memory is appropriate for durable preferences, while working memory should hold temporary task-specific information.
Question 28 of 60 · Tool-use and API orchestration by agents · Medium
A weather agent calls an API with city names, but requests sometimes fail because required parameters are missing. Which change best addresses the problem?
Not quite. Try another option.
Answer: Define a tool schema with required fields and validate arguments
A validated schema ensures required arguments are present and correctly formatted before the API call is made.
Question 29 of 60 · Tool-use and API orchestration by agents · Medium
An agent retries a timed-out payment API call, occasionally charging a customer twice. Which mechanism most directly prevents duplicate charges?
Not quite. Try another option.
Answer: An idempotency key reused across retries of the same transaction
An idempotency key lets the payment service recognize retries as the same transaction rather than new charges.
Question 30 of 60 · Tool-use and API orchestration by agents · Medium
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?
Not quite. Try another option.
Answer: Grant read-only access and require approval for any calendar change
Least-privilege access gives the agent enough capability to propose times without allowing unauthorized modifications.
Question 31 of 60 · ReAct framework · Medium
In a ReAct-style agent, what should normally happen after the agent selects and invokes a search tool?
Not quite. Try another option.
Answer: The tool result is observed before the next action is selected
ReAct interleaves reasoning and actions, using each tool observation to guide the next decision.
Question 32 of 60 · ReAct framework · Medium
A ReAct agent repeatedly calls the same unsuccessful tool with identical arguments. Which control is most appropriate?
Not quite. Try another option.
Answer: Add loop detection and require an alternative action after repeated failures
Loop detection prevents wasted calls and prompts the agent to revise its action or stop safely.
Question 33 of 60 · ReAct framework · Medium
A fact-checking agent must answer a question using a document search tool. Which behavior best reflects the ReAct framework?
Not quite. Try another option.
Answer: Select a search action, inspect evidence, and then decide whether more evidence is needed
ReAct uses observations from actions to adapt subsequent decisions rather than following an unchanging sequence.
Question 34 of 60 · Introduction to LangChain Agents and AutoGPT · Medium
In a LangChain agent, what is the primary role of a tool description?
Not quite. Try another option.
Answer: It tells the agent when the tool is useful and what it does
Clear tool descriptions help the agent choose an appropriate tool for the current task.
Question 35 of 60 · Introduction to LangChain Agents and AutoGPT · Medium
Which scenario most clearly benefits from an AutoGPT-style autonomous loop rather than a single LLM call?
Not quite. Try another option.
Answer: Researching a market, comparing sources, and producing a report
The research task requires iterative planning, tool use, evaluation, and multiple actions, which suit an autonomous loop.
Question 36 of 60 · Autonomous task delegation · Medium
A manager agent delegates data collection, statistical analysis, and report writing to specialist agents. How should it reduce errors caused by task dependencies?
Not quite. Try another option.
Answer: Define input-output contracts and execute dependent tasks in order
Explicit contracts and dependency-aware scheduling ensure each specialist receives the outputs required for its task.
Question 37 of 60 · Autonomous task delegation · Medium
Two delegated agents produce conflicting recommendations based on different sources. What should the coordinator agent do?
Not quite. Try another option.
Answer: Compare evidence quality and escalate unresolved conflicts for review
Evidence-based reconciliation improves reliability, while escalation handles conflicts the coordinator cannot safely resolve.
Question 38 of 60 · Autonomous task delegation · Medium
A delegated sub-agent receives access to customer records even though it only formats a report. Which design principle has been violated?
Not quite. Try another option.
Answer: Least privilege for delegated capabilities
A sub-agent should receive only the data and permissions necessary to complete its assigned responsibility.
Question 39 of 60 · Applications in automation and decision support · Medium
An LLM agent ranks loan applications for staff review. Which design best supports responsible decision support?
Not quite. Try another option.
Answer: Provide evidence, uncertainty, and human review for consequential decisions
Decision-support systems should expose relevant evidence and uncertainty while leaving high-impact judgments subject to human oversight.
Question 40 of 60 · Applications in automation and decision support · Medium
A factory uses an LLM agent to recommend maintenance based on sensor summaries. What is the best response when required sensor data is missing?
Not quite. Try another option.
Answer: Report insufficient evidence and request the missing measurements
The agent should communicate uncertainty and seek necessary evidence rather than fabricate inputs for an operational decision.
Question 41 of 60 · Integration of LLMs into agentic frameworks · Hard
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?
Not quite. Try another option.
Answer: Place a policy-enforcement layer between the model and capability-scoped tool adapters
A separate enforcement layer can validate permissions, arguments, and context independently of model output. Capability-scoped adapters also enforce least privilege.
Question 42 of 60 · Integration of LLMs into agentic frameworks · Hard
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?
Not quite. Try another option.
Answer: Select the action with the greatest estimated utility after calibration and service cost
A calibrated expected-utility policy compares answer quality, error risk, abstention loss, and tool cost rather than relying on raw token confidence.
Question 43 of 60 · Chain-of-thought reasoning for planning · Hard
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?
Not quite. Try another option.
Answer: Convert candidate plans into structured states and validate constraints externally
External validation checks plan feasibility against explicit constraints. A persuasive or stable rationale alone does not establish that a plan is valid.
Question 44 of 60 · Chain-of-thought reasoning for planning · Hard
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?
Not quite. Try another option.
Answer: A fixed plan cannot condition later actions on observations unavailable at planning time
In partial observability, new evidence may change the best action. A contingent policy maps observations or belief states to actions, enabling adaptive replanning.
Question 45 of 60 · Memory augmentation · Hard
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?
Not quite. Try another option.
Answer: Attach provenance and validity intervals, then filter retrieval using current context
Semantic relevance does not imply current validity. Provenance, timestamps, and validity metadata allow stale facts to be rejected or reverified.
Question 46 of 60 · Memory augmentation · Hard
A long-running agent compresses its episodic memory into summaries. Which invariant is most important for preserving its ability to audit consequential actions?
Not quite. Try another option.
Answer: Every consequential action must retain links to immutable evidence and tool results
Lossy summaries may omit critical details. Traceable links to immutable sources preserve auditability even after conversational memory is compressed.
Question 47 of 60 · Memory augmentation · Hard
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?
Not quite. Try another option.
Answer: Delete source records, derived memories, index entries, and scheduled downstream copies
Deletion must propagate to derived artifacts and replicas that can still reveal or reconstruct user information, not merely hide the original record.
Question 48 of 60 · Tool-use and API orchestration by agents · Hard
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?
Not quite. Try another option.
Answer: Use an idempotency key and query the operation status before issuing another request
An idempotency key lets the service recognize retries as one logical operation. Status reconciliation resolves ambiguous timeout outcomes.
Question 49 of 60 · Tool-use and API orchestration by agents · Hard
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?
Not quite. Try another option.
Answer: Use a saga with recorded state and compensating actions for completed reservations
A saga coordinates distributed operations through durable progress tracking and compensating actions when atomic transactions are unavailable.
Question 50 of 60 · Tool-use and API orchestration by agents · Hard
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?
Not quite. Try another option.
Answer: Treat tool output as untrusted data and enforce capabilities outside the prompt
Prompt ordering and model-based screening are not security boundaries. Untrusted outputs require isolation, validation, and independently enforced permissions.
Question 51 of 60 · ReAct framework · Hard
In a ReAct loop, a tool observation contradicts a fact assumed in the preceding reasoning trace. What should the agent do?
Not quite. Try another option.
Answer: Update its working state from the observation and revise the next action accordingly
ReAct interleaves reasoning and action so observations can correct assumptions. The trace should support adaptation rather than force commitment to an earlier belief.
Question 52 of 60 · ReAct framework · Hard
A ReAct agent repeatedly alternates between two search queries without gaining information. Which termination rule best handles this while preserving useful exploration?
Not quite. Try another option.
Answer: Stop when marginal information gain remains low under a bounded cost budget
A budgeted information-gain criterion detects unproductive loops while allowing additional actions when they are likely to reduce uncertainty.
Question 53 of 60 · ReAct framework · Hard
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?
Not quite. Try another option.
Answer: Generate a dependency-aware plan first, then use observations to revise it during execution
Planning exposes dependencies and prevents premature calls, while observation-driven revision retains ReAct's ability to adapt when execution differs from expectations.
Question 54 of 60 · Introduction to LangChain Agents and AutoGPT · Hard
A LangChain-style agent keeps selecting a tool with semantically appropriate behavior but supplies malformed arguments. Which change most directly addresses the problem?
Not quite. Try another option.
Answer: Expose a typed argument schema and validate each generated call before execution
Structured tool schemas constrain argument generation, and runtime validation prevents malformed calls from reaching the underlying service.
Question 55 of 60 · Introduction to LangChain Agents and AutoGPT · Hard
An AutoGPT-like system recursively creates goals and executes them unattended. Which addition most directly reduces the risk of endless self-generated work?
Not quite. Try another option.
Answer: A global budget, explicit success criteria, and checkpoints for irreversible actions
Question 56 of 60 · Autonomous task delegation · Hard
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?
Not quite. Try another option.
Answer: Only after both and succeed and their outputs pass interface validation
Reachability is not dependency satisfaction. A join task must wait for all required predecessors and validate that their outputs satisfy its input contract.
Question 57 of 60 · Autonomous task delegation · Hard
A manager agent can delegate database analysis to several worker agents with different trust levels. Which policy best limits privilege escalation through delegation?
Not quite. Try another option.
Answer: Issue attenuated, task-scoped capabilities that workers cannot extend or redelegate
Capability attenuation enforces least privilege and prevents workers from acquiring or passing on authority beyond the delegated task.
Question 58 of 60 · Autonomous task delegation · Hard
Two worker agents produce incompatible answers from different data snapshots. What should a robust coordinator do before selecting either result?
Not quite. Try another option.
Answer: Compare provenance and snapshot versions, then rerun against a consistent data state
Conflicting results may reflect inconsistent inputs rather than worker quality. Provenance and version checks identify the mismatch and support a controlled rerun.
Question 59 of 60 · Applications in automation and decision support · Hard
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?
Not quite. Try another option.
Answer: Monitor cost-sensitive outcomes, calibration, subgroup performance, and distribution drift
Operational evaluation must reflect asymmetric consequences, confidence reliability, subgroup effects, and changes between training and deployment conditions.
Question 60 of 60 · Applications in automation and decision support · Hard
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?
Not quite. Try another option.
Answer: Defer when , assuming the estimates and costs are calibrated
The expected loss of acting automatically is . Human review is preferable when that expected loss exceeds the review cost .
That's unit 5
Answer a few questions and your score shows up here.
Nearly through. Did unit 5 of CSE473 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 5 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.