Multiple choice

An efficient means of printing a two-dimensional array is to use _______.

  1. a DO WHILE...LOOP

  2. a FOR...NEXT loop

  3. two nested FOR...NEXT loops

  4. a DO UNTIL...LOOP statement

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

A two-dimensional array has rows and columns, requiring two separate loops to access all elements systematically. The outer loop iterates through rows, while the inner loop iterates through columns. This nested structure ensures every element in the 2D grid is processed exactly once.