QuestionQ57

VerifiedWhite-Box Test Techniques

The pseudo-code below calculates a customer’s cruise credits from their prior cruise history:

Question Image

What type of data-flow anomaly results from the variable CRUISE_LENGTH on line 3?

Explanation

CRUISE_LENGTH is declared but is never assigned a value by any executable statement. This is a declared-but-not-defined data-flow anomaly.

Community Discussion

No comments yet. Be the first to start the discussion!