Python - List

Python - List

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

TIN 10 - LẦN 1 - STVB 1

TIN 10 - LẦN 1 - STVB 1

10th Grade

10 Qs

Word basics

Word basics

8th - 12th Grade

10 Qs

Symbols & Num. Keypad

Symbols & Num. Keypad

1st - 12th Grade

10 Qs

Microsoft Publisher

Microsoft Publisher

7th - 10th Grade

10 Qs

Bermain Gambar

Bermain Gambar

1st Grade - Professional Development

15 Qs

Creating a document

Creating a document

1st Grade - Professional Development

9 Qs

TPAV

TPAV

12th Grade - University

10 Qs

Power point Test

Power point Test

10th - 12th Grade

10 Qs

Python - List

Python - List

Assessment

Quiz

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Ming Lai

Used 14+ 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

45 sec • 1 pt

thisnut = ["almond", "walnut", "pecan", "peanut", "hazelnut", "pistachios", "butternut"]

print(thisnut[1:4])

['walnut', 'pecan', 'peanut']

['almond', 'walnut', 'pecan']

['walnut', 'pecan', 'peanut', 'hazelnut']

['almond', 'walnut', 'pecan', 'peanut']

2.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Thislist = [“Python”, “Arduino”, “Javascript”]

Print(thislist[2])

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Thislist = [“Arduino”, “Python”, “Javascript”]

Print(thislist[-2])

Arduino

Python

Javascript

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

thisnut = ["almond", "walnut", "pecan", "peanut", "hazelnut", "pistachios", "butternut"]

print(thisnut[:3])

['almond', 'walnut', 'pecan']

['walnut', 'pecan', 'peanut']

['almond', 'peanut', 'hazelnut']

['hazelnut', 'pistachios', 'butternut']

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

thisAnimal = ["Cow", "Horse", "Rabbit", "Elephant", "Lion", "Tiger", "Zebra"]

print(thisAnimal[-3:-1])

['Elephant', 'Lion']

['Lion', 'Tiger']

['Lion', 'Tiger', 'Zebra']

['Rabbit', 'Horse', 'Cow']

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does this code do?

thiscolor = ["red", "green", "blue"]
thiscolor[1] = "black"
print(thiscolor)

Replace 'red' with 'black'

Replace 'green' with 'black'

Replace 'blue' with 'black'

Answer explanation

Change the second item

7.

MULTIPLE SELECT QUESTION

1 min • 1 pt

Lists are used to store multiple items in a single variable.

List items are ......

Which of the following are true about list (more than one answer is correct)

ordered

changeable

Allow duplicate numbers

indexed

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?