In the pseudocode, a list is written in square brackets. L[0] is the first element, L[1] the second, and so on. length(L) gives the number of elements and append(L, x) adds x at the end.
L = [9, 22, 17, 12, 4, 10, 2] Print L[1] + L[2]
What is printed?

In the pseudocode, a list is written in square brackets. L[0] is the first element, L[1] the second, and so on. length(L) gives the number of elements and append(L, x) adds x at the end. L = [9, 22, 17, 12, 4, 10, 2] Print L[1] + L[2] What is printed? In the pseudocode, a list is written in square brackets. L[0] is the first element, L[1] the second, and so on. length(L) gives the number of elements and append(L, x) adds x at the end. L = [28, 39, 24] append(L, 17) append(L, 4) Print L[length(L) - 1] - L[0] What is printed? In the pseudocode, a list is written in square brackets. L[0] is the first element, L[1] the second, and so on. length(L) gives the number of elements and append(L, x) adds x at the end. L = [17, 6, 20, 21, 15] total = 0 i = 0 while (i < length(L)) { total = total + L[i] i = i + 2 } Print total What is printed?