Lists in Python

Lists in Python

9th Grade

10 Qs

quiz-placeholder

Similar activities

korzyści wynikające z transformacji cyfrowej

korzyści wynikające z transformacji cyfrowej

9th Grade

12 Qs

Mecatrónica IOQ 3ro 2

Mecatrónica IOQ 3ro 2

8th - 10th Grade

10 Qs

Python Testing

Python Testing

9th - 12th Grade

10 Qs

MS Word Review

MS Word Review

9th Grade - Professional Development

10 Qs

Scratch Application: Look and Pen Blocks

Scratch Application: Look and Pen Blocks

9th Grade

10 Qs

U0FV2 Scientific Method

U0FV2 Scientific Method

9th Grade

12 Qs

cmd and terminal

cmd and terminal

7th Grade - University

15 Qs

Lists in Python

Lists in Python

Assessment

Quiz

Computers

9th Grade

Practice Problem

Medium

Created by

Aakifah Rahman

Used 21+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is the best description of a list in Python?

A list is a collection of data that has an order

A list is a lot of variables

A list is used for shopping

A list is a collection of data that cannot hold duplicated data

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these pieces of code would return the name "Harry" from the following list?

nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"]

nameList()

nameList[1]

NameList(4)

nameList["4"]

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do i remove something from a list?

variable.append()

variable.delete()

variable.remove()

variable=(new variable)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

An empty list can be declared as

fruitList = ""

fruitList = ["empty"]

fruitList == []

fruitList = []

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Each item in a list has an "address" . The first address in a Python list is what?

1

0

a

A

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is the correct way to add the number 4 to mylist?

mylist + 4

mylist.append(4)

mylist.append([4])

4.append(mylist)

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is used to separate elements in a list?

Bracket

Comma

Full Stop

Space

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?