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 minimum spanning tree of a weighted graph is a spanning tree in which the sum of the weights of the edges is less than or equal to the sum of the weights for any other spanning tree for the same graph.
(True/False)
4.9/5
(32)
A(n) _______________________ is one implementation of a graph where the graph is implemented as a linked structure, and each node contains a structure that contains links to all other nodes.
(Multiple Choice)
4.9/5
(32)
A graph in which every edge is connected to every other edge is said to be ___________________ .
(Multiple Choice)
4.9/5
(35)
Consider the following undirected graph.
vertices: 1, 2, 3, 4, 5
edges: (1,2),(3,4), (2,4), (2, 3)
Is the graph connected?
(Short Answer)
4.9/5
(37)
Consider the following undirected graph.
vertices: 1, 2, 3, 4, 5
edges: (1,2),(3,4), (2,4), (2, 3)
Is the graph acyclic?
(Short Answer)
4.9/5
(37)
A spanning tree of a graph is a tree with that always has which of the following properties?
(Multiple Choice)
4.8/5
(42)
In a(n) _____________________ graph, an edge from node labeled A to a node labeled B is the same as having an edge from B to A.
(Multiple Choice)
4.9/5
(35)
A graph with integer weights or costs associated with edges is sometimes called a(n) _________________.
(Multiple Choice)
4.8/5
(31)
In an undirected graph, an edge of the form (A, B) is the same as an edge of the form (B, A).
(True/False)
4.8/5
(38)
What is a complete graph? How many edges are contained in a complete graph on n vertices?
(Essay)
4.8/5
(33)
An undirected graph is connected if for every pair of vertices, there is an edge between them.
(True/False)
4.9/5
(31)
What is the difference between a directed graph and an undirected graph?
(Essay)
4.7/5
(42)
A depth-first traversal of a graph uses which of the following data structures?
(Multiple Choice)
4.8/5
(29)
What is the maximum number of edges in a directed graph on n vertices? Explain how you arrived at your solution.
(Essay)
4.8/5
(38)
In graph terminology, the nodes are referred to as ____________________.
(Multiple Choice)
5.0/5
(35)
A graph is said to have a(n) ________________, if there exists a path where the first and last vertices are the same, and no edge is repeated.
(Multiple Choice)
4.9/5
(31)
Showing 21 - 40 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)