nerdexam
GIAC

GSLC · Question #320

In Which of the following types of white box testing are the test cases designed based on data flow within the code?

The correct answer is A. Data flow testing. Data flow testing is the white box technique where test cases are derived from how data values are defined, used, and killed as they travel through the code.

Security Architecture & Engineering

Question

In Which of the following types of white box testing are the test cases designed based on data flow within the code?

Options

  • AData flow testing
  • BControl flow testing
  • CPath testing
  • DBranch testing

How the community answered

(48 responses)
  • A
    88% (42)
  • B
    4% (2)
  • C
    2% (1)
  • D
    6% (3)

Why each option

Data flow testing is the white box technique where test cases are derived from how data values are defined, used, and killed as they travel through the code.

AData flow testingCorrect

Data flow testing focuses on the lifecycle of variables within code - specifically the points where a variable is defined (assigned), used in a computation, and undefined or killed. Test cases are designed to cover paths between these definition and use points, helping detect defects such as use-before-initialization or variables used after being freed. It is a structural white box technique that targets data-related anomalies rather than purely structural paths.

BControl flow testing

Control flow testing designs test cases based on the logical flow of control (decisions and conditions) through the program, not based on how data values move.

CPath testing

Path testing aims to execute every distinct path through a program's control flow graph, focusing on execution routes rather than variable data lifecycles.

DBranch testing

Branch testing ensures every decision branch (true/false outcome) in the code is exercised at least once, which is a subset of control flow testing and unrelated to data variable tracking.

Concept tested: Data flow white box testing technique

Source: https://www.istqb.org/downloads/syllabi/foundation-level-syllabus.html

Topics

#data flow testing#white box testing#software testing#code analysis

Community Discussion

No community discussion yet for this question.

Full GSLC Practice