MCQ
What is the sum of all elements of the array [1, 2, 3, 4] added by a loop?
Unit-3 Programming Fundamentals
A 9
B 10
C 12
D 8
Explanation

Adding 1 + 2 + 3 + 4 gives a total of 10.