Graphs in Data Structures - Gunalakshmi

Graphs in Data Structures - Gunalakshmi

University

15 Qs

quiz-placeholder

Similar activities

Quiz 2 - ASD - B

Quiz 2 - ASD - B

University

10 Qs

DAA QUIZ-1

DAA QUIZ-1

University

19 Qs

Data Structure And Algorithm II

Data Structure And Algorithm II

University

15 Qs

Data Structures Activity - 1

Data Structures Activity - 1

University

15 Qs

DS QUIZ 2

DS QUIZ 2

University

20 Qs

Quiz 1 (TDS Algorithm Design and Analysis - DA1A)

Quiz 1 (TDS Algorithm Design and Analysis - DA1A)

University

20 Qs

Data Structures Quiz

Data Structures Quiz

University

20 Qs

EC8393_FDS_MODEL_EXAM_1_PART B

EC8393_FDS_MODEL_EXAM_1_PART B

University

10 Qs

Graphs in Data Structures - Gunalakshmi

Graphs in Data Structures - Gunalakshmi

Assessment

Quiz

Computers

University

Medium

Created by

Cherukuri Gunalakshmi

Used 12+ times

FREE Resource

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

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?