Search Header Logo

Python Basics - List

Authored by Edmund Lee

Computers

6th - 8th Grade

Used 5+ times

Python Basics - List
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a list in Python?

A string
A single number
A collection of items
A math formula

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which one is a list?

"apple"
["apple", "banana", "cherry"]
("apple", "banana")
{apple, banana}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

True or False: Lists can hold different data types.

True
False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of the first element in a list?

1
0
-1
It depends

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does fruits = ["apple", "banana"]; print(fruits[1]) output?

apple
banana
fruits
Error

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does fruits[0] = "grape" do?

Adds "grape" to the list
Removes "apple"
Replaces "apple" with "grape"
Nothing

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method adds a new item to the end of a list?

.add()
.append()
.insert()
.push()

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?