Python Multiple Choice Questions (Test 4)

Python Multiple Choice Question (Test 4)

1 / 11

What will be the output after the following statements?
x = [25, 'Today', 53, 'Sunday', 15]
x.reverse()
print(x)

2 / 11

What will be the output after the following statements?
x = ['25', 'Today', '53', 'Sunday', '15']
x.sort()
print(x)

3 / 11

What will be the output after the following statements?
x = [25, 14, 53, 62, 11]
x.sort()
print(x)

4 / 11

What will be the output after the following statements?
x = [5, 4, 3, 2, 1]
x.reverse()
print(x)

5 / 11

What will be the output after the following statements?
x = [5, 4, 3, 2, 1]
y = [10, 5, 0]
y.extend(x)
print(y)

6 / 11

What will be the output after the following statements?
x = [5, 4, 3, 2, 1]
y = [10, 5, 0]
x.extend(y)
print(y)

7 / 11

What will be the output after the following statements?
x = [5, 4, 3, 2, 1]
y = [0, 5, 10]
x.extend(y)
print(x)

8 / 11

What will be the output after the following statements?
x = [5, 4, 3, 2, 1]
x.extend(x)
print(x)

9 / 11

What will be the output after the following statements?
x = [5, 4, 3, 2, 1]
print(x.index(1))

10 / 11

What will be the output after the following statements?
x = [5, 4, 3, 2, 1]
print(x.pop(3))

11 / 11

What will be the output after the following statements?
x = [5, 4, 3, 2]
x.remove(2)
print(x)

Your score is

The average score is 0%

0%

Leave a Comment