Question 1
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?