Unit 5: Graphs Theory II - Practice Quiz

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

1 What is a planar graph?

Planar graphs Easy
A. A graph containing no vertices
B. A graph containing equal edge weights
C. A graph drawable without edge crossings
D. A graph with all vertices connected

2 Which complete graph is non-planar?

Planar graphs Easy
A.
B.
C.
D.

3 For a connected planar graph with vertices, edges, and faces, Euler's formula is:

Euler formula Easy
A.
B.
C.
D.

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

Euler formula Easy
A.
B.
C.
D.

5 What is a proper vertex colouring of a graph?

Colouring of a graph and chromatic number Easy
A. Assigning equal colours to adjacent vertices
B. Assigning different colours to every edge
C. Assigning different colours to adjacent vertices
D. Assigning one colour to every vertex

6 What does the chromatic number of a graph represent?

Colouring of a graph and chromatic number Easy
A. The minimum number of vertex colours
B. The maximum number of graph edges
C. The average number of vertex degrees
D. The total number of graph paths

7 What is the chromatic number of a nonempty bipartite graph?

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

8 Which statement defines a tree graph?

Tree graph and its properties Easy
A. It is disconnected and contains no cycles
B. It is connected and contains no cycles
C. It is connected and contains every cycle
D. It is disconnected and contains one cycle

9 How many edges does a tree with vertices have?

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

10 How many simple paths exist between any two distinct vertices of a tree?

Tree graph and its properties Easy
A. At least three
B. Exactly two
C. None at all
D. Exactly one

11 What is the specially designated vertex of a rooted tree called?

Rooted tree Easy
A. Sibling
B. Leaf
C. Root
D. Branch

12 What is a leaf in a rooted tree?

Rooted tree Easy
A. A vertex with no parent
B. A vertex with one sibling
C. A vertex with two parents
D. A vertex with no children

13 What must a spanning tree of a connected graph include?

Spanning and minimum spanning tree Easy
A. Every vertex of the graph
B. Every edge of the graph
C. Every face of the graph
D. Every cycle of the graph

14 What is a minimum spanning tree of a connected weighted graph?

Spanning and minimum spanning tree Easy
A. A spanning tree with maximum total edge weight
B. A spanning tree with minimum total edge weight
C. A spanning tree with maximum vertex degree
D. A spanning tree with minimum vertex degree

15 Which algorithm is commonly used to find a minimum spanning tree?

Spanning and minimum spanning tree Easy
A. Euclid's algorithm
B. Kruskal's algorithm
C. Floyd's algorithm
D. Binary search algorithm

16 In a decision tree, what does an internal node usually represent?

Decision tree Easy
A. A graph colour
B. A final outcome
C. A test or decision
D. An edge weight

17 In a decision tree, what does a leaf node usually represent?

Decision tree Easy
A. A repeated test
B. A new decision
C. A final outcome
D. A connecting edge

18 Which expression is written in infix notation?

Infix, prefix, and postfix notation Easy
A.
B.
C.
D.

19 What is the prefix form of the infix expression ?

Infix, prefix, and postfix notation Easy
A.
B.
C.
D.

20 What is the postfix form of the infix expression ?

Infix, prefix, and postfix notation Easy
A.
B.
C.
D.

21 A simple connected planar graph has vertices. What is the maximum possible number of edges it can have?

Planar graphs Medium
A.
B.
C.
D.

22 Why can the complete bipartite graph not be planar?

Planar graphs Medium
A. It has more than edges
B. It contains an odd-length cycle
C. It has vertices of degree greater than
D. It has more than edges

23 A connected planar graph has vertices and edges. How many faces does a planar embedding of the graph have, including the outer face?

Euler formula Medium
A.
B.
C.
D.

24 A connected planar graph has vertices, and every face is bounded by exactly three edges. How many faces does it have?

Euler formula Medium
A.
B.
C.
D.

25 What is the chromatic number of the cycle graph ?

Colouring of a graph and chromatic number Medium
A.
B.
C.
D.

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

Colouring of a graph and chromatic number Medium
A.
B.
C.
D.

27 A graph has chromatic number . A new vertex is added and connected to every vertex of . What is the chromatic number of the resulting graph?

Colouring of a graph and chromatic number Medium
A.
B.
C.
D.

28 A connected graph with vertices contains no cycles. How many edges does it have?

Tree graph and its properties Medium
A.
B.
C.
D.

29 A forest has vertices and connected components. How many edges does the forest contain?

Tree graph and its properties Medium
A.
B.
C.
D.

30 A tree has three vertices of degree , four vertices of degree , and all remaining vertices are leaves. How many leaves does the tree have?

Tree graph and its properties Medium
A.
B.
C.
D.

31 What is the maximum number of vertices in a binary rooted tree of height , where the root is at level ?

Rooted tree Medium
A.
B.
C.
D.

