Unit 5 - Practice Quiz

MTH401 61 Questions
0 Correct 0 Wrong 61 Left
0/61

1 What is the defining characteristic of a planar graph?

planner graphs Easy
A. It contains a cycle.
B. It can be drawn in a plane without any edges crossing.
C. It is a complete graph.
D. Every vertex has an even degree.

2 Which of the following complete graphs is the smallest one that is non-planar?

planner graphs Easy
A.
B.
C.
D.

3 For any connected planar graph, what is the relationship described by Euler's formula between the number of vertices (V), edges (E), and faces (F)?

Euler formula Easy
A.
B.
C.
D.

4 A connected planar graph has 8 vertices and 12 edges. How many faces does it have?

Euler formula Easy
A. 6
B. 22
C. 4
D. 5

5 What is the primary rule for a proper vertex coloring of a graph?

colouring of a graph and chromatic number Easy
A. The number of colors must equal the number of vertices.
B. Every vertex must have a unique color.
C. All vertices in a cycle must have the same color.
D. No two adjacent vertices can have the same color.

6 The chromatic number of a graph, denoted , represents the:

colouring of a graph and chromatic number Easy
A. Maximum number of colors that can be used to color the graph.
B. Minimum number of colors needed for a proper vertex coloring.
C. Total number of edges in the graph.
D. Total number of vertices in the graph.

7 What is the chromatic number of any complete graph with vertices, ?

colouring of a graph and chromatic number Easy
A.
B.
C.
D. 2

8 By definition, a 'tree' is a connected graph that contains no...

tree graph and its properties Easy
A. Leaves
B. Vertices
C. Edges
D. Cycles

9 A tree with vertices has exactly how many edges?

tree graph and its properties Easy
A.
B.
C.
D.

10 What is guaranteed to be true about any two vertices in a tree?

tree graph and its properties Easy
A. There is no path between them.
B. They are directly connected by an edge.
C. There is a unique simple path between them.
D. There are multiple paths between them.

11 What distinguishes a rooted tree from a general (unrooted) tree?

rooted tree Easy
A. It contains at least one cycle.
B. One vertex is designated as the root.
C. It is not a connected graph.
D. It is always a binary tree.

12 In a rooted tree, a vertex that is not a leaf node is called a(n)...

rooted tree Easy
A. Root
B. Sibling
C. Internal node
D. Parent

13 A spanning tree of a connected graph G is a subgraph that is a tree and...

spanning and minimum spanning tree Easy
A. is always a complete graph.
B. includes about half the vertices of G.
C. includes all the vertices of G.
D. includes all the edges of G.

14 For a weighted, connected graph, a Minimum Spanning Tree (MST) is a spanning tree with the:

spanning and minimum spanning tree Easy
A. Maximum number of edges.
B. Minimum possible total edge weight.
C. Fewest number of vertices.
D. Maximum possible total edge weight.

15 Which of the following is a well-known greedy algorithm for finding a Minimum Spanning Tree?

spanning and minimum spanning tree Easy
A. Floyd-Warshall algorithm
B. Prim's algorithm
C. Dijkstra's algorithm
D. Breadth-First Search (BFS)

16 In a decision tree used for classification, what do the leaf nodes typically represent?

decision tree Easy
A. A test or a question about an attribute.
B. A random variable.
C. The initial data set.
D. The final classification or decision.

17 What is the primary purpose of a decision tree?

decision tree Easy
A. To check if a graph is bipartite.
B. To find the shortest path between two states.
C. To represent a hierarchy of choices and their potential outcomes.
D. To store data in a compressed format.

18 The expression A + B is an example of which type of notation?

infix, prefix, and postfix notation Easy
A. Infix
B. Suffix
C. Prefix
D. Postfix

19 How would the infix expression (A + B) * C be written in prefix (Polish) notation?

infix, prefix, and postfix notation Easy
A. A B + C *
B. A B C + *
C. * A + B C
D. * + A B C

20 The expression A B + is in which notation, also known as Reverse Polish Notation?

infix, prefix, and postfix notation Easy
A. Complex
B. Postfix
C. Prefix
D. Infix

21 Let be a simple, connected planar graph with vertices () and edges. If the graph contains no triangles (i.e., its girth is at least 4), which inequality must hold?

planner graphs Medium
A.
B.
C.
D.

22 A connected simple planar graph has 8 vertices and 12 edges. If every region in its planar embedding is bounded by the same number of edges, what is this number?

Euler formula Medium
A. 3
B. 4
C. 5
D. 6

23 Using the inequality for a simple connected planar graph with , which of the following graphs cannot be planar?

Euler formula Medium
A. A graph with 6 vertices and 9 edges.
B. A graph with 7 vertices and 15 edges.
C. A graph with 10 vertices and 20 edges.
D. A graph with 5 vertices and 10 edges.

24 A connected planar graph has 9 vertices. Six vertices have degree 3, and the other three have degree 4. How many regions are there in a planar embedding of this graph?

Euler formula Medium
A. 10
B. 6
C. 8
D. 15

25 What is the chromatic number, , of the wheel graph (a cycle of 7 vertices with a central hub)?

