Lists in Python

Lists in Python

9th Grade

10 Qs

quiz-placeholder

Similar activities

Quis Grade 5

Quis Grade 5

9th - 12th Grade

15 Qs

การออกแบบและเทคโนโลยี

การออกแบบและเทคโนโลยี

7th - 9th Grade

10 Qs

Tin 8/1

Tin 8/1

KG - University

10 Qs

Tin học 9-Bài 15

Tin học 9-Bài 15

9th Grade

10 Qs

ZOOM QUIZ

ZOOM QUIZ

1st - 12th Grade

10 Qs

Diagnostico tecnología 1°

Diagnostico tecnología 1°

1st - 12th Grade

11 Qs

Algoritmos

Algoritmos

8th - 9th Grade

12 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 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

Create a free account and access millions of resources

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?

Discover more resources for Computers