Python - List

Python - List

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

Evaluasi

Evaluasi

10th Grade

10 Qs

CĐ 10: ĐỊNH DẠNG BÀI TRÌNH CHIẾU

CĐ 10: ĐỊNH DẠNG BÀI TRÌNH CHIẾU

9th Grade

11 Qs

ÔN TINHK1, K4

ÔN TINHK1, K4

10th Grade

14 Qs

kểm tra 15 phút bài 7

kểm tra 15 phút bài 7

12th Grade

10 Qs

Table in PowerPoint

Table in PowerPoint

9th Grade

10 Qs

Wee Word Intro

Wee Word Intro

7th - 12th Grade

12 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

Create a free account and access millions of resources

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?