

Code.org CSP Unit 5 Lists
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

10 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which vocabulary word is: a common method for referencing an element in a list using a number to indicate its position
Back
index
2.
FLASHCARD QUESTION
Front
Which vocabulary word is: a collection of elements
Back
list
3.
FLASHCARD QUESTION
Front
Which vocabulary word is: an individual value in a list that is assigned a unique index
Back
element
4.
FLASHCARD QUESTION
Front
Match the index with the value: var myNumbers = [32, 64, 33, 0, 15, 26, 3]. What is myNumbers[4]?
Back
15
5.
FLASHCARD QUESTION
Front
//Consider this code:
var list = [10, 12, 14, 16, 18];
appendItem(list, 3);
insertItem(list, 2, 20);
removeItem(list, 0);
//What is printed to the console?
console.log(list);
Back
12, 20, 14, 16, 18, 3
6.
FLASHCARD QUESTION
Front
//Consider this code:
var list = [10, 12, 14, 16, 18];
appendItem(list, 3);
insertItem(list, 2, 20);
removeItem(list, 0);
//What is printed to the console?
console.log(list[0]);
Back
12
7.
FLASHCARD QUESTION
Front
//Consider this code:
var list = [10, 12, 14, 16, 18];
appendItem(list, 3);
insertItem(list, 2, 20);
removeItem(list, 0);
//What is printed to the console?
console.log(list.length);
Back
6
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?