colouring of a graph and chromatic number Medium
A. 7
B. 4
C. 3
D. 2

26 If the chromatic number of a graph is , which of the following statements is guaranteed to be true?

colouring of a graph and chromatic number Medium
A. G is non-planar.
B. G must contain a clique of size 5.
C. G cannot be properly colored using 4 colors.
D. The maximum degree of G must be at least 5.

27 What is the chromatic number of the complete bipartite graph ?

colouring of a graph and chromatic number Medium
A. 2
B. 7
C. 5
D. 12

28 A forest consists of 3 trees. If the forest has a total of 20 vertices and 17 edges, how many vertices does the largest tree have if the other two trees have 4 and 7 vertices respectively?

tree graph and its properties Medium
A. 10
B. 11
C. 9
D. 8

29 In a non-trivial tree T, every vertex has a degree of either 1 or 3. If T has exactly 10 vertices of degree 1 (leaves), how many vertices does T have in total?

tree graph and its properties Medium
A. 18
B. It's impossible for such a tree to exist.
C. 20
D. 16

30 Which of the following statements about a connected graph G with vertices is NOT a valid characterization of a tree?

tree graph and its properties Medium
A. G is acyclic and has exactly edges.
B. G is connected and has exactly edges.
C. G is connected, and removing any edge disconnects the graph.
D. G has a unique simple path between any two of its vertices, and adding any edge creates exactly two cycles.

31 In a full 3-ary (ternary) tree, there are 25 leaves. What is the total number of vertices in the tree?

rooted tree Medium
A. 35
B. 33
C. 31
D. 37

32 What is the maximum number of vertices in a binary tree of height 4? (A tree with a single vertex has height 0).

rooted tree Medium
A. 32
B. 31
C. 15
D. 16

33 Consider a weighted complete graph with 5 vertices. If you run Kruskal's algorithm to find an MST, how many edges will be considered and rejected before the MST is formed? (Assume all edge weights are distinct).

spanning and minimum spanning tree Medium
A. 6
B. 10
C. 4
D. 5

34 A weighted, connected, undirected graph G has edge weights that are not necessarily unique. Which of the following statements about Minimum Spanning Trees (MSTs) of G is always true?

spanning and minimum spanning tree Medium
A. The edge with the maximum weight in G can never be part of an MST.
B. Prim's algorithm and Kruskal's algorithm will always produce the exact same set of edges for the MST.
C. The MST is always unique.
D. The total weight of any MST is unique.

35 Given a weighted graph where all edge weights are distinct positive integers. What is the relationship between the unique Minimum Spanning Tree (MST) and the shortest path between two specific vertices and ?

spanning and minimum spanning tree Medium
A. The shortest path between and is always composed entirely of edges from the MST.
B. The shortest path between and may contain edges that are not in the MST.
C. The MST always contains the shortest path between any two vertices.
D. The shortest path between and is identical to the unique path between and in the MST.

36 What is the minimum number of comparisons required, in the worst case, by any comparison-based sorting algorithm to sort a list of 4 distinct elements?

decision tree Medium
A. 4
B. 7
C. 5
D. 6

37 A decision tree is used to identify a single counterfeit coin from a set of 8 coins using a balance scale. One coin is known to be heavier than the others. What is the minimum height of the decision tree that solves this problem?

decision tree Medium
A. 8
B. 2
C. 3
D. 4

38 What is the postfix (Reverse Polish Notation) form of the infix expression: ?

infix, prefix, and postfix notation Medium
A. A B + C D E - F G + -
B. A B C + D E - F G + -
C. A B + C D E F G + - -
D. + A B C - - D E + F G

39 Evaluate the following postfix expression: 9 5 2 + * 6 2 / -

infix, prefix, and postfix notation Medium
A. 48
B. 66
C. 54
D. 60

40 Which of the following statements is a direct consequence of Kuratowski's Theorem?

planner graphs Medium
A. Every planar graph can be colored with 4 colors.
B. Every planar graph has a vertex of degree at most 5.
C. A graph is non-planar if and only if it contains a subgraph that is a subdivision of or .
D. A connected planar graph with vertices and edges satisfies .

41 Let be a simple connected planar graph with vertices and edges. If the length of the shortest cycle (girth) in is at least 5, which of the following inequalities must be true for ?

Euler formula Hard
A.
B.
C.
D.

42 The crossing number of a graph is the minimum number of edge crossings in any planar embedding of . The Petersen graph is famously non-planar. What is its crossing number?

planner graphs Hard
A. 2
B. 3
C. 4
D. 1

43 The chromatic polynomial gives the number of proper -colorings of a graph . What is the chromatic polynomial for the cycle graph ?

colouring of a graph and chromatic number Hard
A.
B.
C.
D.

44 Let be a connected weighted graph where all edge weights are distinct. Let be the edge with the maximum weight. Under which of the following conditions is excluded from the unique Minimum Spanning Tree (MST)?

spanning and minimum spanning tree Hard
A. If and only if is not a bridge.
B. If and only if is part of a cycle in .
C. Only if is a complete graph.
D. Always.

