Free Practice Quiz Question List

2 Search and Problem Solving Online Quiz Questions

Use this free practice quiz with 20 questions to review 2 Search and Problem Solving, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

Which rule does greedy best-first search use to choose the next state to expand?

  1. A

    Expand the path with the smallest accumulated cost so far.

  2. B

    Expand the state with the smallest estimated remaining cost, h(n)h(n).

  3. C

    Expand the shallowest path first.

  4. D

    Expand the state with the smallest value of g(n)+h(n)g(n)+h(n).

02
Written response
1 point

What is the name of the estimate of the remaining cost from a state to a goal, often written as h(n)h(n)?

03
Fill in the blank
1 point

In a state-space graph, states are represented as , while actions are represented as .

04
True or false
1 point

If A* uses h(n)=0h(n)=0 for every state, it is equivalent to uniform-cost search.

  1. A

    True

  2. B

    False

05
Choose one
1 point

A puzzle solver has limited memory and can accept exploring a deep solution, even if it is not the least-cost one. Which uninformed strategy best fits these constraints?

  1. A

    Breadth-first search

  2. B

    Uniform-cost search

  3. C

    Depth-first search

  4. D

    Greedy best-first search

06
Choose all
1 point

Select all statements that correctly describe breadth-first search (BFS).

  1. A

    It expands the shallowest path first.

  2. B

    It uses a first-in, first-out queue.

  3. C

    It always expands the path with the smallest accumulated cost.

  4. D

    It is optimal when all actions have equal cost.

07
Written response
1 point

On a grid where movement is allowed in four directions, a state's horizontal and vertical differences from the goal are 33 and 44 moves. What is its Manhattan-distance estimate when obstacles are ignored? Enter the count in moves.

08
True or false
1 point

In a search space with cycles or unbounded depth, depth-first search may follow a path indefinitely and fail to find a goal even when one exists.

  1. A

    True

  2. B

    False

09
Fill in the blank
1 point

A solution to a search problem, often called a , is a sequence of actions from the start state to a goal state.

10
Choose one
1 point

A delivery robot's roads have different travel times, and it needs a route with the lowest total travel time. Which uninformed search strategy should it use?

  1. A

    Breadth-first search

  2. B

    Uniform-cost search

  3. C

    Depth-first search

  4. D

    Greedy best-first search

11
Choose all
1 point

Select all statements that are correct about A* search and admissible heuristics.

  1. A

    A* ranks states using f(n)=g(n)+h(n)f(n)=g(n)+h(n).

  2. B

    A* requires h(n)h(n) to equal the true remaining cost for every state.

  3. C

    An admissible heuristic never overestimates the true remaining cost.

  4. D

    A* ranks states using only the estimated remaining cost, h(n)h(n).

12
Open ended
1 point

A robot in a maze must collect several keys before reaching an exit. What information should its search state record, and why would recording only its location be insufficient?

13
Choose one
1 point

Which statement correctly distinguishes a search tree from a state-space graph?

  1. A

    A state can appear only once in a search tree, even if different paths reach it.

  2. B

    The same state can appear multiple times in a search tree when reached by different paths.

  3. C

    A state-space graph represents candidate paths, while a search tree represents actions as edges.

  4. D

    A search tree and a state-space graph always contain exactly the same nodes and edges.

14
True or false
1 point

If road routes or travel costs change, a route-finding system may need to update its problem representation or cost estimates.

  1. A

    True

  2. B

    False

15
Choose one
1 point

A robot explores a maze in which it must collect several objects before reaching the exit. Which state representation retains the information needed to determine both legal next actions and whether the goal has been reached?

  1. A

    The robot’s current location only

  2. B

    The robot’s current location and which objects it has collected

  3. C

    The number of moves taken, regardless of what has been collected

  4. D

    The order in which the robot first entered each corridor

16
Choose one
1 point

Which search strategy expands the shallowest path first?

  1. A

    Breadth-first search

  2. B

    Depth-first search

  3. C

    Uniform-cost search

  4. D

    Greedy best-first search

17
Choose one
1 point

A route-planning problem assigns different travel costs to roads, and the goal is to minimize total travel cost. Which search strategy should expand the path with the lowest accumulated cost?

  1. A

    Breadth-first search, because it always minimizes total cost

  2. B

    Depth-first search, because it explores one route completely

  3. C

    Uniform-cost search, because it expands the least-cost path so far

  4. D

    Greedy best-first search, because it expands the path with the fewest roads

18
Choose one
1 point

A search algorithm always expands the deepest path currently on its frontier. Which description best matches its frontier behavior and a possible limitation in a state space with cycles?

  1. A

    A first-in, first-out queue; it always finds the least-cost route

  2. B

    A priority queue ordered by estimated remaining cost; it cannot revisit a state

  3. C

    A priority queue ordered by accumulated cost; it always expands the shallowest path

  4. D

    A last-in, first-out stack; it can follow a cycle indefinitely

19
Written response
1 point

In a search algorithm, what is the name for the collection of discovered paths that have not yet been expanded?

20
Written response
1 point

On a grid where movement is allowed only horizontally or vertically, a robot is at (2,3)(2,3) and its goal is at (7,5)(7,5). Ignoring obstacles, what is the Manhattan-distance estimate of the remaining moves?