Multiple choice technology programming languages

In “FOR K VALUES OF FIELDNAME” statement . If K is negative?

  1. The loop is skipped

  2. The loop is repeated for all the values of the field

  3. Infinite loop

  4. The loop is executed once.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Model 204, when K is negative in 'FOR K VALUES OF FIELDNAME', the statement loops through ALL occurrences of the field, not just a limited number. This is a special case where a negative value acts as a flag to process the entire set. Option B correctly describes this behavior. Options A and D are incorrect because the loop is neither skipped nor executed just once. Option C is incorrect because the loop terminates after processing all values.