AP CSP Unit 5 List Pseudocode Flashcard 2

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

16 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Match the index with the value: myNumbers[4] from myNumbers ⬅ [32, 64, 33, 0, 15, 26, 3]
Back
0
2.
FLASHCARD QUESTION
Front
What is the output of DISPLAY (myNumbers[LENGTH(myNumbers)]) given myNumbers ⬅ [32, 64, 33, 0, 15, 26, 3]?
Back
3
3.
FLASHCARD QUESTION
Front
What is the value of y after executing the following operations? list ⬅ [2, 4, 6, 8, 10] appendItem(list, 12) removeItem(list, 1); y ⬅ list[2] DISPLAY(y)
Back
6
4.
FLASHCARD QUESTION
Front
listOne ⬅ [2, 1, 0] listTwo ⬅ [1, 2, 0] a ⬅ listTwo[listOne[1]] b ⬅ 3 - a DISPLAY(b) //What is displayed?
Back
1
5.
FLASHCARD QUESTION
Front
What is displayed when executing DISPLAY( listOne[1] + listTwo[1] ) with listOne ⬅ [2, 1, 0] and listTwo ⬅ [1, 2, 0]?
Back
3
6.
FLASHCARD QUESTION
Front
What is displayed at the end of this code segment?
myStuff ⬅ [20, "hat", "pow", 5]
myStuff[1] ⬅"cat"
myStuff[2] ⬅ myStuff[1]
myStuff[3] ⬅ myStuff[4] + 6
DISPLAY( myStuff)
Back
cat, cat, 10, 5
7.
FLASHCARD QUESTION
Front
What will be displayed in the console when this program runs?
numList ⬅ [10, 20, 30]
x ⬅ LENGTH (numList)
DISPLAY ( numList[ x - 1] )
Back
20
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Budgeting

Flashcard
•
9th - 12th Grade
16 questions
commonly confused words

Flashcard
•
9th - 12th Grade
18 questions
Code.org CSP Unit 4 Review (23-24)

Flashcard
•
9th - 12th Grade
15 questions
Commas, Semicolons, & Colons

Flashcard
•
10th - 12th Grade
11 questions
CSP - Unit 6

Flashcard
•
9th - 12th Grade
10 questions
Pop Art Box

Flashcard
•
9th - 12th Grade
12 questions
Who Said It? Shakespeare or Tupac

Flashcard
•
KG - University
15 questions
Flag Etiquette

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade