Chapter.29 - Graphs Complete Test Bank - Data Structures with Java 5e Complete Test Bank by Frank M. Carrano. DOCX document preview.
Chapter 29 - Graphs
True/False (11)
- A graph that has no cycles is called acyclic.
- Adjacent vertices are called neighbors.
- Typical graphs are dense.
- All graphs are trees but not all trees are graphs.
- A tree is a connected graph without cycles.
- The vertices in a graph may only have one topological order.
- A topological order is not possible for a graph that has a cycle.
- A graph may have more than one path between the same two vertices.
- In an unweighted graph, the shortest path between two given vertices has the smallest length.
- In a weighted graph, the shortest path between two given vertices has the largest edge-weight sum.
- In the ADT graph, once you create it, you do not add vertices.
Short Answer (5)
- If a directed graph has 9 vertices, how many edges can it have?
- If an undirected graph has 9 vertices, how many edges can it have?
- Give a topological sort for this graph.
- Give the breadth-first traversal of the following graph beginning at vertex A.
- Give the depth-first traversal of the following graph beginning at vertex A.
Multiple Choice (29) WARNING: CORRECT ANSWERS ARE IN THE SAME POSITION AND TAGGED WITH . YOU SHOULD RANDOMIZE THE LOCATION OF THE CORRECT ANSWERS IN YOUR EXAM.
- A(n) _____ is a collection of distinct vertices and distinct edges.
- graph
- binary search tree
- red-black tree
- AVL tree
- In a graph, the circles are called
- vertices
- nodes
- both a & b
- none of the above
- In a graph, the lines are called
- edges
- connectors
- both a & b
- none of the above
- When an edge does not have a direction in a graph, it is called
- undirected
- non-directed
- disjunctive
- disjoint
- A graph with directed edges is called a(n)
- directed graph
- digraph
- both a & b
- none of the above
- A sequence of edges in a graph that leads from on vertex to another is called a(n)
- path
- connection
- simple cycle
- traversal
- A path that does not pass through any vertex more than once is called a(n)
- simple path
- simple cycle
- cycle
- di-path
- A path that begins and ends at the same vertex is called a(n)
- cycle
- simple path
- circle path
- acyclic path
- A path in a directed graph is called a(n)
- directed path
- simple path
- cyclic path
- forced path
- The number of edges in a path is the
- length
- edge count
- cycle count
- path count
- A graph that has no cycles is
- acyclic
- simple
- disconnected
- directed
- A graph that has a cost associated with the edges is called a(n)
- weighted graph
- digraph
- numbered graph
- acyclic graph
- A graph that has a path between every pair of distinct vertices is called a(n)
- connected graph
- acyclic graph
- both a & b
- none of the above
- A graph that has an edge between every pair of distinct vertices is called a(n)
- complete graph
- cyclic graph
- both a & b
- none of the above
- Two vertices are _____ in an undirected graph if they are joined by an edge
- adjacent
- joined
- connected
- cyclic
- Adjacent vertices are called
- neighbors
- siblings
- both a & b
- none of the above
- If a directed graph has 5 vertices, how many edges can it have?
- 20
- 10
- 15
- 5
- If a directed graph has n vertices, how many edges can it have?
- n x (n-1)
- n x (n-1) / 2
- n x (n+1)
- n x (n+1) /2
- If an undirected graph has 5 vertices, how many edges can it have?
- 10
- 15
- 20
- 5
- If a directed graph has n vertices, how many edges can it have?
- n x (n-1) / 2
- n x (n-1)
- n x (n+1) / 2
- n x (n+1)
- A graph with relatively few edges is called
- sparse
- lean
- simple
- unpopulated
- A graph with many edges is called
- dense
- sparse
- over-populated
- thick
- A tree is a(n) _____ graph without cycles.
- connected
- disconnected
- weighted
- simple
- A graph traversal begins at a vertex called the
- origin vertex
- root
- first node
- last node
- Which graph traversal visits a vertex and then each of the vertex’s neighbors before advancing?
- breadth-first
- depth-first
- level-order
- cyclic order
- Which graph traversal visits a vertex, then a neighbor of the vertex, a neighbor of the neighbor, and so on, advancing as far as possible from the original vertex?
- depth-first
- breadth-first
- level-order
- cyclic order
- In a _____ order of the vertices in a directed graph without cycles, vertex a precedes vertex b whenever a directed edge exists from a to b.
- topological
- logical
- directed
- cyclic
- Which operation(s) is(are) not performed on the ADT graph?
- add a vertex
- remove a vertex
- retrieve a vertex
- all of the above
- Which terms describes the following graph?
- connected
- complete
- directed
- disconnected
Document Information
Connected Book
Data Structures with Java 5e Complete Test Bank
By Frank M. Carrano
Test Bank
General
View Product →
Explore recommendations drawn directly from what you're reading
Quick Navigation
Benefits
Immediately available after payment
Answers are available after payment
ZIP file includes all related files
Files are in Word format (DOCX)
Check the description to see the contents of each ZIP file
We do not share your information with any third party