Unit 4: Graphs Theory I - Practice Quiz

MTH401 — Discrete Mathematics 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the degree of a vertex in an undirected graph?

Graph terminologies Easy
A. The number of edges incident with the vertex
B. The total number of paths in the graph
C. The number of vertices adjacent to each edge
D. The total number of vertices in the graph

2 What are two vertices called if an edge connects them?

Graph terminologies Easy
A. Adjacent vertices
B. Isolated vertices
C. Isomorphic vertices
D. Pendant vertices

3 A vertex with degree is called what?

Graph terminologies Easy
A. An isolated vertex
B. A pendant vertex
C. A regular vertex
D. A terminal vertex

4 How many edges does the complete graph have?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Easy
A.
B.
C.
D.

5 Which statement describes a cycle graph?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Easy
A. Every vertex has degree
B. Every vertex has degree
C. Every vertex has degree
D. Every vertex has degree

6 What is a regular graph?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Easy
A. A graph whose vertices have equal degree
B. A graph containing no isolated vertices
C. A graph whose edges have equal weight
D. A graph containing exactly one cycle

7 How is a wheel graph formed from a cycle graph?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Easy
A. By joining each cycle vertex to exactly one new vertex
B. By adding a central vertex adjacent to every cycle vertex
C. By removing one edge from the cycle
D. By replacing every cycle edge with two parallel edges

8 How many vertices does the three-dimensional cube graph have?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Easy
A.
B.
C.
D.

9 What property defines a bipartite graph?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Easy
A. Each vertex is adjacent to exactly two other vertices
B. Its vertices can be divided into two sets with edges only between the sets
C. Each pair of distinct vertices is connected by an edge
D. Its edges can be divided into two sets with equal numbers of edges

10 How many edges are in the complete bipartite graph ?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Easy
A.
B.
C.
D.

11 Which representation lists the neighbors of each vertex?

Representing graphs Easy
A. Edge weight table
B. Degree sequence
C. Adjacency list
D. Vertex label set

12 For a simple undirected graph, what does an entry in an adjacency matrix indicate?

Adjacency and incidence matrix Easy
A. The corresponding vertex is isolated
B. The two corresponding vertices have equal degree
C. The corresponding edge has unit weight
D. The two corresponding vertices are adjacent

13 What is always true about the adjacency matrix of a simple undirected graph?

Adjacency and incidence matrix Easy
A. It is triangular
B. It contains only one row
C. It has determinant
D. It is symmetric

14 In the incidence matrix of a simple undirected graph, what do the columns usually represent?

Adjacency and incidence matrix Easy
A. Vertices
B. Edges
C. Paths
D. Components

15 When are two graphs isomorphic?

Graph isomorphism Easy
A. When their edges have the same lengths
B. When their vertices have the same labels
C. When they are drawn in the same shape
D. When a vertex correspondence preserves adjacency

16 Which property must be the same for two isomorphic graphs?

Graph isomorphism Easy
A. Number of vertices
B. Physical edge lengths
C. Vertex label names
D. Drawing orientation

17 What is a path in a graph?

Path and connectivity for undirected graphs and digraphs Easy
A. A matrix showing vertex degrees
B. A set containing every edge twice
C. A collection of vertices with no edges
D. A sequence of vertices connected by edges

18 When is an undirected graph connected?

Path and connectivity for undirected graphs and digraphs Easy
A. When a path exists between every pair of vertices
B. When the graph contains exactly one cycle
C. When every vertex has degree exactly
D. When every pair of vertices shares an edge

19 When is a directed graph strongly connected?

Path and connectivity for undirected graphs and digraphs Easy
A. When every vertex has exactly one outgoing edge
B. When every vertex is reachable from every other vertex by directed paths
C. When all directed edges point toward one vertex
D. When the underlying undirected graph has one cycle

20 Which condition is required for Dijkstra's shortest path algorithm to work correctly?

Dijkstra's algorithm for shortest path problem Easy
A. Every vertex must have degree
B. All edge weights must be identical
C. All edge weights must be nonnegative
D. The graph must be complete

21 A simple undirected graph has 12 vertices, each of degree 5. How many edges does the graph contain?

Graph terminologies Medium
A. 25 edges
B. 60 edges
C. 35 edges
D. 30 edges

22 A simple graph has 8 vertices and 13 edges. What is the number of edges in its complement?

Graph terminologies Medium
A. 13 edges
B. 15 edges
C. 28 edges
D. 21 edges

