Search Header Logo

#18 Graphs and Trees

Authored by Claire Buckler

others

Used 7+ times

#18 Graphs and Trees
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?