QuestionQ16

VerifiedWhite-Box Test Techniques

Consider the pseudocode for the Price program:

Question Image

Which statement about the Price program identifies a control-flow anomaly present in the program?

Explanation

Del_Charge starts at 5 and is incremented on every pass through a loop whose condition is Del_Charge > 0. Its value can therefore never become zero or negative, so the loop runs indefinitely.

Community Discussion

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