Python Lists

Python Lists

10th Grade

11 Qs

quiz-placeholder

Similar activities

2) Python Variables

2) Python Variables

8th - 11th Grade

16 Qs

Round 2 Debug-The-Code

Round 2 Debug-The-Code

University

15 Qs

MIT App Inventor Basics

MIT App Inventor Basics

9th - 12th Grade

10 Qs

Python Dictionaries

Python Dictionaries

University

10 Qs

CodeHS 5.4 & 5.5 ArrayList Stuff

CodeHS 5.4 & 5.5 ArrayList Stuff

9th - 12th Grade

10 Qs

C#

C#

11th Grade

10 Qs

Python Variables

Python Variables

7th - 12th Grade

10 Qs

AP CS practice 2

AP CS practice 2

11th Grade - University

12 Qs

Python Lists

Python Lists

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Irene Feng

Used 4+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which line of code is correct for creating a list of numbers?

num = ('10','29','37','109')

num = [10,29,37,109]

num = (10,29,37,109)

num = ['10 29 37 109']

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the index of the element with value 'Spain'?

['England','Brazil','Spain','France']

0

1

2

3

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which functions can I use to add an item(s) to a list?

variable.add()

variable.append()

variable.insert()

variable.extend()

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

How do i remove something from a list?

variable.pop()

del variable[index]

variable.remove()

variable.del()

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is valid python code for the list p?

p = [99, 9, 2, 33, 11]

p[5]

p[1:3]

p[2:]

p[2:0]

p[1:5]

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is lis after this code is run?

Error

None

[2,3,4,23]

[2,3,4,2,3]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What will be the output of the following code?

[1, 2, 3]

[1, 2, 3, 4]

[4, 1, 2, 3]

Error

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?