45 Convert the infix expression A + B * C - ( D / E ^ F ) * G to postfix notation. Assume standard operator precedence (^ > */ > +-) and left-to-right associativity for operators of the same precedence.

infix, prefix, and postfix notation Hard
A. A B C + * D E F ^ G / * -
B. A B C * D E F ^ / G * + -
C. A B C * + D E F ^ / G * -
D. A B + C * D E F ^ / G * -

46 According to Cayley's formula, there are labeled trees on vertices. How many distinct labeled trees on 6 vertices have exactly 4 vertices of degree 1 (leaves)?

tree graph and its properties Hard
A. 240
B. 90
C. 210
D. 120

47 A full m-ary tree is a rooted tree where every internal (non-leaf) node has exactly children. For such a tree, a relationship exists between the number of leaves () and internal nodes (): . An m-ary tree has exactly 73 leaves. What is the maximum possible number of internal nodes this tree can have?

rooted tree Hard
A. 36
B. 1
C. 73
D. 72

48 Any comparison-based sorting algorithm requires comparisons in the worst case. This is proven using a decision tree model. What is the most precise lower bound on the height of a decision tree for sorting elements, representing the minimum number of worst-case comparisons?

decision tree Hard
A.
B.
C.
D.

49 A simple connected planar graph is 3-regular and has 12 vertices. How many faces does a planar embedding of this graph have?

Euler formula Hard
A. 6
B. 8
C. 10
D. 12

50 A graph is -critical if and for any proper subgraph of . Which of the following statements is necessarily FALSE for any -critical graph where ?

colouring of a graph and chromatic number Hard
A. is non-planar.
B. has a vertex with degree .
C. does not contain a subgraph.
D. has a vertex cut of size 1.

51 Consider a connected graph with edge weights that are not necessarily distinct. Let and be two different Minimum Spanning Trees (MSTs) of . Let be an edge in but not in . Which statement is always true?

spanning and minimum spanning tree Hard
A. must contain an edge such that .
B. The edge must have the same weight as at least one other edge in the graph.
C. There exists an edge in but not in such that and the graph is also an MST.
D. The number of edges with weight must be greater than the number of vertices.

52 A maximal planar graph is a simple planar graph such that no edge can be added without it becoming non-planar. For a maximal planar graph with vertices, what is the exact number of edges?

planner graphs Hard
A.
B.
C. It cannot be determined from alone.
D.

53 What is the Prufer sequence for the labeled tree with vertices {1, 2, 3, 4, 5, 6} and edges {(1,4), (2,4), (3,5), (4,5), (6,5)}?

tree graph and its properties Hard
A. (4, 5, 5, 4)
B. (4, 5, 4, 5)
C. (5, 5, 4, 4)
D. (4, 4, 5, 5)

54 Evaluate the following postfix (Reverse Polish) expression where ~ represents a unary negation operator: 5 3 2 * + 4 - 6 + ~

infix, prefix, and postfix notation Hard
A. -11
B. 13
C. -13
D. 11

55 Evaluate the following postfix (Reverse Polish) expression where ~ represents a unary negation operator: 8 2 * 4 - 5 + 3 - ~

A. -16
B. 12
C. -14
D. 14

56 Let be a weighted, connected graph and be one of its MSTs. If a new graph is formed by adding a constant to the weight of every edge, which statement is definitive about an MST of ?

spanning and minimum spanning tree Hard
A. is identical to , but its weight is unchanged.
B. is identical to and its weight is , where is the number of vertices.
C. may be a different tree from .
D. is identical to and its weight is , where is the number of edges in G.

57 Using a balance scale, you need to find a single heavier counterfeit coin from a set of coins. What is the maximum number of coins for which you can guarantee finding the counterfeit in just 3 weighings?

decision tree Hard
A. 27
B. 26
C. 8
D. 9

58 The historical 'Seven Bridges of Königsberg' problem, which led to the birth of graph theory, asked if one could find a walk through the city that crossed each bridge exactly once. Modeled as a graph , what property of proves this is impossible?

Euler formula Hard
A. The graph contains a cycle.
B. The graph has more than two vertices of odd degree.
C. The graph is non-planar.
D. The graph is not a complete graph.

59 Brooks's Theorem states that for any connected graph G that is not a complete graph or an odd cycle, , where is the chromatic number and is the maximum degree. Consider the Petersen graph. Given that and , does this graph serve as a counterexample to Brooks's Theorem?

colouring of a graph and chromatic number Hard
A. No, because it satisfies the theorem's condition .
B. Yes, because its chromatic number is actually 4.
C. No, because the Petersen graph is secretly an odd cycle.
D. Yes, because the theorem should state a strict inequality .

60 An unlabeled rooted tree is a tree where no labels are assigned to the vertices, but one vertex is designated as the root. How many non-isomorphic unlabeled rooted trees are there with 5 vertices?

rooted tree Hard
A. 5
B. 20
C. 14
D. 9

61 Let be a simple, connected, planar graph with vertices and edges. If , what is the minimum possible value of ?

planner graphs Hard
A. 6
B. 11
C. 4
D. 5