Given an array nums with some length, which loop condition ensures each element is visited exactly once from start to end using index i that starts at 0?
If array a has length 5, which expression accesses its last element using the length property?
In the construct 'for each value v in arr', what does v represent during traversal?
How many iterations does the loop 'for i = 0; i u003C arr.length; i++' perform when arr is empty (length 0)?
For an array values of length 4, which single index is out of bounds for direct access?
To compute the total of numeric elements with 'sum = ?; for i = 0; i u003C a.length; i++: sum = sum + a[i]', which initial value for sum is correct?
Given 'for i = 0; i u003C arr.length; i++: if arr[i] == target: break', what happens when target is found at index 2?
Which loop header correctly traverses an array arr from the last element to the first using index i?
To visit every element of a 2D array grid where each row may have a different length, which inner loop condition is correct for row r?
Given arr = [10, 20, 30] and the loop 'for i = 0; i u003C arr.length; i++: print(i, arr[i])', which pairs are printed?