Exam 16: Graphs
Exam 1: Introduction40 Questions
Exam 2: Data and Expressions40 Questions
Exam 3: Using Classes and Objects40 Questions
Exam 4: Conditionals and Loops40 Questions
Exam 5: Writing Classes40 Questions
Exam 6: Graphical User Interfaces40 Questions
Exam 7: Arrays40 Questions
Exam 8: Inheritance40 Questions
Exam 9: Polymorphism39 Questions
Exam 11: Recursion40 Questions
Exam 10: Exceptions40 Questions
Exam 12: Searching and Sorting40 Questions
Exam 13: Trees40 Questions
Exam 14: Introduction to Collections and Stacks40 Questions
Exam 15: Heaps and Priority Queues40 Questions
Exam 16: Graphs40 Questions
Select questions type
A complete graph on n vertices has n(n-1)/2 edges.
Free
(True/False)
4.9/5
(42)
Correct Answer:
True
Consider the following undirected graph.
vertices: 1, 2, 3, 4, 5
edges: (1,2),(3,4), (2,4), (2, 3), (3,5), (4,5)
Write out an adjacency matrix for this graph.
Free
(Essay)
4.8/5
(49)
Correct Answer:
A cycle is a path that starts and ends on the same vertex.
Free
(True/False)
4.7/5
(35)
Correct Answer:
False
What is the difference between a spanning tree and a minimum spanning tree?
(Essay)
4.9/5
(37)
An adjacency matrix is one approach to implementing a graph that uses a two-dimensional array.
(True/False)
4.9/5
(42)
Consider a digraph with the following vertices and edges: vertices: 1, 2, 3, 4
Edges: (1,2), (2,1), (3,4)
Which of the following statements are true?
(Multiple Choice)
4.9/5
(37)
A breadth-first traversal of a graph uses which of the following data structures?
(Multiple Choice)
4.8/5
(37)
A breadth-first traversal uses a stack as a supporting data structure.
(True/False)
4.9/5
(50)
Which of the following describes vertices that are adjacent?
(Multiple Choice)
4.7/5
(45)
What data structure is used to support a depth-first traversal of a graph?
(Short Answer)
4.9/5
(47)
A __________________ traversal can be used to determine if a graph is connected.
(Multiple Choice)
5.0/5
(31)
A(n) ___________________ is a two-dimensional array that can be used to represent a graph.
(Multiple Choice)
4.8/5
(40)
Consider the following undirected graph.
vertices: 1, 2, 3, 4, 5
edges: (1,2),(3,4), (2,4), (2, 3), (3,5), (4,5)
Give a spanning tree for this graph.
(Short Answer)
4.8/5
(37)
A spanning tree of a graph does not necessarily include all of the edges of the graph.
(True/False)
4.9/5
(36)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)