nerdexam
ISTQB

ISTQB-CTFL · Question #37

A Static analysis tool analyzes a given program's CONTROL FLOW among other things. Which of the following options represents the most likely outcome of the control flow analysis:

The correct answer is A. Identification of unreachable code. A static analysis tool is a tool that analyzes a given program's source code or executable code without executing it. A static analysis tool can perform various types of analysis on a program's code, such as syntax checking, data flow analysis, control flow analysis, complexity…

Static Testing

Question

A Static analysis tool analyzes a given program's CONTROL FLOW among other things. Which of the following options represents the most likely outcome of the control flow analysis:

Options

  • AIdentification of unreachable code
  • BReport on adherence to the coding standards
  • CNumber of comment lines
  • DNumber of source code lines

How the community answered

(32 responses)
  • A
    81% (26)
  • B
    3% (1)
  • C
    9% (3)
  • D
    6% (2)

Explanation

A static analysis tool is a tool that analyzes a given program's source code or executable code without executing it. A static analysis tool can perform various types of analysis on a program's code, such as syntax checking, data flow analysis, control flow analysis, complexity measurement, coding standards compliance checking, etc. Control flow analysis is a type of analysis that examines how a program's statements are executed in different paths or branches. One of the most likely outcomes of control flow analysis is identification of unreachable code, which is code that can never be executed due to logical errors or design flaws. Unreachable code can reduce readability and maintainability of the code, as well as increase complexity and size. The other options are not outcomes of control flow analysis, but rather outcomes of other types of analysis. Report on adherence to coding standards is an outcome of coding standards compliance checking. Number of comment lines and number of source code lines are outcomes of complexity measurement.

Topics

#static analysis#control flow analysis#unreachable code#code quality

Community Discussion

No community discussion yet for this question.

Full ISTQB-CTFL Practice