Search Header Logo

Python lists

Authored by Enock Chinyerere

Computers

10th Grade

Used 3+ times

Python lists
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

What output will this code produce?

blue
green
red
error

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Is this the correct code for a list?

register = {"Sam", "Pheobe", Georgia", Richard"}

Yes

No

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the index of “grape” in the list

[“apple”, “grape”, “orange”, “watermelon”]?

0

1

2

3

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the output of program below?


bicycles = ['trek', 'cannondale', 'redline', 'specialized']

print(bicycles[-1])

trek

cannondale

redline

specialized

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Media Image

What letter will be printed on the screen after running this code:

e
x
t
Nothing prints

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

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

0
1
2
3

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Media Image

In the following code, "city" is an example of a what?

List
Loop
Variable
Array

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?