Code.org CSP Unit 5 Lists

Code.org CSP Unit 5 Lists

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

18 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

Match the index with the value: var myNumbers = [32, 64, 33, 0, 15, 26, 3]. What is myNumbers[4]?

Back

15

3.

FLASHCARD QUESTION

Front

//Consider this code:
var list = [10, 12, 14, 16, 18];
appendItem(list, 20);
removeItem(list, 0);
//What is printed to the console?
console.log(list[list.length - 1]);

Back

20

4.

FLASHCARD QUESTION

Front

//Consider this code:
var list = [10, 12, 14, 16, 18];
appendItem(list, 3);
//What is printed to the console?
console.log(list[list.length-1]);

Back

3

5.

FLASHCARD QUESTION

Front

//Consider this code.
var listOne = [2, 1, 0];
var listTwo = [1, 2, 0];
//What is printed to the console?
console.log( listOne[1] + listTwo[1] );

Back

3

6.

FLASHCARD QUESTION

Front

An array is;

Back

Lists of data

7.

FLASHCARD QUESTION

Front

array = [1,2,3,4,5]
What is the length of this array?

Back

5

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?