AP CSP List Review

AP CSP List Review

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What will be displayed after this code segment is run? Options: "opal", "garnet", "sapphire", "emerald"

Media Image

Back

"emerald"

2.

FLASHCARD QUESTION

Front

Match the index with the value: myNumbers[4] from myNumbers ⬅ [32, 64, 33, 0, 15, 26, 3]

Back

0

3.

FLASHCARD QUESTION

Front

//Consider this code:
list ⬅ [10, 12, 14, 16, 18]
APPEND(list, 3)
INSERT(list, 2, 20)
REMOVE(list, 1)

//What is printed to the console?
console.log(list);

Back

12, 20, 14, 16, 18, 3

4.

FLASHCARD QUESTION

Front

//Consider this code:
list ⬅ [10, 12, 14, 16, 18]
APPEND(list, 3)
INSERT(list, 2, 20);

//What is printed to the console?
DISPLAY (LENGTH(list))

Back

7

5.

FLASHCARD QUESTION

Front

What will be displayed after the code is run?
wordList⬅ ["snow", "pine", "candy cane", "lights"]
numList ⬅[ 5, 4, 3, 2, 1]
wordList [3] ⬅ numList[2]
DISPLAY (wordList)

Back

snow, pine, 4, lights

6.

FLASHCARD QUESTION

Front

What will be displayed after this code is run? Options: 4, 7, 9, 10, ab

Media Image

Back

10

7.

FLASHCARD QUESTION

Front

What does REMOVE (myNewList, 3) do? myNewList ⬅[dinosaur, pineapple, sunflower, rock]

Back

removes sunflower

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?