Skip to main content
Sign in Register
Question no. 92974

Define Cyclomatic complexity?

Select your answer for: Define Cyclomatic complexity?
Show answer

Answer: B. White box testing

Explanation

Cyclomatic complexity is a white-box testing metric that measures linearly independent paths through program source code. White-box testing relies on internal knowledge of code structure to design thorough execution test cases. Calculating this metric reveals the structural complexity of a function and guides white-box test coverage. Thomas J. McCabe introduced cyclomatic complexity as a software metric based on control flow graph theory. The metric is calculated using the number of edges, nodes, and connected components within a control graph. Higher complexity values indicate difficult maintenance, lower readability, and a higher probability of hidden defects.

Black box testing evaluates functionality based strictly on requirements without examining internal source code structure. Yellow box testing is a fictional term not recognized within standard software engineering testing methodologies. Green box testing does not exist as a formal classification within software testing or quality assurance taxonomies.

Topic
—
Difficulty
medium

Related questions

Q1. Which among these options is wrong ?

Select your answer for: Which among these options is wrong ?
Show answer

Answer: C. Computer science belongs to Software engineering

Software engineering is widely recognized as a specialized sub-discipline contained within broader computer science. Computer science encompasses theoretical foundations, algorithms, and hardware architecture far beyond...

Q2. What is a set of software elements treated as a single unit for SCM purposes?

Select your answer for: What is a set of software elements treated as a single unit for SCM purposes?
Show answer

Answer: A. Software Configuration Item

A Software Configuration Item represents a managed unit within configuration management processes. SCIs are uniquely identified and formally controlled throughout the software development lifecycle. Treating related soft...

Q3. Which option is excluded from standard change management processes?

Select your answer for: Which option is excluded from standard change management processes?
Show answer

Answer: D. None of the mentioned

All listed steps are fundamental components of standard change management procedures. Logging changes ensures traceability and accountability throughout the software lifecycle. Estimating impact and reviewing with stakeh...

Q4. What is the cause of software bugs and failures_____________________?

Select your answer for: What is the cause of software bugs and failures_____________________?
Show answer

Answer: C. Both Software companies and Developers

Software defects originate from multiple sources including organizational flaws and developer mistakes. Software companies establish faulty processes while individual developers introduce specific coding errors. Comprehe...

Q5. Which of these is not among the eight principles of the Software Engineering Code of Ethics and Professional Practice?

Select your answer for: Which of these is not among the eight principles of the Software Engineering Code of Ethics and Professional Practice?
Show answer

Answer: D. ENVIRONMENT

The environment is not listed as one of the fundamental ethical principles. Professional software engineering ethics focus primarily on human stakeholders and products. Environmental concerns are broad but omitted from t...

Q6. Which of the following terms characterizes testing?

Select your answer for: Which of the following terms characterizes testing?
Show answer

Answer: B. Evaluating deliverable to find errors

Testing involves evaluating software deliverables systematically to uncover hidden defects and errors. Executing programs under controlled conditions helps discover discrepancies between expected and actual results. Qual...