Quiz on BFS and DFS

Quiz on BFS and DFS

11th Grade

10 Qs

quiz-placeholder

Similar activities

Đúng Sai

Đúng Sai

11th Grade

8 Qs

Algorithm Complexity Quiz

Algorithm Complexity Quiz

9th - 12th Grade

10 Qs

DNA trees

DNA trees

11th Grade

11 Qs

Computer Software

Computer Software

9th - 12th Grade

10 Qs

Skip List Quizizz

Skip List Quizizz

9th Grade - University

12 Qs

AS Computing: Data Structures

AS Computing: Data Structures

10th Grade - University

15 Qs

Parcurgerea Grafurilor (BFS)

Parcurgerea Grafurilor (BFS)

11th Grade

6 Qs

SOAL PRE TES BANDWIDTH

SOAL PRE TES BANDWIDTH

9th - 12th Grade

10 Qs

Quiz on BFS and DFS

Quiz on BFS and DFS

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Kenneth Tai

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?