Skip to content
elevatedevco

LLMs & Agents

AI Agents

Learn AI Agents: 50 practice questions and answers with an interactive quiz — from the offline AI Learning app.

Intermediate50 questions27 quiz questions

Questions & Answers

Tap a question to reveal its answer. Written for self-study and interview preparation.

What is an AI agent?

An AI agent is a program that can sense its surroundings, make decisions, and take actions to reach a goal — all on its own. Think of it like a robot vacuum: it detects walls and dirt, decides where to go, and sucks up the mess without you pressing a button every second. Agents keep working until their goal is done.

What does it mean for an AI agent to be 'autonomous'?

Autonomous means the agent works by itself without needing a human to give it instructions every step of the way. Imagine a self-driving car: you tell it your destination once, and it handles steering, braking, and lane changes on its own. The agent uses its own judgment to complete the task.

What are the three main things every AI agent does?

Every AI agent does three things: Perceive (gather information from its environment, like reading a sensor or seeing an image), Think (decide what to do next based on its goal and what it has perceived), and Act (do something in the world, like sending a message or moving a robot arm). Perceive, think, act — over and over.

What is the 'environment' of an AI agent?

The environment is everything the agent can sense and interact with. For a chess-playing agent, the environment is the chess board. For a weather-forecasting agent, the environment is temperature readings, wind speed data, and satellite images. The agent learns about the world through its environment and changes it through its actions.

What is a 'goal' in the context of an AI agent?

A goal is the target an agent is trying to reach. It's like the destination you type into a GPS. The agent makes every decision with that goal in mind. A delivery drone's goal might be 'deliver package to address X.' Every flight path decision it makes is aimed at hitting that goal safely.

What is a 'reactive' AI agent?

A reactive agent responds directly to what it senses right now, without planning ahead or remembering the past. It's like a thermostat: if the room is cold, it turns on the heater; if warm, it turns it off. No memory, no long-term plan — just instant reaction to the current situation.

What is a 'deliberative' AI agent?

A deliberative agent thinks before it acts. It builds a mental map of the world, considers different options, and plans several steps ahead — like a chess player who thinks five moves into the future before moving a piece. This makes it smarter than a reactive agent but also slower because planning takes time.

What is a multi-agent system?

A multi-agent system is a group of AI agents working together (or sometimes competing) to solve a problem. Imagine a team of robot warehouse workers: one scans items, one drives the cart, one packs boxes. Each agent handles a piece of the job, and together they're much faster than one agent trying to do everything.

What is 'perception' for an AI agent?

Perception is how the agent collects information about its world, like senses for a human. A self-driving car perceives through cameras, radar, and GPS. A customer-service chatbot perceives through the words you type. Without perception, the agent would be blind — it couldn't know what's happening around it and couldn't make smart decisions.

What does an AI agent use to take actions?

Agents use 'actuators' — outputs that change the environment. A robot's actuators are motors and wheels. A software agent's actuators might be clicking buttons on a website, sending emails, or generating text. The actuator is the agent's way of doing something in the real (or digital) world based on its decisions.

What is a 'utility-based' agent?

A utility-based agent doesn't just try to reach one goal — it tries to maximize its 'happiness score' (called utility). If it can't reach the perfect goal, it picks the next best option. A navigation app is utility-based: it prefers the fastest route, but if there's traffic, it picks the second-fastest. It always aims for the best available outcome.

What is a 'learning agent'?

A learning agent gets better at its job over time by experience. When it makes a mistake, it adjusts so it doesn't repeat it — just like how you get better at a video game the more you play. Most modern AI agents, like recommendation systems and voice assistants, are learning agents that continuously improve from data.

What is the 'performance measure' of an AI agent?

A performance measure is how we score how well the agent is doing its job. For a vacuum robot, it might be 'how much floor did you clean in 10 minutes?' For a chess agent, it's 'did you win?' It's like a report card for the agent — it tells us if the agent is actually achieving its goal or not.

What is a 'goal-based' agent?