23 A complete graph has 45 edges. How many vertices does it have?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Medium
A. 9 vertices
B. 10 vertices
C. 11 vertices
D. 12 vertices

24 A wheel graph is formed by adding one hub vertex adjacent to every vertex of . Which statement describes the resulting graph?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Medium
A. It has 5 vertices and 11 edges
B. It has 6 vertices and 11 edges
C. It has 6 vertices and 10 edges
D. It has 5 vertices and 10 edges

25 Which pair gives the degree of each vertex and the total number of edges in the 3-dimensional cube graph ?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Medium
A. Degree 2 and 8 edges
B. Degree 3 and 16 edges
C. Degree 4 and 12 edges
D. Degree 3 and 12 edges

26 In the complete bipartite graph , which statement is correct?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Medium
A. It has 8 vertices and 15 edges
B. It has 8 vertices and 16 edges
C. It has 15 vertices and 16 edges
D. It has 15 vertices and 8 edges

27 A connected graph contains exactly one cycle, and that cycle has length 7. Which conclusion is necessarily true?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Medium
A. The graph is regular
B. The graph is not bipartite
C. The graph is complete
D. The graph is bipartite

28 An undirected graph has adjacency list , , , and . Which edge set represents the graph?

Representing graphs Medium
A.
B.
C.
D.

29 The adjacency matrix of a simple undirected graph is What are the degrees of vertices 1 through 4?

Adjacency and incidence matrix Medium
A.
B.
C.
D.

30 The incidence matrix of a simple undirected graph has 7 rows and 10 columns. What do these dimensions indicate?

Adjacency and incidence matrix Medium
A. 10 components and 7 vertices
B. 7 components and 10 vertices
C. 7 vertices and 10 edges
D. 10 vertices and 7 edges

31 For a loop-free directed graph, the adjacency matrix uses when there is an arc from vertex to vertex . What does the sum of column represent?

Adjacency and incidence matrix Medium
A. The out-degree of vertex
B. The in-degree of vertex
C. The number of paths from
D. The total degree of vertex

32 Graph has edges , and graph has edges . Which mapping is an isomorphism from to ?

Graph isomorphism Medium
A.
B.
C.
D.

33 Two simple graphs have the same degree sequence . One graph is , while the other consists of two disjoint triangles. Why are they not isomorphic?

Graph isomorphism Medium
A. They have different connectivity
B. They have different degree sums
C. They have different edge counts
D. They have different vertex counts

34 In a graph with edges , consider the sequence . How should this sequence be classified?

Path and connectivity for undirected graphs and digraphs Medium
A. A trail but not a path
B. Neither a path nor a trail
C. Both a path and a trail
D. A path but not a trail

35 A connected graph has 9 vertices and 9 edges, with exactly one cycle. An edge on that cycle is removed. What is true of the resulting graph?

Path and connectivity for undirected graphs and digraphs Medium
A. It becomes disconnected and remains cyclic
B. It remains connected and remains cyclic
C. It becomes disconnected and becomes a tree
D. It remains connected and becomes a tree

36 A digraph has arcs , , , and . Which statement is correct?

Path and connectivity for undirected graphs and digraphs Medium
A. It is neither strongly nor weakly connected
B. It is strongly connected but not weakly connected
C. It is both strongly and weakly connected
D. It is weakly connected but not strongly connected

37 An undirected connected graph has a bridge . What happens when is removed?

Path and connectivity for undirected graphs and digraphs Medium
A. Every remaining edge becomes a bridge
B. The number of vertices decreases
C. Every remaining vertex becomes isolated
D. The number of components increases

38 A weighted undirected graph has edges , , , , , , and . What is the shortest distance from to ?

Dijkstra's algorithm for shortest path problem Medium
A. 9
B. 8
C. 6
D. 7

39 During Dijkstra's algorithm, vertex has finalized distance 6. An edge from to an unvisited vertex has weight 4, while the current tentative distance of is 13. What is the updated distance of ?

Dijkstra's algorithm for shortest path problem Medium
A. 13
B. 17
C. 10
D. 9

40 Why can the standard Dijkstra's algorithm fail when a graph contains a negative-weight edge?

Dijkstra's algorithm for shortest path problem Medium
A. The adjacency matrix may become asymmetric
B. The graph may contain too many vertices
C. The source may have more than one neighbor
D. A finalized distance may later decrease

41 Which of the following nonincreasing sequences is graphical for a simple graph on six vertices?

