Explore Westonci.ca, the leading Q&A site where experts provide accurate and helpful answers to all your questions. Experience the ease of finding reliable answers to your questions from a vast community of knowledgeable experts. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

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)