A goal-based agent stores a description of the goal it wants to reach and plans actions to get there. Unlike a reactive agent (which just reacts), this one asks 'what do I need to do to reach my goal?' A route-planning robot is goal-based: it knows it needs to reach room 5B and plans a path to get there.

What is an 'intelligent agent' in AI?

An intelligent agent is one that doesn't just follow fixed rules — it figures out the best action on its own based on what it perceives. Think of Siri or Google Assistant: they listen to your question, understand its meaning, and choose an appropriate answer. Intelligent agents can handle new situations they haven't seen before.

How does a chatbot act as an AI agent?

A chatbot perceives your typed messages (input), uses an AI model to decide the best response (decision), and sends that response back (action). Some advanced chatbots can also search the web, open apps, or book appointments — those extra actions make them more powerful agents. ChatGPT is a well-known example of an agent-like chatbot.

What is 'agent memory' and why does it matter?

Agent memory lets an agent remember past events so it can make better decisions. Without memory, a chatbot would forget what you said two messages ago — like talking to someone with amnesia. With memory, the agent can say 'Earlier you mentioned you like pizza, so here are pizza restaurants near you.' Memory makes agents feel much more helpful and personal.

What is a 'tool-using' AI agent?

A tool-using agent can call external programs or services to get things done — like a person using a calculator, a map, or a phone. An AI assistant might use a search tool to look up facts, a calendar tool to schedule meetings, or a code tool to run Python. Tools extend what the agent can do far beyond its built-in knowledge.

What is a 'reflex agent'?

A reflex agent follows simple if-then rules with no memory or planning. 'If obstacle detected → turn right.' 'If temperature too high → turn on fan.' It's the simplest type of AI agent. Early video game enemies were reflex agents: 'if player is in range → attack.' They're fast but can't handle complex or unexpected situations.

What makes an 'autonomous vehicle' an AI agent?

A self-driving car ticks all three agent boxes: it perceives the road through cameras and sensors, thinks by running AI algorithms to plan safe routes, and acts by steering, braking, and accelerating. It does all this without a human driver making moment-to-moment decisions. That complete perceive-think-act loop is exactly what makes it an AI agent.

What is the difference between a simple agent and a complex agent?

A simple agent follows basic rules for simple tasks — like a spam filter that blocks emails with certain words. A complex agent can handle many different situations, use multiple tools, remember past events, and plan ahead. Think of the difference between a basic calculator (simple) and a voice assistant that books flights and answers questions (complex).

What is a 'task environment' in AI?

A task environment describes the world the agent lives in — what it can see, what it can do, and how the world responds to its actions. Designing an agent properly requires understanding its task environment first. A chess game has a fully known, turn-based environment. Real traffic is messy, unpredictable, and always changing — a much harder environment.

What does 'rational' mean for an AI agent?

A rational agent always picks the action most likely to achieve the best outcome given what it knows. It doesn't need to be perfect — it just needs to make the best choice with available information. A rational chess agent might still lose to a grandmaster, but it always plays the best move it can calculate. Rational ≠ perfect; rational = best possible given the info.

How do AI agents use 'feedback' to improve?

Feedback tells the agent whether its last action was good or bad. If a game-playing agent wins, it gets positive feedback (reward). If it loses, negative feedback (penalty). Over thousands of games, the agent learns which actions lead to wins and does those more often. This feedback loop is called reinforcement learning — like training a dog with treats and corrections.

What is 'reinforcement learning' and how does it relate to agents?

Reinforcement learning (RL) is a way to train agents by giving them rewards for good actions and penalties for bad ones. The agent explores its environment, tries things out, and gradually learns the best strategy. Google DeepMind used RL to build AlphaGo, the first AI to beat a world champion in the game of Go — without being told the rules beyond the basics.

What is a 'virtual assistant' agent?

Virtual assistants like Siri, Alexa, and Google Assistant are AI agents designed to help with everyday tasks. They hear your voice, understand the words using speech recognition and NLP, decide what you want, and take action — setting timers, playing music, or answering questions. They combine perception (hearing), thinking (understanding), and acting (doing the task) in real time.

