Python Lists

Python Lists

9th - 12th Grade

17 Qs

quiz-placeholder

Similar activities

214 Vocabulary & Review

214 Vocabulary & Review

5th SW ZLGA CS8

5th SW ZLGA CS8

Python Lists

Python Lists

05/25/2021 - CS

05/25/2021 - CS

Python Lists

Python Lists

Lists in Python

Lists in Python

Python Lists

Python Lists

Python List Operations

Python List Operations

Python Lists

Python Lists

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Louise Lockwood

Used 25+ times

FREE Resource

AI

Enhance your content in a minute

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

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a data structure?

A software application

A programming language

A type of computer

A way of organising data

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is another name for a list in some programming languages?

Boolean

Array

String

Integer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a list, at which position does the indexing start?

0

1

10

-1

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you print the second element of a list named 'name'?

print(name[2])

print(name[0])

print(name[1])

print(name[-1])

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you add an element to a list named 'name'?

name.append('zoe')

name.update('zoe')

name.add('zoe')

name.insert('zoe')

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you remove an element from a list named 'name'?

name.remove('zoe')

name.delete('zoe')

name.pop('zoe')

name.erase('zoe')

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What output will this code produce?

blue
green
red
error

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?