9.6.1 Extending Data Structures Quiz

9.6.1 Extending Data Structures Quiz

Assessment

Quiz

Mathematics

9th - 12th Grade

Practice Problem

Medium

CCSS
HSF.IF.A.1, HSF.IF.A.2, HSF.BF.A.1

+1

Standards-aligned

Created by

Tommy Rankin

Used 361+ times

FREE Resource

About this resource

This quiz focuses on advanced Python programming concepts, specifically data structures and their manipulation techniques. The content is appropriate for high school students in grades 9-12 who are learning computer science or programming as part of their mathematics curriculum. Students need a solid understanding of Python syntax, variable assignment, and the fundamental differences between various data structures including lists, tuples, dictionaries, and 2D arrays. The problems assess critical programming skills such as packing and unpacking variables, list comprehensions, dictionary key-value relationships, list slicing operations, and accessing elements in nested data structures. Students must demonstrate proficiency in predicting code output, understanding how concatenation differs from appending in list operations, and recognizing when different data structure types are most appropriate for specific programming tasks. Created by Tommy Rankin, a Mathematics teacher in US who teaches grade 9-12. This comprehensive assessment serves multiple instructional purposes in a programming or computer science classroom, working effectively as a formative assessment tool to gauge student understanding before moving to more complex programming projects. Teachers can utilize this quiz as a warm-up activity to review previously taught concepts, assign it as homework to reinforce classroom learning, or implement it as a review session before unit exams. The quiz structure makes it particularly valuable for identifying specific areas where students need additional support, whether in basic syntax understanding or more advanced concepts like list comprehensions and nested data structure navigation. This assessment aligns with computer science education standards that emphasize algorithmic thinking, data representation, and programming fundamentals essential for building computational problem-solving skills.

See more

Student preview

quiz-placeholder

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

coffee = "kona"

tea = "mango"

smoothie = "raspberry"

coffee = "raspberry"

tea = "mango"

smoothie = "kona"

coffee = "kona"

tea = "kona"

smoothie = "kona"

coffee = ["kona", "mango", "raspberry"]

tea = ["kona", "mango", "raspberry"]

smoothie = ["kona", "mango", "raspberry"]

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

I only

II only

Both I and II

Neither I nor II

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does “packing” refer to in Python?

Creating a list

Initializing variables using values from a list

Storing multiple variables’ values by putting them in a collection, like a list or tuple

Cramming as many commands as possible onto a single line

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

red = "RED"

blue = "BLUE"

green = "GREEN"

red = "BLUE"

blue = "GREEN"

green = "RED"

red = ["BLUE", "GREEN", "RED"]

blue = ["BLUE", "GREEN", "RED"]

green = ["BLUE", "GREEN", "RED"]

red = "BLUE"

blue = "BLUE"

green = "BLUE"

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

board = [1, 2, 3] + [4, 5, 6] + [7, 8, 9]

board = [1, 2, 3]

board.append([4, 5, 6])

board.append([7, 8, 9])

board = [1, 2, 3, 4, 5, 6, 7, 8, 9]

board = []

board.append([1, 2, 3])

board.append([4, 5, 6])

board.append([7, 8, 9])

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

print(my_list[1])

print(my_list[1:2])

print(my_list[1][2])

print(my_list[2][3])

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does “unpacking” refer to in Python?

Creating a list

Initializing multiple variables at a time using a collection of values

Storing multiple variables’ values by putting them in a collection, like a list or tuple

Cramming as many commands as possible onto a single line

Create a free account and access millions of resources

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?