Identifying errors
You need to be able to identify the syntax and logic errors in programs. The pseudocode algorithm below totals all the numbers in the 0-indexed array scores.
Logic error: Line 2. Should start at 0 not 1 or else the first number in the array is not included.
Syntax error: Line 3. Square brackets are required to access elements of
an array.