Unit 5 - Practice Quiz

MTH401

1 Which of the following conditions is necessary for a graph to be a tree?

A. contains cycles and is connected
B. is connected and acyclic
C. is disconnected and acyclic
D. is a complete graph

2 In a tree with vertices, how many edges are present?

A.
B.
C.
D.

3 Euler's formula for a connected planar graph with vertices, edges, and regions (faces) is given by:

A.
B.
C.
D.

4 Which of the following graphs is not planar?

A.
B.
C.
D.

5 What is the chromatic number of a graph?

A. The maximum number of colors needed to color vertices such that adjacent vertices have different colors
B. The minimum number of colors needed to color vertices such that adjacent vertices have different colors
C. The number of vertices in the graph
D. The number of edges in the graph

6 A connected planar graph has 6 vertices and 9 edges. How many regions (faces) does it have?

A. 3
B. 4
C. 5
D. 6

7 What is the chromatic number of the complete graph ?

A.
B.
C. $2$
D.

8 A graph is bipartite if and only if its chromatic number is:

A. 1
B. 2
C. 3
D. 4

9 Which theorem states that a finite graph is planar if and only if it does not contain a subgraph that is a subdivision of or ?

A. Euler's Theorem
B. Handshaking Lemma
C. Kuratowski's Theorem
D. Four Color Theorem

10 For a simple connected planar graph with vertices and edges, which inequality holds?

A.
B.
C.
D.

11 What is a spanning tree of a graph ?

A. A subgraph that is a tree and includes all edges of
B. A subgraph that is a tree and includes all vertices of
C. A tree that contains a cycle
D. A disconnected subgraph containing all vertices

12 According to the Four Color Theorem, every planar graph has a chromatic number less than or equal to:

A. 3
B. 4
C. 5
D. 6

13 What is the chromatic number of a cycle graph where is even?

A. 1
B. 2
C. 3
D. n

14 What is the chromatic number of a cycle graph where is odd?

A. 2
B. 3
C. n
D. n-1

15 Which of the following is a method for finding a Minimum Spanning Tree (MST)?

A. Dijkstra's Algorithm
B. Kruskal's Algorithm
C. Floyd-Warshall Algorithm
D. Bellman-Ford Algorithm

16 In a rooted tree, a vertex with no children is called a:

A. Root
B. Internal vertex
C. Leaf
D. Sibling

17 The height of a rooted tree is defined as:

A. The total number of vertices
B. The total number of edges
C. The maximum level (depth) of any vertex
D. The number of leaves

18 Cayley's formula states that the number of spanning trees of a complete graph is:

A.
B.
C.
D.

19 In which tree traversal method is the root visited first, then the left subtree, then the right subtree?

A. Inorder
B. Postorder
C. Preorder
D. Level-order

20 The expression tree for the expression has which operator at the root?

A.
B.
C.
D.

21 Convert the infix expression to Postfix notation (assuming standard precedence).

A.
B.
C.
D.

22 What represents the Prefix notation of the expression ?

A.
B.
C.
D.

23 A Decision Tree is best described as:

A. A tree where every node is a decision
B. A tree used to represent the solution space of a problem where internal nodes represent choices
C. A tree that must be binary
D. A spanning tree with minimum weight

24 If a full -ary tree has internal vertices, how many leaves does it have?

A.
B.
C.
D.

25 Which algorithm builds a Minimum Spanning Tree by adding the cheapest edge that does not form a cycle?

A. Prim's Algorithm
B. Kruskal's Algorithm
C. Dijkstra's Algorithm
D. Floyd's Algorithm

26 The Inorder traversal of a Binary Search Tree (BST) yields the values in:

A. Non-increasing order
B. Random order
C. Non-decreasing (sorted) order
D. Reverse order

27 Postfix notation is also known as:

A. Polish Notation
B. Reverse Polish Notation
C. Infix Notation
D. Binary Notation

28 In a tree, the path between any two distinct vertices is:

A. Non-existent
B. Unique
C. Infinite
D. Multiple

29 A graph is planar. If we draw it in the plane without crossing edges, the areas enclosed by edges are called:

A. Cycles
B. Regions or Faces
C. Components
D. Partitions

30 Which of the following is true for a Rooted Tree?

A. Edges are undirected
B. One vertex is distinguished as the root and edges are directed away from it
C. It must contain a cycle
D. Every vertex has degree 2

31 What is the result of evaluating the Postfix expression: ?

A. 10
B. 11
C. 16
D. 13

32 If a planar graph has no triangles (cycles of length 3), the inequality for edges becomes:

A.
B.
C.
D.

33 Two graphs and are Dual Graphs if:

A. They have the same number of vertices
B. Vertices of one correspond to regions of the other
C. They are both complete graphs
D. They have the same chromatic number

34 A cut-set of a graph is a set of edges whose removal:

A. Makes the graph complete
B. Increases the number of connected components
C. Creates a cycle
D. Changes the root of the tree

35 Which algorithm for finding MST grows a single tree by adding the nearest vertex to the existing tree?

A. Kruskal's Algorithm
B. Prim's Algorithm
C. BFS
D. DFS

36 In a binary tree, the maximum number of nodes at level (where root is level 0) is:

A.
B.
C.
D.

37 Polish notation corresponds to which tree traversal?

A. Inorder
B. Preorder
C. Postorder
D. Breadth-first

38 The chromatic number of a tree with vertices is always:

A. 1
B. 2
C. 3
D.

39 What is the parent of the node in the expression tree for ?

A. (Multiply)
B. (Divide)
C. (Add)
D.

40 A complete bipartite graph is:

A. Planar
B. Non-planar
C. A Tree
D. Cyclic with 3 vertices

41 The sum of degrees of all vertices in a tree with vertices is:

A.
B.
C.
D.

42 In a decision tree for sorting elements, the height of the tree is lower-bounded by:

A.
B.
C.
D.

43 Which of the following is true about Minimum Spanning Trees (MST)?

A. The MST is always unique.
B. If all edge weights are distinct, the MST is unique.
C. An MST must contain the edge with the maximum weight in a cycle.
D. An MST contains all edges of the graph.

44 The region outside the graph in a planar representation is called the:

A. Inner region
B. Bounded region
C. Infinite (or Exterior) region
D. Null region

45 If a graph is a disconnected planar graph with components, Euler's formula generalizes to:

A.
B.
C.
D.

46 Consider the tree with edges . Which traversal is ?

A. Preorder
B. Inorder
C. Postorder
D. None

47 Welch-Powell algorithm is used for:

A. Finding MST
B. Shortest Path
C. Graph Coloring
D. Planarity Testing

48 A forest is defined as:

A. A connected graph with no cycles
B. A collection of disjoint trees
C. A graph with a root
D. A dense graph

49 What is the Prefix form of ?

A.
B.
C.
D.

50 The number of edges in a complete graph is:

A. 5
B. 10
C. 15
D. 20