De 2024 - DA
De 2024 - DA
FINAL EXAM
Date empty
Course title Discrete Structure for Computing
UNIVERSSITY OF TECHNOLOGY Course ID CO1007
FACULTY OF CSE Duration 90 mins Question sheet code 2024
Notes: - Student does not use course materials except one A4 (single side) hand-writing document.
- Submit the question sheet together with the answer sheet.
- Choose the best answer (only 1) for each question.
1. [L.O.1.2] [Definition]: A r-regular graph G is an undirected graph in which every vertex of G has degree r.
Which one of the following is TRUE?
(a) Any r-regular graph where r is an even number has a Eulerian circuit
(b) The cube Qn is regular for all values of n ≥ 0
(c) The wheel Wn is regular if and only if n > 3
(d) None of these answers is correct.
2. [L.O.4.1] Given a simple graph G. Which of the following statements is correct:
(a) If G is a connected graph, then it is possible to remove vertices to disconnect G iff G is a complete graph.
(b) A simple graph G is bipartite if and only if it has no circuits with an odd number of edges.
(c) A simple graph G with n vertices is connected if it has more than (n − 1)(n − 2)/3 edges.
(d) If a connected simple graph G is the union of the graphs G1 and G2 , then G1 and G2 have at least two common
vertex.
3. [L.O.4.1] Let G be an arbitrary graph with n nodes and k components. If a vertex is removed from G, the number of
components in the resultant graph must necessarily lie down between
(a) k and n
(b) k − 1 and n − 1
(c) k − 1 and n + 1
(d) k + 1 and n − k
4. [L.O.4.1] Given two graphs G1 and G2:
(a) 3
(b) 4
(c) 5
(d) 6
10. [L.O.4.1] What is the stopping matrix of the Floyd-Warshall algorithm when we apply it to the following graph?
(a) L3
(b) L5
(c) L4
(d) L2
11. [L.O.1.2] Which of the following statement(s)is/are correct regarding Bellman-Ford shortest path algorithm?
1. Always finds a negative weighted cycle, if one exists.
2. Finds whether any negative weighted cycle is reachable from the source.
(a) 1 only
(b) 2 only
(c) Both 1 and 2
(d) Neither 1 nor 2
12. [L.O.1.2] Let T = (V, E) be a tree and let d(v) be the degree of a vertex. Which of the following statement(s)is/are
correct?
1. if T has a vertex of degree m ≥ 2, then it has at least m vertices of degree 1.
P
2. v∈V (2 − d(v)) = 2
(a) abcdefghijklmnopqrst
(b) abcdfejghiklmnopqrst
(c) abcdfeghijklmnopqrst
(d) None of these answers is correct
A + B × C/(E − F ) − 3 ↑ (C − D) − (2 × G + H) + 1
25. [L.O.4.2] If P (A|C) > P (B|C) and P (A|C) > P (B|C) then:
(a) P (A) = P (B)
(b) P (A) > P (B)
(c) P (A) ≤ P (B)
(d) P (A) ≥ P (B)
1. [L.O.1.2] [Definition]: 2. [L.O.4.1] Given a sim- 4. [L.O.4.1] Given two 5. [L.O.4.1] Given two
A r-regular graph G is ple graph G. Which graphs G1 and G2: graphs G3 and G4:
an undirected graph in of the following state-
which every vertex of G ments is correct:
has degree r.
(a) If G is a con-
Which one of the fol-
nected graph,
lowing is TRUE?
then it is pos-
(a) Any r-regular sible to remove
graph where r vertices to dis-
is an even num- connect G iff G
ber has a Eule- is a complete Which of the follow-
rian circuit graph. ing statements is Which of the follow-
(b) The cube Qn is (b) A simple graph TRUE? ing statements is
regular for all G is bipartite TRUE?
(a) G1: Not pla-
values of n ≥ 0 if and only if (a) G3: Exists
nar, G2: Planar
it has no cir- Hamilton
(c) The wheel Wn cuits with an circuit, G4:
odd number of (b) G1: Not pla-
is regular if and Exists Hamil-
only if n > 3 edges. nar, G2: Not
planar ton circuit
(d) None of these (c) A simple graph
G with n (c) G1: Planar,
answers is cor- G2: Planar (b) G3: Exists
rect. vertices is
Hamilton
connected if it (d) G1: Planar,
circuit, G4:
has more than G2: Not planar
No Hamilton
(n−1)(n−2)/3
circuit
edges.
(c) G3: Exist Euler
(d) If a connected circuit, G4: Ex-
simple graph G ist Euler circuit
is the union of
the graphs G1 (d) G3: No Hamil-
and G2 , then ton circuit, G4:
G1 and G2 No Euler path
have at least
two common
vertex.
3. [L.O.4.1] Let G be an
arbitrary graph with
n nodes and k com-
ponents. If a vertex 6. [L.O.4.1] What is the
is removed from G, number of vertices in an
the number of compo- undirected connected
nents in the resultant graph with 27 edges, 6
graph must necessarily vertices of degree 2, 3
lie down between vertices of degree 4 and
remaining of degree 3?
(a) k and n
(a) 18
(b) k − 1 and n − 1
(b) 19
(c) k − 1 and n + 1 (c) 20
(d) k + 1 and n − k (d) 21