Search Header Logo

Graphs in Data Structures - Gunalakshmi

Authored by Cherukuri Gunalakshmi

Computers

University

Used 12+ times

Graphs in Data Structures - Gunalakshmi
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How is a graph represented in memory?

  • Linked List

  • Adjacency Matrix

  • Hash Table

  • Tree Structure

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which set represents the vertices of the graph?

{1,2}, {2,3}. {2,4}, {4,5}, {4,6}

{1, 2, 3, 4, 5, 6,}

{1, 2, 3, 4, 5, 6, 7}

{1,2}, {2,3}. {2,4}, {4,5}, {4,6}, {6,7}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which two vertices are adjacent vertices?

5 is adjacent to 6

3 is adjacent to 6

4 is adjacent to 1

3 is adjacent to 2

4.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

Which order of traversal is correct using depth-first?

A B C G D E F

A B D C E C G

A B G C D F E

A E C F D G C

5.

MULTIPLE CHOICE QUESTION

30 sec • 3 pts

Media Image

Which order of traversal is correct using breadth-first?

A B D E C F G

A B C G D E F

A B D C G E F

A B DG C D E F

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In which scenario is a weighted graph used?

  • When you only need a path between vertices

  • When there is no direction between vertices

  • When edges have associated values, such as cost or distance

  • When all vertices are directly connected to each other

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which graph traversal algorithm uses a stack data structure?


  • BFS

  • Floyd-Warshall Algorithm

  • Dijkstra's Algorithm

DFS

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?