DAY 30 Graph Representation & Traversal - 19th July 2024

DAY 30 Graph Representation & Traversal - 19th July 2024

University

15 Qs

quiz-placeholder

Similar activities

Manufacturing processes ICA QUIZ

Manufacturing processes ICA QUIZ

University

10 Qs

QUIZ 1 : TOPIC 4 [COST VOLUME PROFIT ANALYSIS]

QUIZ 1 : TOPIC 4 [COST VOLUME PROFIT ANALYSIS]

1st Grade - University

20 Qs

SCM MODULE 1

SCM MODULE 1

University

10 Qs

L2 Common Plumbing Processes PT1

L2 Common Plumbing Processes PT1

University - Professional Development

10 Qs

Lectura en Ingles Redes 2022-III

Lectura en Ingles Redes 2022-III

University

10 Qs

JavaScript Basics

JavaScript Basics

12th Grade - University

15 Qs

Integrative strategies & Location and transportation

Integrative strategies & Location and transportation

University

10 Qs

Data Interpretation - Infosys

Data Interpretation - Infosys

University

12 Qs

DAY 30 Graph Representation & Traversal - 19th July 2024

DAY 30 Graph Representation & Traversal - 19th July 2024

Assessment

Quiz

Professional Development

University

Medium

Created by

KVCH CORPORATE

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a graph in data structures?

A linear collection of nodes connected by edges

non-linear collection of nodes connected by edges

A collection of elements arranged in a linear order

A set of sequentially connected elements

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a vertex in a graph?

A connection between two edges

A unidirectional edge

An individual data element

The weight of an edge

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which type of edge has no direction?

Directed edge

Undirected edge

Weighted edge

Self-loop

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In an adjacency matrix, what does a value of 1 represent?

No edge between vertices

Edge between vertices

Self-loop on a vertex

Weighted edge

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the degree of a vertex?

Number of edges connected to the vertex

Number of vertices in the graph

Number of directed edges

Value of the edge weight

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which traversal method horizontally traverses the graph?

Depth-First Search (DFS)

Breadth-First Search (BFS)

Stack traversal

Linear traversal

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a directed graph, what does the adjacency list for a vertex represent?

Vertices that are connected to the given vertex by outgoing edges

Vertices that are connected to the given vertex by incoming edges

All vertices in the graph

None of the above

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?