What is an 'embodied agent'?

An embodied agent has a physical body it uses to interact with the real world — like a robot. Unlike a software agent that only exists digitally, an embodied agent can touch, lift, and move things. Robot dogs like Boston Dynamics' Spot are embodied agents. Their AI 'brain' decides where to walk, and their legs and joints carry out the action.

What is agent 'planning'?

Planning is when an agent figures out a sequence of steps to reach its goal — like making a to-do list before starting a big project. A planning agent might ask: 'What is my goal? What do I know? What steps get me there?' A robot delivering mail in an office plans its route: 'Go to floor 3, turn left, deliver to room 312, then go to room 315.'

What is the role of 'sensors' in an AI agent?

Sensors are the eyes, ears, and noses of an AI agent — they collect raw data from the environment. A camera is a visual sensor. A microphone is a sound sensor. A GPS is a location sensor. Without sensors, the agent would be completely blind to what's happening. Better sensors mean better information, which usually leads to smarter decisions.

What is an 'agent architecture'?

Agent architecture is the internal design — the blueprint — of how an agent works. It defines how it stores information, how it makes decisions, and how it connects perception to action. Some architectures are simple (just rules), some include memory, planning, and learning. Choosing the right architecture depends on how complex the agent's job needs to be.

What are 'software agents' used for on the internet?

Software agents crawl the web, index pages for search engines, compare prices across shopping sites, monitor stock prices, and detect fraud. Google's web crawler is a software agent that visits billions of pages, follows links, and builds the search index. Your bank uses software agents to spot unusual transactions and flag potential credit-card fraud automatically.

What is a 'game-playing agent'?

A game-playing agent is an AI that learns to play a game and tries to win. Examples include DeepMind's AlphaGo (Go), OpenAI Five (Dota 2), and Stockfish (chess). These agents study millions of game states, learn which moves lead to winning, and can beat the best human players. They're also great test beds for developing smarter AI decision-making in general.

How is an AI shopping recommendation agent like a helpful store clerk?

A recommendation agent watches what you browse and buy, builds a profile of your tastes, and suggests items you're likely to love — just like a friendly store clerk who remembers your preferences. Amazon and Netflix use these agents to personalize what you see. The more data they collect, the better their suggestions get, which keeps you shopping or watching longer.

What is 'agent communication' in multi-agent systems?

In multi-agent systems, agents need to share information to cooperate. They use special message formats to talk to each other — like robots in a factory sending status updates: 'I've finished welding, ready for the next part.' Good communication lets agents divide work, avoid conflicts, and solve problems that are too big for one agent alone.

What is the difference between an agent's 'percept' and 'action'?

A percept is a single piece of information the agent receives from its environment at one moment — like one photo from a camera. An action is what the agent does in response — like steering the wheel. The full history of percepts an agent has seen is called its percept sequence, and the agent uses that to decide which action to take next.

What makes a 'stochastic' environment hard for agents?

In a stochastic environment, things happen randomly and you can't predict them exactly. Driving in rain is stochastic — another car might slide, a gust of wind might push you. This makes planning hard because the agent's action doesn't always produce the same result. Agents in stochastic environments must handle uncertainty, often by calculating probabilities instead of certain outcomes.

What is an 'episodic' environment for an AI agent?

In an episodic environment, each task is a separate episode with no connection to previous ones. An email spam filter is episodic: it judges each email independently. What it decided yesterday doesn't affect today's decision. This is simpler than 'sequential' environments (like chess) where each move affects the entire future of the game.

What is a 'model-based' agent?

A model-based agent keeps an internal mental model of the world — a map of how things work — so it can track what's happening even when it can't see everything directly. Like a person navigating a familiar building with the lights off: you remember where the walls and doors are. This internal model helps the agent make better decisions in partial or hidden situations.

How does an AI customer support agent work?

