Search Header Logo

Python Lists

Authored by Louise Lockwood

Computers

9th - 12th Grade

Used 25+ times

Python Lists
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

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?