Graph terminologies Hard
A.
B.
C.
D.

42 A simple graph has ten vertices: six vertices have degree , and four vertices have degree . How many edges does the line graph have?

Graph terminologies Hard
A.
B.
C.
D.

43 Let be formed by adjoining one hub vertex to every vertex of the cycle , where . For which value of is regular?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Hard
A. Only
B. Only
C. Every even
D. Every

44 In the -dimensional cube graph , what are, respectively, the number of shortest paths and the maximum number of internally vertex-disjoint paths between two antipodal vertices?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Hard
A.
B.
C.
D.

45 How many distinct spanning trees does the complete bipartite graph have?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Hard
A.
B.
C.
D.

46 A simple graph on nine vertices is regular and isomorphic to its complement. Which pair gives the degree of each vertex and the number of edges of ?

Special types of graphs: complete, cycle, regular, wheel, cube, bipartite and complete bipartite Hard
A.
B.
C.
D.

47 Let be the adjacency matrix of a graph under its original labeling. A new labeling is specified by a permutation matrix whose th column is the standard basis vector corresponding to the old label of new vertex . What is the adjacency matrix under the new labeling?

Representing graphs Hard
A.
B.
C.
D.

48 Let be the adjacency matrix of the cycle . What is the value of the entry ?

Adjacency and incidence matrix Hard
A.
B.
C.
D.

49 An undirected graph has vertices, edges, and connected components. After assigning an arbitrary orientation to every edge, let be its oriented incidence matrix over . What are and ?

Adjacency and incidence matrix Hard
A.
B.
C.
D.

50 A simple graph has edges, degree sequence , and adjacency matrix satisfying . How many distinct -cycles does the graph contain?

Adjacency and incidence matrix Hard
A.
B.
C.
D.

51 Graph is obtained from by adding chords and . Graph is obtained from by adding chords and . Both graphs use the cyclic order . Which invariant proves that and are not isomorphic?

Graph isomorphism Hard
A. The common degree sequence
B. The edges induced by degree- vertices
C. The number of degree- vertices
D. The total number of vertices

52 Let have edge set and let have edge set . Which tuple defines an isomorphism ?

Graph isomorphism Hard
A.
B.
C.
D.

53 In , let belong to the part of size and belong to the part of size . What is the maximum number of pairwise internally vertex-disjoint - paths?

Path and connectivity for undirected graphs and digraphs Hard
A.
B.
C.
D.

54 The condensation of a digraph has vertices and arcs , , , , , and . What is the minimum number of arcs that must be added to make the original digraph strongly connected?

Path and connectivity for undirected graphs and digraphs Hard
A.
B.
C.
D.

55 A finite digraph has a condensation DAG containing exactly one source strongly connected component . Which conclusion is necessarily true?

Path and connectivity for undirected graphs and digraphs Hard
A. Every vertex can reach every vertex of
B. Every vertex of can reach every vertex
C. The underlying undirected graph is complete
D. The condensation contains exactly one sink

56 Consider the directed weighted graph with arcs , , , , , , , and . What are the shortest distance from to and the number of distinct shortest - paths?

Dijkstra's algorithm for shortest path problem Hard
A.
B.
C.
D.

57 A directed graph has arcs , , , , and . If standard Dijkstra's algorithm finalizes vertices and stops when is extracted, what distance does it report for , and what is the true shortest distance?

Dijkstra's algorithm for shortest path problem Hard
A.
B.
C.
D.

58 Dijkstra's algorithm is run on a graph with nonnegative edge weights, including zero-weight edges, and equal tentative distances are broken arbitrarily. Which property is guaranteed?

Dijkstra's algorithm for shortest path problem Hard
A. Settled distances are nondecreasing
B. The predecessor tree is unique
C. The settled order is unique
D. Every shortest path has equal edge count

59 Which transformation of all edge weights is guaranteed to preserve the complete set of shortest paths between every ordered pair of vertices in a nonnegatively weighted graph?

Dijkstra's algorithm for shortest path problem Hard
A. Multiply every weight by the same positive constant
B. Add the same positive constant to every weight
C. Replace every weight by its square
D. Replace each directed edge by an undirected edge

60 In an undirected graph, two nonadjacent vertices and are connected by at most four pairwise internally vertex-disjoint - paths, and a family of four such paths exists. What is the minimum size of a vertex set, excluding and , whose removal separates from ?

Path and connectivity for undirected graphs and digraphs Hard
A.
B.
C.
D.