Question 46
What is the output of the following snippet?
- [1, 2, 3]
- [3, 3, 3]
- [3, 2, 1]
- [1, 1, 1]
Question 47
What snippet would you insert in the line indicated below to print The highest number is 10 and the lowest number is 1. to the monitor?
- None of the above.
Question 48
What is the output of the following snippet?
- ['Mary', 'had', 'a', 'little', 'lamb']
- ['Mary', 'had', 'a', 'lamb']
- ['Mary', 'had', 'a', 'ramb']
- No output, the snippet is erroneous
Question 49
What is the expected output of the following code?
- Paul
- Mary
- The code is erroneous.
- None of the above.
- Peter
Question 50
What is the expected output of the following code?
- 1
- 4
- 3
- 2