Cyclomatic Complexity method comes under which testing method :

  1. White box

  2. Black box

  3. Green box

  4. Yellow box


Correct Option: A

AI Explanation

To answer this question, you need to understand the concept of Cyclomatic Complexity and its relation to testing methods.

Cyclomatic Complexity is a metric used to measure the complexity of a program. It calculates the number of independent paths through a program's source code. It helps in determining the number of test cases required to achieve full branch coverage.

Based on this, the correct answer is:

A. White box

Cyclomatic Complexity is primarily used in white box testing. White box testing focuses on testing the internal structure and implementation details of a program. It requires knowledge of the program's source code and uses techniques like code coverage analysis to ensure that all paths and branches are tested.

Black box testing, on the other hand, focuses on testing the functionality of a program without considering its internal structure. It does not require knowledge of the program's source code and is typically done by testing the program's inputs and outputs.

Green box testing and Yellow box testing are not commonly used terms in software testing and are not directly related to the topic of Cyclomatic Complexity.

Therefore, the correct answer is A) White box.

Find more quizzes: