Asked by Yousef Abualhawa on May 16, 2024

verifed

Verified

A ____ loop is very convenient for cycling through array elements.

A) while
B) do-while
C) switch
D) for

For Loop

A control flow statement for specifying iteration, allowing code to be executed repeatedly based on a given boolean condition.

Array Elements

Individual items stored within an array, accessible by index and can hold values of a specific type.

  • Familiarize with the use of loops, specifically the 'for' loop, for iterating through array elements.
verifed

Verified Answer

AH
Ainul HayatiMay 17, 2024
Final Answer :
D
Explanation :
A for loop is specifically designed for cycling through sequences, such as arrays, making it the most convenient choice for iterating over array elements.