Python Lists Quiz

Python Lists Quiz

8th - 9th Grade

10 Qs

quiz-placeholder

Similar activities

Python Lists

Python Lists

7th - 11th Grade

9 Qs

LIST IN PYTHON

LIST IN PYTHON

8th - 10th Grade

15 Qs

Python Intro

Python Intro

8th - 9th Grade

10 Qs

Arrays and Lists

Arrays and Lists

6th - 12th Grade

10 Qs

cp1Gr9Adv

cp1Gr9Adv

9th Grade

10 Qs

Python lists

Python lists

8th Grade

10 Qs

AR2_Starter

AR2_Starter

9th Grade

10 Qs

Python Concepts

Python Concepts

9th Grade

10 Qs

Python Lists Quiz

Python Lists Quiz

Assessment

Quiz

Computers

8th - 9th Grade

Hard

Created by

Elsayed Seleim

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax to create an empty list in Python?

my_list = list()

my_list = {}

my_list = [None]

my_list = []

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of a list in Python?

list_name[0]

list_name.first()

list_name(1)

list_name.get(0)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the position of the name 'Paula' in the following list: names = ["Marco","Phillip","Paula","Tommy"]

0

1

2

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lists use _____ to access values

values

indexes

key values

keys

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider this list, what will be the output of the following: li=[1,2,3,4,3,2,1] print(li[3])

4

3

2

1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of a list in Python?

list_name[0]

list_name.first()

list_name(1)

list_name.get(0)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these collections defines a LIST?

{"numbers": "omar", "Ali": "Ahmed"}

["omar", "Ali": "Ahmed"]

("omar", "Ali": "Ahmed")

{"omar", "Ali": "Ahmed"}

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?