wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Search Algorithms Quiz

Total questions: 25

Worksheet time: 25mins

Name
Class
Date
1.

In which search strategy is the shallowest node expanded first?

a)

Depth First Search

b)

Breadth First Search

c)

Hill Climbing

d)

A* Search

2.

Which of the following is NOT an example of uninformed search?

a)

Breadth First Search

b)

Depth First Search

c)

Hill Climbing

d)

Uniform Cost Search

3.

Which of these search algorithms uses a heuristic function to guide the search?

a)

Breadth First Search

b)

Depth First Search

c)

Hill Climbing

d)

Depth Limited Search

4.

The A* algorithm uses which two components to evaluate nodes?

a)

Cost and depth

b)

Path cost and heuristic cost

c)

Breadth and depth

d)

Step cost only

5.

What is the primary disadvantage of depth first search?

a)

May find sub-optimal solution

b)

High space requirement

c)

Needs heuristic function

d)

Cannot be used in trees

6.

Which search algorithm is guaranteed to find the optimal solution if the heuristic is admissible?

a)

Hill Climbing

b)

A* Search

c)

Depth First Search

d)

Breadth First Search

7.

What is the main challenge in heuristic search?

a)

Using too little memory

b)

Defining a suitable heuristic

c)

Infinite loops

d)

Large step costs

8.

The Hill Climbing algorithm can get stuck at which points?

a)

Local maxima

b)

Goal node

c)

Heuristic minima

d)

Both a and c

9.

Which algorithm is best suited when solution spaces are AND/OR graphs?

a)

A* algorithm

b)

AO* algorithm

c)

BFS

d)

Hill climbing

10.

In adversarial search, which algorithm is commonly used in two-player games?

a)

A*

b)

Mini-max

c)

AO*

d)

Hill climbing

11.

What is the purpose of alpha-beta pruning in game trees?

a)

To learn heuristics

b)

To reduce the number of nodes evaluated by the minimax algorithm

c)

To solve AND/OR graphs

d)

To sort game moves

12.

Which property is desirable for heuristic functions in A* search?

a)

Overestimating actual cost

b)

Underestimating actual cost

c)

Being constant

d)

Infinite values

13.

In problem reduction, a problem is broken down into:

a)

ASTs

b)

Sub-problems

c)

Games

d)

States

14.

Which of the following searches is uninformed?

a)

A* search

b)

Best-first search

c)

Breadth First Search

d)

Hill climbing

15.

In game playing, an evaluation function is used to:

a)

Expand nodes

b)

Estimate board value

c)

Prune nodes

d)

Learn opponent strategies

16.

The major drawback of alpha-beta pruning is:

a)

It finds sub-optimal solutions

b)

It cannot be used with minimax

c)

It requires good move ordering for maximum benefit

d)

It increases tree size

17.

Which algorithm is specifically designed to handle graphs with AND and OR nodes?

a)

Mini-max

b)

AO*

c)

BFS

d)

DFS

18.

Which of the following is NOT a property of breadth-first search?

a)

Completeness

b)

Optimality

c)

Large memory requirements

d)

Fastest search

19.

How does depth first search traverse a tree?

a)

It explores as far as possible down one branch before backtracking

b)

It visits all siblings before children

c)

It only explores breadth

d)

It always finds the shortest path

20.

Hill climbing fails when:

a)

Heuristic increases

b)

It reaches a local optimum

c)

Path cost increases

d)

Node degree is high

21.

What is the main idea of minimax algorithm in game playing?

a)

Minimize time complexity

b)

Minimize the possible loss

c)

Maximize node expansions

d)

Prune invalid moves

22.

Which search algorithm follows the "best-first" strategy?

a)

BFS

b)

A* search

c)

Uniform Cost Search

d)

DFS

23.

"Evaluation function" in games is typically used when:

a)

Full search to terminal state is infeasible

b)

Applying BFS

c)

Applying DFS

d)

Solving AND/OR graphs

24.

What is the main difference between DFS and BFS?

a)

DFS uses a queue, BFS a stack

b)

BFS uses a queue, DFS a stack

c)

BFS requires heuristic

d)

DFS finds optimal path

25.

The main problem in game playing algorithms is:

a)

State space explosion

b)

No heuristic available

c)

Cannot prune nodes

d)

Always terminates early