wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

List MCQ

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

What will tickets[1:4] return?

a)

[100, 105, 110, 115]

b)

[105, 110, 115]

c)

[110, 115, 120]

d)

[105, 110]

2.

What does tickets[::-1] do?

a)

Sort the list

b)

Reverse the list

c)

Rotate the list

d)

Duplicate the list

3.

What is the output of sum(tickets)?

a)

550

b)

560

c)

540

d)

600

4.

What does min(tickets) return?

a)

120

b)

100

c)

105

d)

115

5.

What is the value of max(tickets)?

a)

115

b)

120

c)

100

6.

After tickets.append(125), what is the last element?

a)

120

b)

115

c)

100

d)

125

7.

What is the effect of tickets.extend([130, 135])?

a)

Adds two new lists

b)

Replaces old list

c)

Adds elements 130 and 135 to the end

d)

Removes last two values

8.

What will tickets.remove(105) do?

a)

Remove value at index 105

b)

Remove the first occurrence of 105

c)

Remove the last element

d)

Remove all values smaller than 105

9.

What does tickets.pop() do?

a)

Removes first element

b)

Removes and returns last element

c)

Deletes entire list

d)

Removes element 120

10.

10. What will tickets[2] return?

a)

The value at index 2 of the tickets array

b)

The length of the tickets array

c)

An error message

d)

The first element of the tickets array

11.

What is the result of tickets[:3]?

a)

A. [100, 105, 110]

b)

B. [100, 105]

c)

C. [110, 115, 120]

d)

D. [115, 120]

12.

If tickets.append(200) is used, list length becomes?

a)

4

b)

5

c)

6

d)

7

13.

Which operation removes by index?

a)

remove()

b)

append()

c)

extend()

d)

pop()

14.

What is returned by tickets.pop(1)?

a)

105

b)

100

c)

115

d)

120

15.

Which method adds multiple values at once?

a)

append()

b)

remove()

c)

extend()

d)

pop()

16.

What will tickets[-1] return?

a)

100

b)

115

c)

120

d)

Index error

17.

What happens if tickets.remove(500) is executed?

a)

500 is removed

b)

List becomes empty

c)

No change

d)

Error occurs

18.

Which of the following reverses a list?

a)

tickets[::-1]

b)

tickets.reverse()

c)

Both A and B

d)

None

19.

What is len(tickets)?

a)

Number of list items

b)

Sum of list items

c)

Last index

20.

Which option is correct?

a)

Minimum value

b)

Average value

c)

Median value

d)

Maximum value

21.

To add 300 at index 1, which is correct?

a)

tickets.add(1, 300)

b)

tickets.insert(1, 300)

c)

tickets.append(1, 300)

d)

tickets.push(300)