Question
a.
The number of regions - 1
b.
E - N + 1, where E is the number of flow graph edges and N is the number of flow graph nodes
c.
P – 1, where P is the number of predicate nodes in the flow graph G
d.
P + 1, where P is the number of predicate nodes in the flow graph G
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which one of the following is used to compute cyclomatic complexity?
Similar Questions
Discover Related MCQs
Q. If we define the functions f, g and h that map R into R by :
f(x) = x4, g(x) = √x2 + 1, h(x) = x2 + 72, then the value of the composite functions ho(gof) and (hog)of are given as
View solution
Q. Dijkstra algorithm, which solves the single-source shortest-paths problem, is a_______________, and the Floyd-Warshall algorithm, which finds shortest paths between all pairs of vertices, is a _____________.
View solution
Q. Equivalent logical expression for the Well Formed Formula (WFF), ~(∀ x)F[x] is
View solution
Q. An A * algorithm is a heuristic search technique which
View solution
Q. The resolvent of the set of clauses (A v B, ~ A v D, C v ~B) is
View solution
Q. How many strings of 5 digits have the property that the sum of their digits is 7 ?
View solution
Q. Consider an experiment of tossing two fair dice, one black and one red. What is the probability that the number on the black die divides the number on red die ?
View solution
Q. In how many ways can 15 indistinguishable fishes be placed into 5 different ponds, so that each pond contains atleast one fish ?
View solution
Q. Consider a Hamiltonian Graph (G) with no loops and parallel edges. Which of the following is true with respect to this Graph (G) ?
(a) deg (v) >= n / 2 for each vertex of G
(b) | E(G) | >= 1 / 2 (n-1) (n-2) + 2 edges
(c) deg (v) + deg (w) >= n for every v and w not connected by an edge
View solution
Q. An all-pairs shortest-paths problem is efficiently solved using :
View solution
Q. The travelling salesman problem can be solved in :
View solution
Q. Let f (n) and g(n) be asymptotically non-negative functions. Which of the following is correct?
View solution
Q. Given the following equalities :
E1 : nK+∈ + nK lg n = Ф(nK+∈) for all fixed K and ∈, K ≥ 0 and ∈ > 0.
E2 : n32n + 6n23n = O(n32n)
Which of the following is true ?
View solution
Q. How many different equivalence relations with exactly three different equivalence classes are there on a set with five elements
View solution
Q. Suppose that R1 and R2 are reflexive relations on a set A.
Which of the following statements is correct ?
View solution
Q. There are three cards in a box. Both sides of one card are black, both sides of one card are red, and the third card has one black side and one red side. we pick a card at random and observe only one side. What is the probability that the opposite side is the same colour as the one side we observed ?
View solution
Q. The cyclomatic complexity of a flow graph V(G), in terms of predicate nodes is:
(Where P is number of predicate nodes in flow graph V(G)
View solution
Q. How many multiples of 6 are there between the following pairs of numbers?
0 and 100 and -6 and 34
View solution
Q. Consider a Hamiltonian Graph G with no loops or parallel edges and with |V(G)|=n≥3. Then which of the following is true?
View solution
Q. Which of the following statements is false?
(A) Optimal binary search tree construction can be performed efficiently using dynamic programming.
(B) Breadth-first search cannot be used to find connected components of a graph.
(C) Given the prefix and postfix walks of a binary tree, the tree cannot be re-constructed uniquely.
(D) Depth-first-search can be used to find the components of a graph.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Discrete Structures? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!