#18 Graphs and Trees

#18 Graphs and Trees

20 Qs

quiz-placeholder

Similar activities

Pax Chapters 28, 29, 30

Pax Chapters 28, 29, 30

KG - University

20 Qs

Dystopian elements and Short Story

Dystopian elements and Short Story

8th Grade

16 Qs

Circulatory and Lymphatic System Review

Circulatory and Lymphatic System Review

KG - University

20 Qs

Duplicate of Structure of flowering plant LC

Duplicate of Structure of flowering plant LC

KG - University

20 Qs

PLANTS

PLANTS

KG - University

17 Qs

web 3 nodeJS

web 3 nodeJS

KG - University

20 Qs

#19 Stacks Queues and Linked Lists

#19 Stacks Queues and Linked Lists

KG - University

20 Qs

#18 Graphs and Trees

#18 Graphs and Trees

Assessment

Quiz

others

Medium

Created by

Claire Buckler

Used 7+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
1. Starting at 'T' on the graph shown below, which of these sequences is given by a depth-first search?
A. TXYZUVW
TVUZXYW
TUVWXYZ
TVUXWZY

2.

MULTIPLE CHOICE QUESTION

30 sec • Ungraded

2. Which of these statements is true?
A. A directed graph has a root node and ends at leaf nodes
B. An undirected graph cannot be traversed using a depth-first search
C. Both a directed and an undirected graph can be traversed using either breadth-first or depth-first traversal techniques
D. An undirected graph has a root node and ends at leaf nodes

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

3. What data structure is commonly used to manage breadth-first traversal of graph data structures?
A. Hash table
B. Linked list
C. Stack
D. Queue

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

4. Which of these real-world scenarios does not lend itself to representation by a graph data structure?
A. Railway stations and tracks between them
International flight routeB. s
C. Internet servers across a metropolitan area
D. The organisation of computer memory

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
5. Starting at '0' on the graph shown below, which of these sequences is given by a breadth-first search?
A. 0458761932
B. 0475698132
C. 0458132967
D. 0854169732

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
6. An algorithm is written to randomly visit all the nodes in the graph below at least once starting from '1'. Which of the following contains an illegal/erroneous random traversal of the graph?
A. 124635
B. 126453
C. 126354
D. 1245635

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

7. Which of the following techniques cannot be used to represent a graph data structure?
A. A logic circuit diagram
B. An adjacency matrix
C. An object-oriented program
D. An array/list of tuples

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?