Python - Lists and Elements

Python - Lists and Elements

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 4

BÀI KIỂM TRA GIỮA KÌ 2 LỚP 4

10th Grade

10 Qs

UNIT 1.8 ELCE

UNIT 1.8 ELCE

10th Grade

14 Qs

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

Câu hỏi trắc nghiệm Tin Học 10 - Bài 10

10th Grade

10 Qs

Основы алгебры логики

Основы алгебры логики

10th Grade

12 Qs

PTS DISTRIBUSI LOGISTIK

PTS DISTRIBUSI LOGISTIK

11th Grade

10 Qs

Excel - Taller Office 365

Excel - Taller Office 365

9th Grade

12 Qs

NHTW Programming

NHTW Programming

9th Grade

10 Qs

Kuiz ICT

Kuiz ICT

KG - 12th Grade

10 Qs

Python - Lists and Elements

Python - Lists and Elements

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

Karen Koelm

Used 11+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the correct command to define a list?

list = [ , , , ]

list == [ , , , ]

list = ( , , , )

list = , , , ,

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list = [5, 3, 7, 3, 8, 9]

Which element is the list is represented by list[4]?

7

3

8

9

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

list = [5, 3, 7, 3, 8, 9]

Which element is the list is represented by list[-1]?

5

3

8

9

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output for this code?

num = [ 1, 2, 5 ]

val = [ 5, 6, 7 ]

total = num + val

print(total)

[1, 2, 5, 5, 6, 7]

[1, 2, 5, 6, 7]

[5, 6, 7, 1, 2, 5]

[1, 5, 2, 6, 5, 7]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

pic = ["movie", "jpeg", "selfie", "meme"]

What is generated by the command

print( pic[ :3] ) ?

["movie", "jpeg"]

["movie", "jpeg", "selfie"]

["movie", "jpeg", "selfie", "meme"]

["meme"]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output for this code?

red = [122, 123, 128, 129]

red[2] = 140

print(red)

[140, 140]

[122, 123, 129, 140]

[122, 140, 128, 129]

[122, 123, 140, 129]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the output for this code?

food = ["bread", "cake", "donuts"]

print(food.append("biscuit"))

['bread', 'cake', 'biscuit']

['bread', 'cake', 'donuts', 'biscuit']

['biscuit']

['bread', 'biscuit', 'donuts']

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?