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

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

9 questions
Show all answers
1.
FLASHCARD QUESTION
Front
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
Back
10
7.
FLASHCARD QUESTION
Front
What does REMOVE (myNewList, 3) do? myNewList ⬅[dinosaur, pineapple, sunflower, rock]
Back
removes sunflower
8.
FLASHCARD QUESTION
Front
What does the list look like after this code is run? myList⬅ ["pink", "blue", "gold", "white", "green"] APPEND(myList, "purple")
Back
["pink", "blue", "gold", "white", "green", "purple"]
9.
FLASHCARD QUESTION
Front
Which of the following lines will result in the wordList ⬅ ["air", "rock", "air"]? Options: wordList[1] = wordList[3], wordList[2] = wordList[1], INSERT(wordList, 0, "air"), REMOVE(wordList,1)
Back
wordList[1] = wordList[3]
Similar Resources on Quizizz
8 questions
AP CSP 12-2 U4L1 Variable

Flashcard
•
9th - 12th Grade
2 questions
Python -- Index/String

Flashcard
•
9th - 12th Grade
10 questions
CSP Unit 3 Assessment

Flashcard
•
9th - 12th Grade
10 questions
Scratch Pop Flashcard Chapter1/Article/Videos/Vocab

Flashcard
•
9th - 12th Grade
5 questions
Review Lists in Python (before Lab 8)

Flashcard
•
9th - 12th Grade
9 questions
Unit 5 -- Lists, Loops, Traversals

Flashcard
•
9th - 12th Grade
8 questions
Code.org Unit 3 Review

Flashcard
•
9th - 12th Grade
10 questions
Python Data Structures

Flashcard
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University