32 A full binary rooted tree has internal vertices. How many leaves does it have?

Rooted tree Medium
A.
B.
C.
D.

33 In a rooted tree, the root has children and . Vertex has child , and vertex has child . What is the lowest common ancestor of and ?

Rooted tree Medium
A. Vertex
B. Vertex
C. Vertex
D. Vertex

34 How many distinct spanning trees does the cycle graph have?

Spanning and minimum spanning tree Medium
A.
B.
C.
D.

35 A weighted graph has edges , , , , , , and . What is the weight of a minimum spanning tree?

Spanning and minimum spanning tree Medium
A.
B.
C.
D.

36 A connected weighted graph has a different weight on every edge. Which statement is guaranteed to be true?

Spanning and minimum spanning tree Medium
A. Every spanning tree has the same total weight
B. The heaviest edge belongs to the minimum spanning tree
C. The graph has exactly one minimum spanning tree
D. The lightest edge belongs to every spanning tree

37 A binary decision tree must distinguish among possible outcomes. What is the minimum possible height in the worst case?

Decision tree Medium
A.
B.
C.
D.

38 Using a comparison-based decision tree, what is the minimum number of comparisons required in the worst case to find the maximum among distinct elements?

Decision tree Medium
A.
B.
C.
D.

39 Which postfix expression is equivalent to the infix expression ?

Infix, prefix, and postfix notation Medium
A.
B.
C. $AB+CD*- $
D.

40 What is the value of the prefix expression ?

Infix, prefix, and postfix notation Medium
A.
B.
C.
D.

41 A connected simple planar graph has vertices and edges. In any planar embedding of this graph, how many faces have boundary length exactly ?

Planar graphs Hard
A.
B.
C.
D.

42 A planar embedding of a graph has vertices, edges, and connected components. Counting the unbounded face only once, how many faces does the embedding have?

Euler formula Hard
A.
B.
C.
D.

43 A simple planar graph has vertices and girth at least . What is the largest integer upper bound on its number of edges implied by the planar girth inequality?

Planar graphs Hard
A.
B.
C.
D.

44 A connected plane graph has vertices, edges, and exactly bridges. Which description of its planar dual is correct?

Planar graphs Hard
A. vertices, edges, and loops
B. vertices, edges, and loops
C. vertices, edges, and loops
D. vertices, edges, and no loops

45 Let be the wheel obtained by joining one hub to every vertex of the cycle . If one rim edge is deleted while all spokes remain, what is the chromatic number of the resulting graph?

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

46 The join is formed from disjoint graphs and by adding every edge between their vertex sets. What is ?

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

47 A graph is obtained by subdividing every edge of exactly once, using a different new vertex on each edge. What is ?

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

48 The vertices of the line graph represent the edges of , with adjacency defined by sharing an endpoint. What is ?

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

49 A tree has vertices. Exactly vertices have degree , exactly have degree , and every remaining vertex has degree or . How many leaves does the tree have?

Tree graph and its properties Hard
A.
B.
C.
D.

50 A fixed forest on labeled vertices has four tree components of orders , , , and . How many labeled spanning trees on the same vertices contain every edge of this forest?

Tree graph and its properties Hard
A.
B.
C.
D.

51 An ordered binary tree has preorder traversal and inorder traversal . What is its postorder traversal?

Rooted tree Hard
A.
B.
C.
D.

52 A rooted tree has vertices. Exactly vertices have one child, exactly vertices have three children, and every other internal vertex has two children. How many leaves does the tree have?

Rooted tree Hard
A.
B.
C.
D.

53 How many spanning trees of the labeled complete graph contain a particular fixed edge?

Spanning and minimum spanning tree Hard
A.
B.
C.
D.

54 A weighted graph has vertices and edges , , , , , and . How many distinct minimum spanning trees does it have?

Spanning and minimum spanning tree Hard
A.
B.
C.
D.

55 In with vertices , assign edge the weight . How many distinct minimum spanning trees exist?

Spanning and minimum spanning tree Hard
A.
B.
C.
D.

56 In the comparison decision-tree model, what is the information-theoretic lower bound on the worst-case number of comparisons needed to sort distinct elements?

Decision tree Hard
A.
B.
C.
D.

57 Two sorted lists contain and distinct elements, respectively. If every relative interleaving is possible, what information-theoretic lower bound does a binary comparison decision tree give for merging them?

Decision tree Hard
A. comparisons
B. comparisons
C. comparisons
D. comparisons

58 Assuming every operator is binary, which infix expression corresponds to the prefix expression ?

Infix, prefix, and postfix notation Hard
A.
B.
C.
D.

59 What is the postfix form of ?

Infix, prefix, and postfix notation Hard
A.
B.
C.
D.

60 Assuming all operators are binary, which fully parenthesized infix expression is represented by the postfix expression ?

Infix, prefix, and postfix notation Hard
A.
B.
C.
D.