Exam 20: Graphs
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Input/Output50 Questions
Exam 4: Control Structures I (Selection)50 Questions
Exam 5: Control Structures II (Repetition)50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the string Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records (structs)50 Questions
Exam 10: Classes and Data Abstraction50 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Linked Lists50 Questions
Exam 17: Stacks and Queues50 Questions
Exam 18: Searching and Sorting Algorithms50 Questions
Exam 19: Binary Trees50 Questions
Exam 20: Graphs50 Questions
Exam 21: Standard Template Library (STL)50 Questions
Select questions type
In a(n)_______________ graph. if
,then
so 



Free
(Short Answer)
4.7/5
(37)
Correct Answer:
undirected
The ____________________ traversal of a graph is similar to traversing a binary tree level by level.
Free
(Short Answer)
4.9/5
(36)
Correct Answer:
breadth first
breadth-first
In a graph directed G,for each vertex,v,the vertices adjacent to v are called ____ successors.
Free
(Multiple Choice)
4.9/5
(41)
Correct Answer:
A
A tree T is called a(n)____________________ of graph G if T is a subgraph of G such that V(T )= V(G).
(Short Answer)
4.9/5
(37)
The depth first traversal is similar to the postorder traversal of a binary tree.
(True/False)
4.9/5
(29)
In Prim's algorithm for the minimal spanning tree,we start at a designated vertex,which we call the ____ vertex.
(Multiple Choice)
4.9/5
(35)
The two most common graph traversal algorithms are depth first traversal and breadth first traversal.
(True/False)
4.8/5
(38)
In a directed graph,the pairs (u,v)and (v,u)represent the same edge.
(True/False)
4.7/5
(39)
A tree T is called a(n)____ tree of graph G if T is a subgraph of G such that V(T)= V(G); that is,if all vertices of G are in T.
(Multiple Choice)
4.7/5
(45)
Let G be a weighted graph.Let u and v be two vertices in G,and let P be a path in G from u to v.The weight of the path P is the sum of the weights of all the ____________________ on the path P.
(Short Answer)
4.8/5
(34)
Let G be an undirected graph.Let u and v be two vertices in G.A(n)____________________ in G is a simple path in which the first and last vertices are the same.
(Short Answer)
4.8/5
(42)
The ____ of sets A and B is the set of all elements that are in A and B.
(Multiple Choice)
4.7/5
(27)
Two well-known algorithms,Prim's algorithm and ____'s algorithm,can be used to find a minimal spanning tree of a graph.
(Multiple Choice)
5.0/5
(33)
If two edges,e? and e?,are associated with the same pair of vertices {u,v},then e? and e? are called ____ edges.
(Multiple Choice)
4.9/5
(39)
A graph is called a(n)____ graph if it has no loops and no parallel edges.
(Multiple Choice)
4.8/5
(31)
The shortest path algorithm is also called the ____ algorithm.
(Multiple Choice)
4.7/5
(38)
The implementation of a breadth first graph traversal uses a stack.
(True/False)
5.0/5
(53)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)