# AI Agents Quiz

## Question 1

What are the three main components of an AI agent?

A) Model, data, and compute
B) LLM, tools, and a control loop
C) Prompt, response, and feedback
D) Training, inference, and deployment

<!-- ANSWER: B -->
<!-- EXPLANATION: An AI agent combines an LLM (for reasoning and language), tools (for actions like search, code execution), and a control loop (observe → think → act → observe). -->

## Question 2

What does MCP stand for and what does it provide?

A) Model Context Protocol — a standard way to expose tools to LLMs
B) Machine Learning Pipeline — a training workflow
C) Multi-tenant Compute Platform — cloud infrastructure
D) Modular Context Processor — a type of neural layer

<!-- ANSWER: A -->
<!-- EXPLANATION: MCP (Model Context Protocol) is an open standard for defining and exposing tools to LLMs, enabling interoperability between different agents and tool servers. -->

## Question 3

In the ReAct pattern, what does the agent alternate between?

A) Training and inference
B) Reasoning and tool calls
C) Prompting and fine-tuning
D) Search and retrieval

<!-- ANSWER: B -->
<!-- EXPLANATION: ReAct (Reason + Act) alternates between explicit reasoning steps and tool calls. The model thinks, then acts, then thinks again based on the result. -->

## Question 4

Drag these agent loop steps into the correct order:

<!-- VISUAL: quiz-drag-order -->

A) Observe → Think → Act → Observe (repeat)
B) Act → Think → Observe → Act
C) Think → Observe → Act → Think
D) Observe → Act → Think → Observe

<!-- ANSWER: A -->
<!-- EXPLANATION: The agent loop is: Observe (state, tools, feedback) → Think (plan, decide) → Act (call tool or respond) → Observe (incorporate result) → repeat until done. -->

## Question 5

Which safety measure limits what an agent can do, even if it tries?

A) Better prompting
B) Sandboxing
C) Few-shot examples
D) Lower temperature

<!-- ANSWER: B -->
<!-- EXPLANATION: Sandboxing runs tools in an isolated environment with restricted file system, network, and process access. It limits damage even if the model requests dangerous actions. -->

## Question 6

What is a common limitation of AI agents?

A) They are always faster than humans
B) They can hallucinate tool names or parameters
C) They never make mistakes with tools
D) They don't need guardrails

<!-- ANSWER: B -->
<!-- EXPLANATION: Agents can hallucinate tool calls — inventing tool names, wrong parameters, or calling tools at the wrong time. Validation and clear schemas help reduce this. -->

## Question 7

<!-- VISUAL: quiz-drag-order -->

Put these agent loop steps in the correct order (from start to iteration):

A) Act (invoke tool or respond to user)
B) Observe (get state, tools, user input)
C) Think (reason, plan, decide next action)
D) Observe (incorporate tool result or feedback)

<!-- ANSWER: B,C,A,D -->
<!-- EXPLANATION: The agent first observes the current state, then thinks (reasons and plans), acts (calls a tool or responds), and observes again to incorporate the result. Steps B through D repeat until the task is done. -->

## Question 8

<!-- VISUAL: quiz-matching -->

Match each agent pattern to its description:

A) ReAct → 1) Chain of thought followed by tool call; alternate reasoning and action
B) Tool use → 2) Agent decides which external capability to invoke
C) Plan-and-execute → 3) Break task into steps, execute each step
D) Reflexion → 4) Agent reflects on failures and updates strategy before retrying

<!-- ANSWER: A1,B2,C3,D4 -->
<!-- EXPLANATION: ReAct alternates reasoning and action. Tool use lets the agent invoke external capabilities. Plan-and-execute breaks work into steps. Reflexion uses failure reflection to improve. -->
