All Exams Test series for 1 year @ ₹349 only
Question

The cyclomatic complexity metric provides the designer with information regarding the number of __________.

This question was previously asked in
UGC NET 2022 Paper 1 Question Paper (22-Oct-2022) (Shift 2)
The correct answer is

Independent logic paths in the program

Cyclomatic complexity, introduced by McCabe, is a software metric computed from the control-flow graph of a program and is the basis of basis-path testing.

Step 1 — It is computed as \(V(G) = E - N + 2\) (edges minus nodes plus two), or as the number of decision (predicate) nodes plus one, or as the number of regions of the flow graph.

Step 2 — The value equals the number of linearly independent paths through the program, which is the number of test cases needed to execute every statement and every branch at least once in basis-path testing.

The metric does not count loops (cycles) as such, it cannot predict the number of errors (it only indicates where errors are likely), and it is unrelated to the count of statements: a long straight-line program has complexity 1.

Independent logic paths in the program option is correct.

Was this answer helpful?

Similar Questions

  1. Maximum possible value of reliability is

  2. Which one of the following is not a source code metric ?

  3. In software testing, how the error, fault and failure are related to each other ?

  4. Which design metric is used to measure the compactness of the program in terms of lines of code ?

  5. Verification :

  6. In which testing strategy requirements established during requirements analysis are validated against developed software ?

  7. Which one of the following is not a definition of error ?

  8. Assume that a program will experience 200 failures in infinite time. It has now experienced 100 failures. The initial failure intensity was 20 failures/CPU hr. Then the current failure intensity will be

  9. Software testing is

  10. Regression testing is primarily related to


Important Questions from Software Testing

  1. Equivalence partitioning is a ______.

  2. What is the other name of White-box testing?

  3. Arrange the following types of testing in the order they are usually performed in the software Development life cycle.
    A. Integration testing
    B. Unit testing
    C. System Testing
    D. Acceptance Testing
    Choose the correct answer from the options given below:
  4. Assertion(A):Rubber necking might be called non generative pattern
    Reason(R): Non generative pattern describes a content and a problem but it does not provide any clear cut solution.
  5. Which method can be applied to problems in which the input domain is relatively small but too large to accommodate exhaustive testing?
Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) 2026 Mock Test Series
796 Tests 2 Tests Free
4.4(39)
English
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App