An AI customer support agent reads your typed complaint, understands the issue using natural language processing, looks up your account in a database (tool use), and either answers your question or routes you to the right department. Companies like airlines and banks use these agents to handle thousands of support requests simultaneously without human staff for each one.

What is 'emergent behavior' in multi-agent systems?

Emergent behavior is when a group of simple agents together produce surprisingly complex, intelligent behavior that no single agent was programmed to do. Think of ants: each ant follows simple rules (follow pheromone trails), but the colony collectively builds complex tunnels and efficiently finds food. In AI, flocking drones emerge coordinated patterns from simple local rules between agents.

What is an 'agent loop'?

The agent loop is the repeating cycle every agent runs through: sense → think → act → sense → think → act, again and again until the goal is done. It's like a heartbeat for the agent. Self-driving cars run this loop hundreds of times per second — constantly sensing the road, calculating the best move, and adjusting the steering.

What is a 'language agent'?

A language agent uses a large language model (like GPT) as its 'brain' to reason, plan, and decide actions expressed in plain English. It can read instructions, break them into steps, use tools like web search, and write results. Projects like AutoGPT and LangChain use language agents to automate complex tasks — for example, researching a topic and writing a report automatically.

What role does 'state' play in an AI agent?

State is the agent's current snapshot of the world — all the information it has stored about what's happening right now. A chess agent's state is the current position of every piece on the board. A navigation agent's state includes your location, destination, and traffic. The agent uses state to choose its next action. Richer state = smarter decisions.

What is an 'AI agent pipeline'?

A pipeline is the sequence of steps an agent follows to turn raw input into a final action. For a voice assistant: 1) speech-to-text converts your words, 2) NLP understands your intent, 3) the reasoning module decides what to do, 4) an action module executes it. Each step feeds the next, like an assembly line where your voice enters one end and the right answer comes out the other.

How do agents handle situations they have never seen before?

Good agents generalize — they apply patterns learned from past experience to brand-new situations. A medical diagnosis agent trained on thousands of X-rays can spot unusual patterns in a scan it has never seen. This is similar to how a doctor uses knowledge from textbooks and past cases to diagnose a rare condition they've never personally encountered before.

What is the future of AI agents?

AI agents are rapidly getting smarter, more autonomous, and more connected. Future agents will manage entire workflows — booking travel, filing reports, and running experiments — with minimal human input. They'll cooperate in massive multi-agent networks, use more powerful tools, and work in physical robots. Challenges include keeping them safe, honest, and under human control when it matters.

Why do AI agents sometimes make mistakes?

Agents can go wrong for several reasons: bad or incomplete sensor data (garbage in, garbage out), a goal that doesn't quite capture what humans really want, or unexpected situations outside their training. A delivery robot might fail if ice makes the sidewalk unrecognizable. Designing agents that fail gracefully — and ask for human help when confused — is a key challenge in AI.

What is 'agent alignment'?

Agent alignment means making sure an AI agent's goals and behaviors match what humans actually want. If you tell a cleaning robot 'make the house look clean' but don't define 'clean' precisely, it might just hide all your stuff in closets! Alignment research works on how to specify goals clearly and ensure agents pursue human values, not just literal instructions.

How are AI agents used in healthcare?

Healthcare AI agents monitor patients' vital signs and alert nurses when something looks dangerous, help doctors analyze medical images for tumors, suggest drug dosages, and remind patients to take medication. They work 24/7 without getting tired. IBM Watson and other systems assist doctors by reading thousands of research papers to suggest treatments humans might have missed.

What is the difference between an AI agent and a regular computer program?

A regular program just follows fixed instructions — input goes in, output comes out, the same way every time. An AI agent, on the other hand, can perceive a changing environment, make decisions, take actions, and adapt over time. A calculator is a program. A self-driving car is an agent. The agent is flexible and goal-directed; the program just executes a fixed recipe.

Put it into practice with AI Learning

This topic — and hundreds more — comes from our free, offline AI Learning app. Practice Q&A, quizzes and cheat sheets anywhere, no account needed.

  • Free
  • No account
  • Works offline
Coming soon toGoogle Play