Python List Quiz 1

Python List Quiz 1

9th - 12th Grade

9 Qs

quiz-placeholder

Similar activities

QUIZ #2 (MIL)

QUIZ #2 (MIL)

12th Grade

10 Qs

Sewing Equipment Uses

Sewing Equipment Uses

7th - 9th Grade

11 Qs

vehicle transmission and driveline units(a)

vehicle transmission and driveline units(a)

KG - 12th Grade

10 Qs

Ten Commandments

Ten Commandments

11th Grade

10 Qs

Iron Man

Iron Man

1st Grade - University

12 Qs

BCT_QuizBee_1st_round

BCT_QuizBee_1st_round

11th - 12th Grade

10 Qs

Review Quiz

Review Quiz

12th Grade

10 Qs

Alberta Natural Resources #2

Alberta Natural Resources #2

KG - University

12 Qs

Python List Quiz 1

Python List Quiz 1

Assessment

Quiz

Other

9th - 12th Grade

Hard

Created by

Talent Ltd

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following commands will create a list?

list1 = list()

list1 = []

list1 = list([1, 2, 3])

all of the mentioned

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output when we execute list("hello")?

['h', 'e', 'l', 'l', 'o']

['hello']

['llo']

['olleh']

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose listExample is ['h','e','l','l','o'], what is len(listExample)?

5

4

None

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [2445,133,12454,123], what is max(list1)?

2445

133

12454

123

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [3, 5, 25, 1, 3], what is min(list1)?

3

5

25

1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [1, 5, 9], what is sum(list1)?

1

9

15

Error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is correct syntax for slicing operation?

print(list1[2:])

print(list1[:2])

print(list1[:-2])

all of the mentioned

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [2, 33, 222, 14, 25], What is list1[-1]?

Error

None

25

2

9.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose list1 is [2, 33, 222, 14, 25], What is list1[:-1]?

[2, 33, 222, 14]

Error

25

[25, 14, 222, 33, 2]