adplus-dvertising
frame-decoration

Question

What is McCabe's cyclomatic complexity metric used for in testing?

a.

To count the number of statements in the program

b.

To count the number of branches in the control graph

c.

To calculate the number of linearly-independent paths in the control graph

d.

To calculate the number of nodes in the control graph

Posted under Software Engineering

Answer: (c).To calculate the number of linearly-independent paths in the control graph Explanation:McCabe's cyclomatic complexity metric is used to calculate the number of linearly-independent paths in the control graph. It is a basis set, which is a maximal linearly-independent set of paths through a graph.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is McCabe's cyclomatic complexity metric used for in testing?

Similar Questions

Discover Related MCQs

Q. What is the definition of dataflow analysis in software testing?

Q. What is the definition of a definition-clear path in dataflow analysis?

Q. What are the two types of variable use in dataflow analysis?

Q. What is All-Uses coverage in dataflow analysis?

Q. What is All-DU-Paths coverage in dataflow analysis?

Q. What is All-defs coverage in dataflow analysis?

Q. What is dataflow analysis?

Q. What is the difference between P-uses and C-uses of a variable in dataflow analysis?

Q. What is the purpose of All-Uses coverage in dataflow analysis?

Q. What is the difference between All-DU-Paths coverage and All-Uses coverage in dataflow analysis?

Q. What is All-C-uses/Some-P-uses coverage in dataflow analysis?

Q. What is the main goal of coverage-based testing of requirements specifications?

Q. What is the result of transforming requirements specifications into a graph model?

Q. What is the format used in rewording a use case in requirements specifications?

Q. What is the weak point in the procedure of determining a set of test cases using control-flow coverage criteria?

Q. What is the main idea behind fault-based test techniques?

Q. What is the error seeding technique in fault-based testing strategies?

Q. What is the main goal of fault-based testing techniques?

Q. What is the main advantage of error seeding?

Q. What is the purpose of marking the pikes in the example of error seeding in Lake Soft and Lake Seed?