Wednesday 3 June 2020

UGC NET Computer Science December 2019 | Question 142

Question 142
A flow graph F with entry node (1) and exit node (11) is shown below:


What is the cyclomatic complexity of flowgraph F?
  1. 1. 2
  2. 2. 3
  3. 3. 4
  4. 4. 3
Answer : 3. 4

Explanation Question 142

To find cyclomatic complexity we have 3 formulas
  1. The number of regions(R) corresponds to the cyclomatic complexity. Total number of regions(R) are 4.
  2. V(G), Flow graph is defined as V(G) = P + 1 where p is the number of predicate nodes contained in the flow graph G. Predicates are 3 + 1 = 4
  3. V(G), Flow graph is defined as V(G) = E - N + 2 where E is the number of flow graph edges, and N is the number of flow graph nodes.
    Edges(E) - Nodes(N) + 2
    = 11 - 9 + 2
    = 2 + 2
    = 4
So, option 3 is correct answer

PreviousNext
UGC NET CS December 2019 - Question 141UGC NET CS December 2019 - Question 143

1 comment:

  1. UGC is the lifeline of the Indian Education System. Its main priority is to oversee all the things related to Higher Education In India. It was established for this sole purpose, to maintain quality and harmony among universities, government, and community.

    UGC has many ways of doing there work, such as through the standard of UGC Approved Universities and UGC CARE which establishes a Criteria for the scientific journals.

    Without UGC there would have been a lot of discrepancies among the Indian Academia and there would have been no strict standards as to how universities must function creating a plethora of useless graduate and postgraduate degrees being handed out.
    UGC Care List
    A strict set of standards created by UGC ensures that everything is in order and every university is adequately funded and looked after.

    ReplyDelete

UGC NET Computer Science December 2019 | Question 16

Question 16 In a certain coding language. 'AEIOU' is written as 'TNHDZ'. Using the same coding language. 'BFJPV' wil...

Popular Posts