MCQ
What is the sum of all elements of the array [1, 2, 3, 4] added by a loop?
Explanation
Adding 1 + 2 + 3 + 4 gives a total of 10.
Adding 1 + 2 + 3 + 4 gives a total of 10.