#18 Graphs and Trees

#18 Graphs and Trees

20 Qs

quiz-placeholder

Similar activities

Graph and Tree Traversal

Graph and Tree Traversal

KG - University

15 Qs

Ch. 11 Quiz: Bits and bytes

Ch. 11 Quiz: Bits and bytes

11th Grade

16 Qs

Internet Quiz

Internet Quiz

10th Grade

24 Qs

Y13s Big Media Language Theories Quiz

Y13s Big Media Language Theories Quiz

KG - University

20 Qs

10 - Computação com Cloud Functions

10 - Computação com Cloud Functions

KG - University

20 Qs

Algorithms Assessment

Algorithms Assessment

KG - University

18 Qs

Arnold's Apple Tree Quiz

Arnold's Apple Tree Quiz

2nd Grade - University

20 Qs

Machine Learning Types

Machine Learning Types

University

18 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?