Python Lists

Python Lists

7th - 11th Grade

9 Qs

quiz-placeholder

Similar activities

DigiTech Unit 1 Data 1

DigiTech Unit 1 Data 1

7th - 12th Grade

10 Qs

Linux

Linux

7th Grade

8 Qs

Excel Overview

Excel Overview

9th - 12th Grade

10 Qs

LA5.C5: Branching and Subroutines

LA5.C5: Branching and Subroutines

9th Grade - University

14 Qs

ICT Grade 8

ICT Grade 8

8th Grade

10 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

Kuis Refleksi 2

Kuis Refleksi 2

9th - 12th Grade

10 Qs

Python Lists

Python Lists

Assessment

Quiz

Computers

7th - 11th Grade

Practice Problem

Medium

Created by

M Duce

Used 162+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these is a list?

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

fruit = "apples", "oranges", "bananas"

fruit = {"apples", "oranges", "bananas"}

fruit = ("apples", "oranges", "bananas")

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If you want to create an empty list called colours, which of the following pieces of code is correct?

colours = { }

colours = ( )

colours = [ ]

colors = [ ]

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1

0

a

A

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

0
1
2
3

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the position of the name "Robert" in the following list:

0

1

2

3

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What output will this code produce?

['France', 'Wales', 'England']

France

France Wales England

France

France, Wales, England

Wales

['France', 'Wales', 'England']

Wales

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a list called "players", if you wanted to add a player called "Bob" to the list, which of the following examples of code would be correct?

players.add("Bob")
player.append("Bob")
players.append("Bob")
players.addend("Bob")

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?