Code.org CSP Unit 5 Lists

Code.org CSP Unit 5 Lists

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

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

Create a free account and access millions of resources

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?