
Quiz on BFS and DFS
Authored by Kenneth Tai
Computers
11th Grade
Used 4+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does BFS stand for?
Binary Fast Search
Breadth Fast Search
Binary First Search
Breadth First Search
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which data structure does BFS use?
Stack
Queue
Array
Linked List
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main conceptual difference between BFS and DFS?
BFS uses LIFO, DFS uses FIFO
BFS is faster than DFS
BFS builds the tree level by level, DFS builds sub-tree by sub-tree
BFS is used for acyclic graphs, DFS for cyclic graphs
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which approach for keeping track the last node visited does DFS use?
Queue FIFO (First In First Out)
Stack LIFO (Last In First Out)
Priority Queue
Randomized
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which approach for keeping track the nodes to be visited does BFS use?
Queue FIFO (First In First Out)
Stack LIFO (Last In First Out)
Priority Queue
Randomized
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For which scenario is BFS more suitable?
Searching vertices closer to the source
Finding solutions far from the source
Detecting cycles in graphs
Finding strongly connected components
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an application of BFS?
Cycle detection
Topological sorting
Shortest path in unweighted graphs
Finding strongly connected components
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?