python - list - 1

python - list - 1

6th - 8th Grade

32 Qs

quiz-placeholder

Similar activities

PS Unit 4 Iteration Quiz Review

PS Unit 4 Iteration Quiz Review

1st Grade - Professional Development

30 Qs

Mastering the Keyboard: Home Row and Finger Placement

Mastering the Keyboard: Home Row and Finger Placement

6th Grade

30 Qs

Adv Word Review - Agenda, Minutes & Reports

Adv Word Review - Agenda, Minutes & Reports

7th - 8th Grade

30 Qs

PAS II KELAS 6 TIK

PAS II KELAS 6 TIK

6th Grade

30 Qs

CTE Numeric Keypad

CTE Numeric Keypad

6th - 8th Grade

31 Qs

Greetings/How are you?

Greetings/How are you?

KG - Professional Development

28 Qs

Python  Fundamentals- 02

Python Fundamentals- 02

5th Grade - University

32 Qs

Python Basics

Python Basics

6th - 8th Grade

35 Qs

python - list - 1

python - list - 1

Assessment

Quiz

Other

6th - 8th Grade

Easy

Created by

IQuotient 369

Used 1+ times

FREE Resource

32 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

aList = [10, 20, 30, 40, 50, 60, 70, 80]

print(aList[2:5])

print(aList[:4])

print(aList[3:])

[30, 40, 50]

[10, 20, 30, 40]

[40, 50, 60, 70, 80]

[ 40, 50]

[20, 30, 40]

[50, 60, 70, 80]

[30, 40]

[10, 20, 30]

[40, 50, 60, 70,]

Error

2.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

sampleList = [10, 20, 30, 40, 50]
print(sampleList[-2])
print(sampleList[-4:-1])

50

[20, 30, 50]

40

[20, 30, 40]

10

[20, 30, 10]

error

3.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

my_list = [1, 2, 3, 4, 5]

print(my_list[2])

3

4

5

1

4.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

my_list = ['apple', 'banana', 'cherry']

item = my_list[-1]

print(item)

cherry

error

banana

apple

5.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

my_list = [10, 20, 30, 40, 50]

print(my_list[:3])

[10, 20, 30]

[20, 30]

[10, 20]

[10, 30]

6.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

my_list = [1, 2, 3, 4, 5]

my_list[2] = 10

print(my_list)

[1, 2, 10, 4, 5]

[1, 2, 4, 5]

[1, 10, 4, 5]

[1, 2, 10]

7.

MULTIPLE CHOICE QUESTION

15 mins • 1 pt

my_list = ['a', 'b', 'c', 'd', 'e']

print(my_list[-3:])

['c', 'd', 'e']

['a', 'b']

['b', 'c', 'd']

['c', 'd']

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?