Consider the following code segment, which is intended to store ten consecutive even integers, beginning with 2, in the list evenList. Assume that evenList is initially empty.
i ← 1 REPEAT 10 TIMES
{ }
Which of the following can be used to replace so that the code segment works as intended?
A) APPEND(evenList, i)
i ← i + 2
B) i ← i + 2
APPEND(evenList, i)
C) APPEND(evenList, 2 * i)
i ← i + 1
D) i ← i + 1
APPEND(evenList, 2 * i)