Python Basics - List

Python Basics - List

6th - 8th Grade

20 Qs

quiz-placeholder

Similar activities

Year 7 Microbit

Year 7 Microbit

7th - 8th Grade

20 Qs

Python list, if

Python list, if

6th - 12th Grade

20 Qs

Programming in Python, Lists - 9RH

Programming in Python, Lists - 9RH

8th - 10th Grade

17 Qs

Python Basics Recap

Python Basics Recap

8th - 11th Grade

23 Qs

loops in python

loops in python

6th - 8th Grade

15 Qs

Python debug & calculations

Python debug & calculations

8th - 9th Grade

15 Qs

Python First Steps Homework Quiz

Python First Steps Homework Quiz

7th - 9th Grade

20 Qs

Python grade 8

Python grade 8

8th Grade

20 Qs

Python Basics - List

Python Basics - List

Assessment

Quiz

Computers

6th - 8th Grade

Easy

Created by

Edmund Lee

Used 1+ times

FREE Resource

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()

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?