Logic Agents and Knowledge Representation Practice Quiz (11 questions)

All questions and answers

1. What distinguishes a knowledge-based agent from an agent that reacts without maintaining an internal world model?

It stores past actions but leaves percept interpretation and action selection to its environment.
It maps each percept directly to a fixed action without storing information about the world.
It maintains and updates internal knowledge, reasons over it, and uses a formal world representation to choose actions.
It selects actions by maximizing a numerical reward without representing facts or relationships.

It maintains and updates internal knowledge, reasons over it, and uses a formal world representation to choose actions.

Explanation

A knowledge-based agent maintains an internal state of knowledge, updates it from observations, reasons over it, and selects actions using a formal representation. A direct percept-to-action mapping does not capture this internal knowledge-and-reasoning architecture.

2. In a generic knowledge-based agent cycle, what happens after the agent receives a percept and tells the knowledge base what it perceives?

It records a possible action in the knowledge base, then waits for the environment to select and return it.
It returns an action first, then asks the knowledge base to explain the percept and records the explanation.
It asks the inference system to execute an action, then tells the knowledge base which percept the action produced.
It asks the knowledge base which action to take, records the chosen action in the knowledge base, and returns that action.

It asks the knowledge base which action to take, records the chosen action in the knowledge base, and returns that action.

Explanation

After recording the percept, the agent queries the knowledge base for an action, informs it of the selected action, and returns that action. The agent does not delegate execution or action selection to the environment.

3. What is a knowledge base in a knowledge-based system?

A set of action commands that directly controls the agent's behavior.
A collection of sentences in a knowledge representation language that stores facts about the world.
A procedure that applies logical rules to derive new sentences from stored information.
A sequence of percepts and actions that records the agent's interaction history.

A collection of sentences in a knowledge representation language that stores facts about the world.

Explanation

A knowledge base stores facts about the world as sentences expressed in a knowledge representation language. Applying logical rules to derive new sentences is the role of inference, not the definition of the knowledge base.

4. An agent receives a percept, seeks guidance about its next action, and then carries out the selected action; which sequence describes these operations?

TELL adds the percept, PERFORM queries for an action, and ASK executes the selected action.
PERFORM adds the percept, TELL queries for an action, and ASK executes the selected action.
TELL adds the percept, ASK queries for an action, and PERFORM executes the selected action.
ASK adds the percept, PERFORM queries for an action, and TELL executes the selected action.

TELL adds the percept, ASK queries for an action, and PERFORM executes the selected action.

Explanation

TELL records what the agent perceives, ASK queries which action should be performed, and PERFORM carries out the selected action. The plausible mix-up is treating PERFORM as the query operation, when it denotes execution.

5. What characterizes the logical level of an agent's design?

Its logic is physically represented to guide actions.
Its knowledge is encoded in logical sentences.
Its desired behavior is directly encoded as program code.
Its goals and knowledge specify what it knows.

Its knowledge is encoded in logical sentences.

Explanation

At the logical level, the agent's knowledge is represented through logical sentences. The knowledge level instead specifies the agent by what it knows and its goals.

6. How many rooms are arranged in the Wumpus World cave?

Twelve rooms in a three-by-four grid
Sixteen rooms in a four-by-four grid
Nine rooms in a three-by-three grid
Twenty rooms in a four-by-five grid

Sixteen rooms in a four-by-four grid

Explanation

The cave contains 16 rooms arranged as a 4-by-4 grid connected by passageways. A 3-by-4 layout has fewer rooms and does not match the environment’s stated dimensions.

7. What role does the Wumpus world’s performance measure serve in evaluating an agent’s behavior?

It limits which movements and tools the agent can use while navigating the cave.
It assigns rewards and penalties to outcomes and actions, such as gaining gold, dying, or using an arrow.
It determines where the Wumpus, gold, and pits are placed before the agent begins exploring.
It specifies which percepts the agent receives in each room, such as a breeze or a stench.

It assigns rewards and penalties to outcomes and actions, such as gaining gold, dying, or using an arrow.

Explanation

The performance measure scores outcomes and actions, rewarding escape with gold and penalizing death, each action, and arrow use. The percept list describes what the agent senses, not how its behavior is evaluated.

8. Which distinction correctly describes deductive and inductive logic?

Deduction assigns truth values to sentences, while induction defines which expressions are allowable.
Deduction draws conclusions from complete evidence, while induction generalizes from particular observations.
Deduction encodes objects and relations, while induction mechanically derives theorems from sentences.
Deduction generalizes from particular observations, while induction draws conclusions from complete evidence.

Deduction draws conclusions from complete evidence, while induction generalizes from particular observations.

Explanation

Deductive reasoning draws a conclusion from complete evidence, whereas inductive reasoning proceeds bottom-up from particular observations. Assigning meanings and truth values belongs to semantics, not to the distinction between deduction and induction.

9. How do an atomic proposition and a compound proposition differ?

An atomic proposition combines simpler propositions using connectives, while a compound proposition is a single proposition symbol.
An atomic proposition is a single proposition symbol, while a compound proposition combines simpler propositions using connectives and parentheses.
An atomic proposition expresses a question or command, while a compound proposition makes a declarative claim.
An atomic proposition is true under every valuation, while a compound proposition may be true or false depending on its valuation.

An atomic proposition is a single proposition symbol, while a compound proposition combines simpler propositions using connectives and parentheses.

Explanation

An atomic proposition consists of one proposition symbol, whereas a compound proposition is formed by combining simpler propositions with connectives and parentheses. A formula’s truth under different valuations does not determine whether it is atomic or compound.

10. Which inference rule follows from P∨QP \lor Q and ¬P\neg P to conclude QQ?

Modus Tollens
Hypothetical Syllogism
Resolution
Disjunctive Syllogism

Disjunctive Syllogism

Explanation

Disjunctive Syllogism eliminates the false disjunct when P∨QP \lor Q and ¬P\neg P are known, leaving QQ. Hypothetical Syllogism instead combines two implications that share an intermediate proposition.

11. What is a consequence of propositional logic's inability to express quantification directly?

It cannot directly combine propositions using conjunction or disjunction.
It cannot directly express that two propositions have identical truth-table columns.
It cannot directly derive conclusions by applying logical inference rules.
It cannot directly state that a property holds for every object or for at least one object.

It cannot directly state that a property holds for every object or for at least one object.

Explanation

Without quantifiers, propositional logic cannot directly make claims about all or some members of a domain. The inability to express quantification does not prevent it from using connectives or applying inference rules.

Study with flashcards

Lock in the answers with 10 flashcards on Logic Agents and Knowledge Representation.

What does a knowledge-based agent maintain, and how does it use that knowledge?

It maintains an internal world representation, reasons over it, updates it from observations, and selects actions.

What are the two components of a knowledge-based agent?

A knowledge base and an inference system.

What does a knowledge base store, and how are its sentences expressed?

It stores facts about the world in a knowledge representation language.

See the flashcards →

Read the study guide

Go over the full study guide for Logic Agents and Knowledge Representation.

Read the study guide →

Related classes

Make your own practice quizzes

Upload your class notes and Revizly writes a practice quiz with explained answers in about a minute.

Quiz maker