Python Lists Quiz

Python Lists Quiz

6th Grade

15 Qs

quiz-placeholder

Similar activities

Python: Escape Sequences, Input(), Variables, Math and Numbers

Python: Escape Sequences, Input(), Variables, Math and Numbers

6th Grade

20 Qs

Tuan 3 - Python

Tuan 3 - Python

KG - Professional Development

10 Qs

python L2

python L2

6th - 8th Grade

10 Qs

Variables & Lists

Variables & Lists

6th Grade

13 Qs

Python_Start

Python_Start

5th - 12th Grade

10 Qs

Python

Python

1st - 10th Grade

10 Qs

Python Final Assessment

Python Final Assessment

4th - 12th Grade

10 Qs

KODEKIDDO HACK #MLH3

KODEKIDDO HACK #MLH3

4th Grade - University

10 Qs

Python Lists Quiz

Python Lists Quiz

Assessment

Quiz

Computers

6th Grade

Easy

Created by

Ayaka Ikawa

Used 1+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of the following code: mylist = ['apple', 'banana', 'cherry']; print(mylist[1])?

cherry

banana

apple

orange

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a correct way to create a list in Python?

mylist = 'apple', 'banana', 'cherry'

mylist = ['apple', 'banana', 'cherry']

mylist = ('apple', 'banana', 'cherry')

mylist = {'apple', 'banana', 'cherry'}

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of a list named 'fruits'?

fruits[first]

fruits[-1]

fruits[1]

fruits[0]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the index of 'cherry' in the list ['apple', 'banana', 'cherry']?

1

3

0

2

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to add an item to the end of a list?

add()

append()

insert()

extend()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you remove the item 'banana' from the list ['apple', 'banana', 'cherry']?

remove('banana')

pop('banana')

delete('banana')

discard('banana')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of len(['apple', 'banana', 'cherry'])?

2

3

4

5

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?