Search Header Logo

AP CSP 3.10 (Lists)

Authored by Herman Galioulline

Computers

9th - 12th Grade

Used 193+ times

AP CSP 3.10 (Lists)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

About

This quiz focuses on list manipulation and iteration in computer programming, specifically targeting Advanced Placement Computer Science Principles (AP CSP) concepts. Designed for high school students in grades 11-12, the assessment evaluates students' understanding of fundamental programming constructs including list traversal, element access, conditional statements, and loop structures. Students need a solid grasp of how lists store and organize data, how to access individual elements using indices, and how different types of loops (FOR EACH, REPEAT, and conditional loops) interact with list data. The problems require students to trace through code execution step-by-step, predict output values, and select appropriate programming constructs to accomplish specific tasks. Mastery of these concepts demands understanding variable assignment, counter manipulation, conditional logic, and the ability to mentally execute algorithms to determine their results. Created by Herman Galioulline, a Computers teacher in Switzerland who teaches grades 9-12. This quiz serves as an excellent formative assessment tool for AP Computer Science Principles Unit 3.10, allowing teachers to gauge student comprehension of list operations before advancing to more complex data structure topics. The quiz works particularly well as a warm-up activity to activate prior knowledge about lists, as targeted practice following initial instruction on iteration methods, or as homework to reinforce classroom learning about algorithm analysis. Teachers can use individual question results to identify specific areas where students struggle, such as distinguishing between different loop types or predicting the behavior of nested conditional statements. The assessment aligns with College Board standards for AP Computer Science Principles, particularly those addressing algorithmic thinking, programming constructs, and data representation through lists and arrays.

    Content View

    Student View

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

What is displayed as a result of executing the code segment?

1 3 5

5 3 1

100 300 500

500 300 100

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

3

4

9

12

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

count1 = 2, count2 = 2

count1 = 2, count2 = 3

count1 = 3, count2 = 2

count1 = 5, count2 = 0

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Shoppers at a mall were asked whether they preferred wearing gloves or mittens in cold weather. Shoppers’ preferences were stored in the list voteList as strings, with the string "Gloves" representing a preference for gloves and the string "Mittens" representing a preference for mittens.


The following code segment is intended to traverse the list and display the number of shoppers who chose gloves and the number of shoppers who chose mittens.


Which of the following should replace <MISSING CODE> so that the code segment works as intended?

IF(vote ≤ LENGTH(voteList))

FOR EACH vote IN voteList

REPEAT LENGTH(voteList) TIMES

REPEAT UNTIL(vote > LENGTH(voteList))

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

APPEND(evenList, i)

i ← i + 2

i ← i + 2

APPEND(evenList, i)

APPEND(evenList, 2 * i)

i ← i + 1

i ← i + 1

APPEND(evenList, 2 * i)

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?