List Review Quiz

List Review Quiz

9th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Code.org: Lists, Loops, and Traversals

Code.org: Lists, Loops, and Traversals

9th - 12th Grade

9 Qs

CSA ArrayLists

CSA ArrayLists

10th Grade

11 Qs

Practice for 2nd Python Quiz Comp Prog B

Practice for 2nd Python Quiz Comp Prog B

9th - 12th Grade

12 Qs

Basic Data Structures - Intro to CS

Basic Data Structures - Intro to CS

12th Grade

15 Qs

Python II Lesson 2

Python II Lesson 2

5th - 9th Grade

12 Qs

Python Lists

Python Lists

9th - 12th Grade

17 Qs

Java ArrayLists

Java ArrayLists

10th Grade

11 Qs

Javascript Lists Lecture Knowledge Check

Javascript Lists Lecture Knowledge Check

9th - 12th Grade

11 Qs

List Review Quiz

List Review Quiz

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Monitha Davuluri

Used 3+ times

FREE Resource

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What operations cannot be performed on a list?

Update

Modify

Divide

Sort

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

How do you add an element to the end of a list named my_list?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What is the output of the following code?

3

6

12

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a "for" loop?

To define a function

To iterate over a sequence

To use the range function

To use conditional statement

5.

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")

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

You would like to add 7 to the end of this list:

nums = [9, 1, 6, 3, 5, 8, 2]

Select ALL commands that will accomplish this.

nums.append(7)

nums.extend([7])

nums.insert(7, 7)

nums.pop(7)

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How do you add the number 5 to the end of a list named `numbers`?

numbers.add(5)

numbers.append(5)

numbers.insert(5)

numbers.extend(5)

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?