Question
What does Cyclomatic Complexity measure in software
engineering?Solution
Cyclomatic Complexity is a software metric used to measure the complexity of a program's control flow. Developed by Thomas McCabe in 1976, it quantifies the number of linearly independent paths through a program’s source code. This metric is important for several reasons: • Complexity Measurement: Cyclomatic Complexity provides an indication of the complexity of a program based on its control flow graph. The metric is calculated by counting the number of linearly independent paths through the program’s code. This helps in understanding how complex a module or function is, based on its decision points and branching. • Testing: A higher Cyclomatic Complexity value suggests more paths through the code, which means more test cases are needed to achieve thorough testing. Each independent path represents a unique test scenario that should be covered to ensure comprehensive testing of the module. • Maintainability: Programs with high Cyclomatic Complexity are generally harder to understand, maintain, and modify. By keeping Cyclomatic Complexity low, developers can create code that is easier to read, debug, and modify.
What is the total outlay approved by the Union Cabinet for the Viability Gap Funding (VGF) scheme for offshore wind energy projects?
How many Atal Tinkering Labs are proposed to be established in government schools over the next five years as per estimate of Union Budget 2025-26? Â <...
Under Pradhan Mantri Ujjwala Yojna (PMUY), the beneficiaries get how much subsidy in their bank account and how many subsidized cylinders per year?
Which of the following conventions control Transboundary Movement of Hazardous waste and its disposal?Â
Coal India Limited (CIL) launched the CIL ASHIS initiative to provide scholarships to children who:
What is the primary purpose of the Performance Grading Index for Districts (PGI-D) report?Â
According to the World Bank, India’s Gini Index stands at 25.5. This figure indicates that India is ranked as which of the following in terms of incom...
Consider the following about Ayushman Bharat.
I. A health insurance scheme for providing free, quality and cashless health facilities in secondar...
When was the Employees' Provident Funds and Miscellaneous Provisions Act enacted?
Which of the following statements about PM-KISAN is INCORRECT?