Question 16
What is the expected output of the following code?
- The code is erroneous.
- 6
- 5
- 4
Question 17
What is the expected output of the following code?
- ('Peter': 30, 'Paul': 31)
- ('Peter', 'Paul')
- ['Peter': 30, 'Paul': 31]
- ['Peter', 'Paul']
Question 18
What is the output of the following snippet?
- 2
- 4
- The snippet is erroneous (invalid syntax)
Question 19
What is the expected output of the following code?
- (4)
- 4
- (4,)
- 44
Question 20
What is the output of the following snippet?
- [1, 1, 2, 2]
- [1, 1, 1, 2]
- [1, 2, 1, 2]
- [1, 2, 2, 2]