UGC NET Paper 2 (Computer Science)Hard
A flow graph has 17 edges and 13 nodes with one connected component. McCabe's cyclomatic complexity V(G) is:
- A. 4
- B. 5
- C. 6
- D. 7
Correct answer: C. 6
V(G) = E - N + 2 = 6, equal to the number of predicate nodes plus one.
Practise more UGC NET Computer Science and Applications questionsUGC NET Computer Science and Applications: notes and key points
More UGC NET Computer Science and Applications questions
- Among the cohesion types, the weakest and strongest respectively are:
- A program has 10 distinct operators, 15 distinct operands, 40 total operators and 60 total operands. Halstead volume V = N log2 n is about:
- A 5-stage pipeline executes 100 instructions with no stalls. The speed-up over the non-pipelined processor is approximately:
- A 32 KB direct-mapped cache has 64-byte lines and the address is 32 bits. The number of tag bits is:
- The 8-bit two's complement representation of -45 is:
- The cache hit time is 2 ns, the miss rate is 5% and the miss penalty is 50 ns. The average memory access time is: