Module 08 - Lists

Module 08 - Lists

10th Grade

10 Qs

quiz-placeholder

Similar activities

Unit 5 Lists, Loops, & Traversals

Unit 5 Lists, Loops, & Traversals

10th - 12th Grade

12 Qs

KS4 Programming Techniques (1)

KS4 Programming Techniques (1)

8th - 10th Grade

10 Qs

GCSE Computing: Lists and Arrays

GCSE Computing: Lists and Arrays

10th - 11th Grade

15 Qs

Unit 6-Lesson 18: Assessment Day

Unit 6-Lesson 18: Assessment Day

9th - 12th Grade

15 Qs

Жанар214

Жанар214

9th Grade - University

15 Qs

Arrays and Lists

Arrays and Lists

6th - 12th Grade

10 Qs

10 min test 18

10 min test 18

9th - 12th Grade

15 Qs

9.1.5 - Starter Quiz

9.1.5 - Starter Quiz

7th - 11th Grade

14 Qs

Module 08 - Lists

Module 08 - Lists

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Casey Devet

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following correctly creates a list?

names = "John", "Paul", "George", "Ringo"

names = {"John", "Paul", "George", "Ringo"}

names = ["John", "Paul", "George", "Ringo"]

names = ["John" "Paul" "George" "Ringo"]

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

True or False:


A list can only store numbers or strings.

True

False

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

True or False:


The first element in a list has index 1.

True

False

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which command will print "Davey"?

print(students)

print(students[3])

print(students[4])

print(students[5])

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is the index of the last element of this list?

0

4

5

6

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Which command will replace "Betty" with "Bobby" in the list?

students["Betty"] = "Bobby"

students[3] = "Betty"

students[2] = "Bobby"

students[1] = "Bobby"

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What will be printed if name has the value "Joe"?

ABC

XYZ

ABC

XYZ

Nothing

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?