Unit 5 - Practice Quiz

MTH401 50 Questions
0 Correct 0 Wrong 50 Left
0/50

1 A graph is called a planar graph if:

A. It can be drawn in the plane without any edges crossing.
B. It has equal number of vertices and edges.
C. It is a complete bipartite graph.
D. It contains a Hamiltonian cycle.

2 For a connected planar graph with vertices, edges, and regions (faces), Euler's formula states that:

A.
B.
C.
D.

3 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

4 According to Kuratowski's Theorem, a graph is non-planar if and only if it contains a subgraph homeomorphic to:

A. or
B. or
C. or
D. or

5 For a connected planar simple graph with vertices () and edges, which inequality holds true?

A.
B.
C.
D.

6 What is the sum of the degrees of the regions (faces) of a planar graph equal to?

A.
B.
C.
D.

7 Which of the following graphs is not planar?

A.
B.
C.
D.

8 The chromatic number of a graph , denoted by , is defined as:

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

9 What is the chromatic number of a complete graph with vertices?

A.
B. $2$
C.
D.

10 What is the chromatic number of a bipartite graph with at least one edge?

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

11 If a graph contains a cycle of odd length, then its chromatic number must be:

A. At least 2
B. At least 3
C. Exactly 2
D. Exactly 4

12 The Four Color Theorem states that any planar graph can be colored with at most how many colors?

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

13 What is the chromatic number of the cycle graph (a cycle with 6 vertices)?

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

14 Graph coloring is useful in which of the following applications?

A. Shortest path calculation
B. Register allocation in compilers and exam scheduling
C. Calculating network flow
D. Finding the minimum spanning tree

15 A tree is a graph that is:

A. Connected and contains a cycle.
B. Disconnected and acyclic.
C. Connected and acyclic.
D. Complete and directed.

16 A tree with vertices has exactly how many edges?

A.
B.
C.
D.

17 In a tree, there exists exactly one simple path between:

A. Any two distinct vertices.
B. The root and the leaves only.
C. Adjacent vertices only.
D. No vertices.

18 If you add one edge to a tree (connecting two existing vertices), the graph becomes:

A. Disconnected
B. A forest
C. A graph with exactly one cycle
D. A complete graph

19 A collection of disjoint trees is called a:

A. Bush
B. Forest
C. Shrub
D. Grove

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

A. Root
B. Internal vertex
C. Leaf (or terminal vertex)
D. Ancestor

21 The level of the root in a rooted tree is typically defined as:

A. 0
B. 1
C. -1
D. Infinity

22 The height of a rooted tree is defined as:

A. The total number of vertices.
B. The maximum level of any vertex in the tree.
C. The number of leaves.
D. The number of internal nodes.

23 An -ary tree is a rooted tree where every internal vertex has no more than children. If every internal vertex has exactly children, the tree is called:

A. Complete -ary tree
B. Full -ary tree
C. Balanced tree
D. Spanning tree

24 For a full -ary tree with internal vertices, the number of leaves is given by:

A.
B.
C.
D.

25 A spanning tree of a connected graph is a subgraph that:

A. Contains all edges of and is a tree.
B. Contains all vertices of and is a tree.
C. Contains a subset of vertices and is a tree.
D. Is planar and connected.

26 Which algorithm is used to find the Minimum Spanning Tree (MST) by greedily selecting the edge with the smallest weight that does not form a cycle?

A. Dijkstra's Algorithm
B. Kruskal's Algorithm
C. Floyd-Warshall Algorithm
D. Depth-First Search

27 Which algorithm finds the MST by growing a tree from a starting vertex, always adding the cheapest edge connecting a vertex in the tree to one outside?

A. Prim's Algorithm
B. Kruskal's Algorithm
C. Bellman-Ford Algorithm
D. Euler's Algorithm

28 According to Cayley's formula, how many distinct labeled spanning trees does a complete graph have?

A.
B.
C.
D.

29 In a weighted graph, if all edge weights are distinct, the Minimum Spanning Tree is:

A. Unique
B. Non-existent
C. One of many possibilities
D. Disconnected

30 A decision tree is a tree used to:

A. Represent the syntactic structure of strings.
B. Model sequential decision problems and their possible consequences.
C. Find the shortest path in a network.
D. Color a graph efficiently.

31 In a decision tree for sorting distinct elements using comparisons, the minimum height of the tree is:

A.
B.
C.
D.

32 In infix notation, the operator is placed:

A. Before the operands (e.g., )
B. After the operands (e.g., )
C. Between the operands (e.g., )
D. At the root of the tree only

33 Prefix notation is also known as:

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

34 Postfix notation is also known as:

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

35 Convert the expression to postfix notation.

A.
B.
C.
D.

36 Convert the expression to prefix notation.

A.
B.
C.
D.

37 Which tree traversal method produces the prefix form of an expression stored in a binary expression tree?

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

38 Which tree traversal method produces the postfix form of an expression?

A. Inorder Traversal
B. Preorder Traversal
C. Postorder Traversal
D. Breadth-First Search

39 In a binary search tree (BST), for every node , all values in the left subtree are:

A. Greater than the value of .
B. Less than the value of .
C. Equal to the value of .
D. Unordered.

40 What is the result of evaluating the postfix expression: ?

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

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

A. Increases the chromatic number.
B. Makes the graph disconnected.
C. Creates a cycle.
D. Leaves the graph connected.

42 In a tree, a vertex of degree 1 is known as a:

A. Pendant vertex (or leaf)
B. Isolated vertex
C. Cut vertex
D. Root

43 The center of a tree consists of:

A. Exactly one vertex.
B. Exactly two adjacent vertices.
C. Either one vertex or two adjacent vertices.
D. All vertices.

44 For a planar graph, if the number of edges , what is the maximum possible number of vertices if the graph is a triangulation ()?

A. 10
B. 11
C. 12
D. 9

45 Which of the following is true about a spanning tree of a graph ?

A. must be a planar graph.
B. must contain all edges of .
C. has the same number of vertices as .
D. contains cycles.

46 The postfix expression corresponding to the infix expression is:

A.
B.
C.
D.

47 A binary tree is balanced if:

A. All leaves are at the same level.
B. The height of the left and right subtrees of every node differ by at most 1.
C. Every node has 0 or 2 children.
D. It is a full binary tree.

48 If a graph represents a map of countries, determining the minimum number of colors to paint the map so adjacent countries have different colors is equivalent to finding the:

A. Chromatic number of the dual graph.
B. Chromatic number of the graph itself.
C. Euler number.
D. Minimum Spanning Tree.

49 Which of the following properties guarantees a graph is bipartite?

A. It is planar.
B. It has no odd cycles.
C. It is a tree.
D. It is complete.

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

A.
B.
C.
D.