
CC104 2A
Authored by Analyn Edañol
Other
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Which traversal method uses a stack data structure to keep track of unvisited nodes?
Breadth First Search
Dijkstra's Algorithm
Kruskal's Algorithm
Depth First Search
2.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Which type of graph traversal would you use if you wanted to visit all nodes at the current depth level before moving to the next depth level?
Breadth First Search
Prim's Algorithm
Bellman-Ford Algorithm
Depth First Search
3.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
In graph terminology, what does a 'leaf' node refer to?
A node with only one adjacent node
A node with no outgoing edges
A node with no incoming edges
A node with no adjacent nodes
4.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
Which graph representation is more space-efficient for a sparse graph?
Adjacency List
Incidence Matrix
Adjacency Matrix
Edge List
5.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
In an adjacency matrix representation of a graph, what value is used to indicate the absence of an edge between vertices Vi and Vj?
1
0
-1
None
6.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
In a graph G, if there is a path between every pair of vertices, what type of graph is G?
Directed graph
Disconnected graph
Bipartite graph
Complete graph
7.
MULTIPLE CHOICE QUESTION
1 min • 3 pts
What is the primary difference between a directed graph and an undirected graph?
Directed graphs allow edges to point in one direction; undirected graphs do not.
Directed graphs are sparse; undirected graphs are dense.
Directed graphs have weights on edges; undirected graphs do not.
Directed graphs have cycles; undirected graphs do not.
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?