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?
Responses
APPEND(evenList, i)
i ← i + 2
APPEND(evenList, i) i ← i + 2
i ← i + 2
APPEND(evenList, i)
i ← i + 2 APPEND(evenList, i)
APPEND(evenList, 2 * i)
i ← i + 1
APPEND(evenList, 2 * i) i ← i + 1
i ← i + 1
APPEND(evenList, 2 * i)