Correct Answer: A graph drawable without edge crossings
Explanation:
A planar graph can be drawn on a plane so that no two edges cross except at a common endpoint.
Incorrect! Try again.
2Which complete graph is non-planar?
Planar graphs
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The complete graph cannot be drawn in a plane without edge crossings, so it is non-planar.
Incorrect! Try again.
3For a connected planar graph with vertices, edges, and faces, Euler's formula is:
Euler formula
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Euler's formula for every connected planar graph is .
Incorrect! Try again.
4A connected planar graph has vertices and edges. How many faces does it have?
Euler formula
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Using , we get , so .
Incorrect! Try again.
5What 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
Correct Answer: Assigning different colours to adjacent vertices
Explanation:
In a proper vertex colouring, any two vertices joined by an edge must have different colours.
Incorrect! Try again.
6What 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
Correct Answer: The minimum number of vertex colours
Explanation:
The chromatic number is the minimum number of colours needed for a proper vertex colouring.
Incorrect! Try again.
7What is the chromatic number of a nonempty bipartite graph?
Colouring of a graph and chromatic number
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
The two vertex sets of a nonempty bipartite graph can be coloured using two different colours.
Incorrect! Try again.
8Which 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
Correct Answer: It is connected and contains no cycles
Explanation:
A tree is an undirected graph that is connected and acyclic.
Incorrect! Try again.
9How many edges does a tree with vertices have?
Tree graph and its properties
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
Every tree with vertices has exactly edges.
Incorrect! Try again.
10How 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
Correct Answer: Exactly one
Explanation:
A tree has exactly one simple path between every pair of distinct vertices.
Incorrect! Try again.
11What is the specially designated vertex of a rooted tree called?
Rooted tree
Easy
A.Sibling
B.Leaf
C.Root
D.Branch
Correct Answer: Root
Explanation:
A rooted tree has one designated vertex called the root.
Incorrect! Try again.
12What 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
Correct Answer: A vertex with no children
Explanation:
A leaf is a vertex that has no children in the rooted tree.
Incorrect! Try again.
13What 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
Correct Answer: Every vertex of the graph
Explanation:
A spanning tree connects all vertices of the original graph without containing a cycle.
Incorrect! Try again.
14What 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
Correct Answer: A spanning tree with minimum total edge weight
Explanation:
A minimum spanning tree connects all vertices while minimizing the sum of its edge weights.
Incorrect! Try again.
15Which 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
Correct Answer: Kruskal's algorithm
Explanation:
Kruskal's algorithm builds a minimum spanning tree by repeatedly selecting suitable edges of minimum weight.
Incorrect! Try again.
16In 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
Correct Answer: A test or decision
Explanation:
An internal node represents a test or decision, while its branches represent possible choices or results.
Incorrect! Try again.
17In 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
Correct Answer: A final outcome
Explanation:
A leaf node marks the final result or outcome reached after following a sequence of decisions.
Incorrect! Try again.
18Which expression is written in infix notation?
Infix, prefix, and postfix notation
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
In infix notation, the operator is written between its operands, as in .
Incorrect! Try again.
19What is the prefix form of the infix expression ?
Infix, prefix, and postfix notation
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
In prefix notation, the operator appears before its operands, so becomes .
Incorrect! Try again.
20What is the postfix form of the infix expression ?
Infix, prefix, and postfix notation
Easy
A.
B.
C.
D.
Correct Answer:
Explanation:
In postfix notation, the operator appears after its operands, so becomes .
Incorrect! Try again.
21A simple connected planar graph has vertices. What is the maximum possible number of edges it can have?
Planar graphs
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
For a simple connected planar graph with , . Thus, .
Incorrect! Try again.
22Why 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
Correct Answer: It has more than edges
Explanation:
A simple bipartite planar graph satisfies . For , and , but , so it is nonplanar.
Incorrect! Try again.
23A 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.
Correct Answer:
Explanation:
Euler's formula gives . Therefore, .
Incorrect! Try again.
24A 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.
Correct Answer:
Explanation:
A planar triangulation has . Euler's formula then gives .
Incorrect! Try again.
25What is the chromatic number of the cycle graph ?
Colouring of a graph and chromatic number
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
An odd cycle cannot be coloured with two colours, but three colours are sufficient. Hence, .
Incorrect! Try again.
26What is the chromatic number of the complete bipartite graph ?
Colouring of a graph and chromatic number
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Every nonempty bipartite graph can be properly coloured using two colours, one for each vertex partition.
Incorrect! Try again.
27A 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.
Correct Answer:
Explanation:
The new universal vertex is adjacent to vertices of all three required colour classes, so it must receive a fourth colour.
Incorrect! Try again.
28A connected graph with vertices contains no cycles. How many edges does it have?
Tree graph and its properties
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
A connected acyclic graph is a tree, and every tree with vertices has exactly edges.
Incorrect! Try again.
29A forest has vertices and connected components. How many edges does the forest contain?
Tree graph and its properties
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
A forest with vertices and components has edges. Thus, it has edges.
Incorrect! Try again.
30A 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.
Correct Answer:
Explanation:
If there are leaves, then the degree sum is . Since the tree has vertices, , giving .
Incorrect! Try again.
31What 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.
Correct Answer:
Explanation:
The maximum occurs in a complete binary tree: .
Incorrect! Try again.
32A full binary rooted tree has internal vertices. How many leaves does it have?
Rooted tree
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
In a full binary tree, the number of leaves is one more than the number of internal vertices. Thus, there are leaves.
Incorrect! Try again.
33In 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
Correct Answer: Vertex
Explanation:
The paths from and toward the root first meet at , so is their lowest common ancestor.
Incorrect! Try again.
34How many distinct spanning trees does the cycle graph have?
Spanning and minimum spanning tree
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
A spanning tree of a cycle is obtained by deleting exactly one cycle edge. Since has eight edges, it has eight spanning trees.
Incorrect! Try again.
35A weighted graph has edges , , , , , , and . What is the weight of a minimum spanning tree?
Spanning and minimum spanning tree
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
Kruskal's algorithm selects , , , and . These connect all five vertices with total weight .
Incorrect! Try again.
36A 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
Correct Answer: The graph has exactly one minimum spanning tree
Explanation:
Distinct edge weights guarantee that all choices made by a minimum spanning tree algorithm are unambiguous, so the minimum spanning tree is unique.
Incorrect! Try again.
37A 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.
Correct Answer:
Explanation:
A binary tree of height can have at most leaves. Since , the minimum height is .
Incorrect! Try again.
38Using 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.
Correct Answer:
Explanation:
Every element except the maximum must lose at least one comparison. Therefore, finding the maximum among elements requires at least comparisons.
Incorrect! Try again.
39Which postfix expression is equivalent to the infix expression ?
Infix, prefix, and postfix notation
Medium
A.
B.
C.$AB+CD*- $
D.
Correct Answer:
Explanation:
First compute as and as . Multiplying the two results gives .
Incorrect! Try again.
40What is the value of the prefix expression ?
Infix, prefix, and postfix notation
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The expression represents .
Incorrect! Try again.
41A 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.
Correct Answer:
Explanation:
The graph attains the planar maximum , so every face is triangular. Euler's formula gives .
Incorrect! Try again.
42A 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.
Correct Answer:
Explanation:
For a planar graph with components, . Thus , giving .
Incorrect! Try again.
43A 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.
Correct Answer:
Explanation:
For girth , . Hence , so the integer bound is .
Incorrect! Try again.
44A 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
Correct Answer: vertices, edges, and loops
Explanation:
Euler's formula gives , so the dual has vertices and edges. Each bridge of the original graph corresponds to a loop in the dual.
Incorrect! Try again.
45Let 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.
Correct Answer:
Explanation:
Deleting a rim edge turns the rim into a path, which can be colored alternately with two colors. The hub requires a third color, and a remaining triangle shows that two colors cannot suffice.
Incorrect! Try again.
46The 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.
Correct Answer:
Explanation:
Colors used on the two parts of a join must be disjoint, so . Therefore .
Incorrect! Try again.
47A 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.
Correct Answer:
Explanation:
Every edge joins an original vertex to a subdivision vertex. These two types of vertices form a bipartition, so is bipartite and has chromatic number .
Incorrect! Try again.
48The 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.
Correct Answer:
Explanation:
Coloring is equivalent to edge-coloring . Since an odd complete graph has edge-chromatic number , .
Incorrect! Try again.
49A 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.
Correct Answer:
Explanation:
For a tree, the number of leaves is . Thus it is .
Incorrect! Try again.
50A 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.
Correct Answer:
Explanation:
For component orders , the number is . Here it is .
Incorrect! Try again.
51An ordered binary tree has preorder traversal and inorder traversal . What is its postorder traversal?
Rooted tree
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The left subtree is rooted at with children , while the right subtree is rooted at with right child . Postorder visits left, right, then root.
Incorrect! Try again.
52A 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.
Correct Answer:
Explanation:
If is the number with two children, then the edges give , so . The leaves number .
Incorrect! Try again.
53How many spanning trees of the labeled complete graph contain a particular fixed edge?
Spanning and minimum spanning tree
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
By symmetry, each edge occurs equally often among the spanning trees. Counting tree-edge incidences gives .
Incorrect! Try again.
54A 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.
Correct Answer:
Explanation:
Every MST contains , chooses exactly one of , and chooses exactly one of . These independent choices give MSTs.
Incorrect! Try again.
55In with vertices , assign edge the weight . How many distinct minimum spanning trees exist?
Spanning and minimum spanning tree
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
For each , vertex must choose one parent among at weight . Thus the number is .
Incorrect! Try again.
56In 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.
Correct Answer:
Explanation:
The tree needs at least leaves, one for each ordering. Its height is therefore at least .
Incorrect! Try again.
57Two 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
Correct Answer: comparisons
Explanation:
There are possible interleavings. A binary tree distinguishing them requires height at least .
Incorrect! Try again.
58Assuming every operator is binary, which infix expression corresponds to the prefix expression ?
Infix, prefix, and postfix notation
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The left operand of subtraction is , and the right operand is .
Incorrect! Try again.
59What is the postfix form of ?
Infix, prefix, and postfix notation
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The subexpressions become and . Their product is formed before the final subtraction from .
Incorrect! Try again.
60Assuming 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.
Correct Answer:
Explanation:
The first exponentiation forms , the next forms , and forms . The final operator multiplies these results.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →