AutoGPT demonstrates how an LLM-based system can pursue a goal through multiple self-directed steps.
Incorrect! Try again.
18What 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
Correct Answer: Assigning subtasks with limited human input
Explanation:
Autonomous delegation allows a system to distribute subtasks to suitable agents or tools with minimal intervention.
Incorrect! Try again.
19Why 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
Correct Answer: To use the agent's relevant capability
Explanation:
Delegating work to a specialized agent helps match each subtask with an appropriate capability.
Incorrect! Try again.
20Which 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
Correct Answer: Summarizing reports and comparing options
Explanation:
Decision-support agents can organize information and compare alternatives while leaving the final decision to a person.
Incorrect! Try again.
21A 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
Correct Answer: Use an LLM as the controller, expose approved tools, and enforce refund policies outside the model
Explanation:
The LLM can interpret requests and select tools, while external controls reliably enforce permissions and refund limits.
Incorrect! Try again.
22An 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
Correct Answer: Require schema-validated structured output for every action
Explanation:
Schema validation makes agent actions predictable and prevents malformed outputs from reaching downstream components.
Incorrect! Try again.
23An 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
Correct Answer: Decompose the goal into research, synthesis, review, and delivery tasks
Explanation:
Task decomposition creates manageable stages whose outputs can be checked before the final report is delivered.
Incorrect! Try again.
24A 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
Correct Answer: Re-plan after each result and verify task preconditions
Explanation:
Checking observations and preconditions allows the agent to revise its plan when required information is unavailable.
Incorrect! Try again.
25A 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
Correct Answer: Store cases in a vector database and retrieve by embedding similarity
Explanation:
Embedding-based retrieval can identify semantically related cases despite differences in wording.
Incorrect! Try again.
26A 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
Correct Answer: Summarize older interactions and retain important facts separately
Explanation:
Summarization reduces token usage while a separate memory store preserves durable facts needed in future interactions.
Incorrect! Try again.
27An 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
Correct Answer: Save stable preferences in long-term memory and task notes in working memory
Explanation:
Long-term memory is appropriate for durable preferences, while working memory should hold temporary task-specific information.
Incorrect! Try again.
28A 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
Correct Answer: Define a tool schema with required fields and validate arguments
Explanation:
A validated schema ensures required arguments are present and correctly formatted before the API call is made.
Incorrect! Try again.
29An 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
Correct Answer: An idempotency key reused across retries of the same transaction
Explanation:
An idempotency key lets the payment service recognize retries as the same transaction rather than new charges.
Incorrect! Try again.
30A 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
Correct Answer: Grant read-only access and require approval for any calendar change
Explanation:
Least-privilege access gives the agent enough capability to propose times without allowing unauthorized modifications.
Incorrect! Try again.
31In 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
Correct Answer: The tool result is observed before the next action is selected
Explanation:
ReAct interleaves reasoning and actions, using each tool observation to guide the next decision.
Incorrect! Try again.
32A 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
Correct Answer: Add loop detection and require an alternative action after repeated failures
Explanation:
Loop detection prevents wasted calls and prompts the agent to revise its action or stop safely.
Incorrect! Try again.
33A 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
Correct Answer: Select a search action, inspect evidence, and then decide whether more evidence is needed
Explanation:
ReAct uses observations from actions to adapt subsequent decisions rather than following an unchanging sequence.
Incorrect! Try again.
34In 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
Correct Answer: It tells the agent when the tool is useful and what it does
Explanation:
Clear tool descriptions help the agent choose an appropriate tool for the current task.
Incorrect! Try again.
35Which 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
Correct Answer: Researching a market, comparing sources, and producing a report
Explanation:
The research task requires iterative planning, tool use, evaluation, and multiple actions, which suit an autonomous loop.
Incorrect! Try again.
36A 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
Correct Answer: Define input-output contracts and execute dependent tasks in order
Explanation:
Explicit contracts and dependency-aware scheduling ensure each specialist receives the outputs required for its task.
Incorrect! Try again.
37Two 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
Correct Answer: Compare evidence quality and escalate unresolved conflicts for review
Explanation:
Evidence-based reconciliation improves reliability, while escalation handles conflicts the coordinator cannot safely resolve.
Incorrect! Try again.
38A 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
Correct Answer: Least privilege for delegated capabilities
Explanation:
A sub-agent should receive only the data and permissions necessary to complete its assigned responsibility.
Incorrect! Try again.
39An 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
Correct Answer: Provide evidence, uncertainty, and human review for consequential decisions
Explanation:
Decision-support systems should expose relevant evidence and uncertainty while leaving high-impact judgments subject to human oversight.
Incorrect! Try again.
40A 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
Correct Answer: Report insufficient evidence and request the missing measurements
Explanation:
The agent should communicate uncertainty and seek necessary evidence rather than fabricate inputs for an operational decision.
Incorrect! Try again.
41An 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
Correct Answer: Place a policy-enforcement layer between the model and capability-scoped tool adapters
Explanation:
A separate enforcement layer can validate permissions, arguments, and context independently of model output. Capability-scoped adapters also enforce least privilege.
Incorrect! Try again.
42An 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
Correct Answer: Select the action with the greatest estimated utility after calibration and service cost
Explanation:
A calibrated expected-utility policy compares answer quality, error risk, abstention loss, and tool cost rather than relying on raw token confidence.
Incorrect! Try again.
43A 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
Correct Answer: Convert candidate plans into structured states and validate constraints externally
Explanation:
External validation checks plan feasibility against explicit constraints. A persuasive or stable rationale alone does not establish that a plan is valid.
Incorrect! Try again.
44A 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
Correct Answer: A fixed plan cannot condition later actions on observations unavailable at planning time
Explanation:
In partial observability, new evidence may change the best action. A contingent policy maps observations or belief states to actions, enabling adaptive replanning.
Incorrect! Try again.
45An 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
Correct Answer: Attach provenance and validity intervals, then filter retrieval using current context
Explanation:
Semantic relevance does not imply current validity. Provenance, timestamps, and validity metadata allow stale facts to be rejected or reverified.
Incorrect! Try again.
46A 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
Correct Answer: Every consequential action must retain links to immutable evidence and tool results
Explanation:
Lossy summaries may omit critical details. Traceable links to immutable sources preserve auditability even after conversational memory is compressed.
Incorrect! Try again.
47A 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
Correct Answer: Delete source records, derived memories, index entries, and scheduled downstream copies
Explanation:
Deletion must propagate to derived artifacts and replicas that can still reveal or reconstruct user information, not merely hide the original record.
Incorrect! Try again.
48An 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
Correct Answer: Use an idempotency key and query the operation status before issuing another request
Explanation:
An idempotency key lets the service recognize retries as one logical operation. Status reconciliation resolves ambiguous timeout outcomes.
Incorrect! Try again.
49An 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
Correct Answer: Use a saga with recorded state and compensating actions for completed reservations
Explanation:
A saga coordinates distributed operations through durable progress tracking and compensating actions when atomic transactions are unavailable.
Incorrect! Try again.
50A 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
Correct Answer: Treat tool output as untrusted data and enforce capabilities outside the prompt
Explanation:
Prompt ordering and model-based screening are not security boundaries. Untrusted outputs require isolation, validation, and independently enforced permissions.
Incorrect! Try again.
51In 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
Correct Answer: Update its working state from the observation and revise the next action accordingly
Explanation:
ReAct interleaves reasoning and action so observations can correct assumptions. The trace should support adaptation rather than force commitment to an earlier belief.
Incorrect! Try again.
52A 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
Correct Answer: Stop when marginal information gain remains low under a bounded cost budget
Explanation:
A budgeted information-gain criterion detects unproductive loops while allowing additional actions when they are likely to reduce uncertainty.
Incorrect! Try again.
53For 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
Correct Answer: Generate a dependency-aware plan first, then use observations to revise it during execution
Explanation:
Planning exposes dependencies and prevents premature calls, while observation-driven revision retains ReAct's ability to adapt when execution differs from expectations.
Incorrect! Try again.
54A 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
Correct Answer: Expose a typed argument schema and validate each generated call before execution
Explanation:
Structured tool schemas constrain argument generation, and runtime validation prevents malformed calls from reaching the underlying service.
Incorrect! Try again.
55An 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
Correct Answer: A global budget, explicit success criteria, and checkpoints for irreversible actions
56A 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
Correct Answer: Only after both and succeed and their outputs pass interface validation
Explanation:
Reachability is not dependency satisfaction. A join task must wait for all required predecessors and validate that their outputs satisfy its input contract.
Incorrect! Try again.
57A 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
Correct Answer: Issue attenuated, task-scoped capabilities that workers cannot extend or redelegate
Explanation:
Capability attenuation enforces least privilege and prevents workers from acquiring or passing on authority beyond the delegated task.
Incorrect! Try again.
58Two 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
Correct Answer: Compare provenance and snapshot versions, then rerun against a consistent data state
Explanation:
Conflicting results may reflect inconsistent inputs rather than worker quality. Provenance and version checks identify the mismatch and support a controlled rerun.
Incorrect! Try again.
59A 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
Correct Answer: Monitor cost-sensitive outcomes, calibration, subgroup performance, and distribution drift
Explanation:
Operational evaluation must reflect asymmetric consequences, confidence reliability, subgroup effects, and changes between training and deployment conditions.
Incorrect! Try again.
60An 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
Correct Answer: Defer when , assuming the estimates and costs are calibrated
Explanation:
The expected loss of acting automatically is . Human review is preferable when that expected loss exceeds the review cost .
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. 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.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →