Question 51
What is the expected output of the following code?
- 0
- 1
- The code is erroneous.
- 2
Question 52
What is the expected output of the following code?
- The code is erroneous.
- ['Peter', 'Jane', 'Mary']
- ['Peter', 'Jane']
- ['Paul', 'Mary', 'Jane']
Question 53
What is the expected output of the following code?
- 2 4
- 1 3
- 3 1
- 4 2
Question 54
What is the expected output of the following code?
- 4
- 10
- Nothing gets printed.
- The code is erroneous.
Question 55
After execution of the following snippet, the sum of all vals elements will be equal to:
- 4
- 5
- 2
- 3