CS FundamentalsVery hardProduct-company placement · GATE CS

How many of these statements about data-flow coverage criteria are correct? 1. All-uses subsumes all-defs (when every definition reaches some use). 2. All-du-paths subsumes all-uses. 3. All-defs subsumes branch coverage. 4. Achieving all-uses guarantees all-du-paths.

  1. A. 1
  2. B. 3
  3. C. 2
  4. D. 4

Correct answer: C. 2

All-uses needs a def-clear path from each def to every reachable use, which includes reaching at least one (1), and all-du-paths needs every such simple path, which is stronger (2). All-defs can be met while branches go untaken (3 false), and all-uses needs only one path per du-pair, not all of them (4 false).

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic