Python lists

Python lists

7th - 9th Grade

18 Qs

quiz-placeholder

Similar activities

Python Lists

Python Lists

9th - 12th Grade

15 Qs

Programming Quiz for year 10

Programming Quiz for year 10

9th - 10th Grade

18 Qs

Weird Stuff

Weird Stuff

KG - University

15 Qs

Year 9 EoT assessment

Year 9 EoT assessment

9th Grade

20 Qs

HTML and CSS Code

HTML and CSS Code

8th - 9th Grade

15 Qs

Quizizz HTML and CSS

Quizizz HTML and CSS

8th - 9th Grade

15 Qs

[AP CSP] Programming: LISTS/ARRAYS (Python)

[AP CSP] Programming: LISTS/ARRAYS (Python)

9th - 12th Grade

16 Qs

Programming Techniques Survey

Programming Techniques Survey

8th - 12th Grade

19 Qs

Python lists

Python lists

Assessment

Quiz

Computers

7th - 9th Grade

Medium

Used 34+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a list?

["apples", "oranges", "bananas"]

"apples", "oranges", "bananas"

{"apples", "oranges", "bananas"}

("apples", "oranges", "bananas")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these assigns a list to a variable?

fruit = input(["apples", "oranges", "bananas"])

fruit = ["apples", "oranges", "bananas"]

fruit == ["apples", "oranges", "bananas"]

fruit["apples", "oranges", "bananas"]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To add an item to the end of a list we use

fruit.add("strawberries")

fruit.append("strawberries")

append(fruit("strawberries")

("strawberries").append[fruit]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To insert an item in the first position of a list we use

fruit.append("strawberries, 1")

fruit.insert("strawberries",0)

fruit.insert(1, "strawberries")

fruit.insert(0, "strawberries")

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will the code output?

"apples", "oranges"

"apples"

"there are apples"

"there are no apples"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An empty list can be declared as

fruitList = ""

fruitList = ["empty"]

fruitList == []

fruitList = []

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The output of this code will be

"orange"

3

True

0

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?