Lists Review

Lists Review

Assessment

Flashcard

Computers

10th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is a valid list in JavaScript? <1, 2, 3>, {1, 2, 3}, (1, 2, 3), [1, 2, 3]

Back

[1, 2, 3]

2.

FLASHCARD QUESTION

Front

Which one creates a list of three strings? Options: ["apple", "banana", "cherry"], ("apple", "banana", "cherry"), {"apple", "banana", "cherry"}, "apple", "banana", "cherry"

Back

["apple", "banana", "cherry"]

3.

FLASHCARD QUESTION

Front

Given:
var animals = ["cat", "dog", "bird", "bear"];
What does animals[0] return?

Back

cat

4.

FLASHCARD QUESTION

Front

Given:
var food = ["pizza", "tacos"];
appendItem(food, "salad");
What is the list now?

Back

["pizza", "tacos", "salad"]

5.

FLASHCARD QUESTION

Front

Given: var nums = [10, 20, 30, 40]; removeItem(nums, 1); What is the list now?

Back

[10, 30, 40]

6.

FLASHCARD QUESTION

Front

Given: var nums = [10, 20, 30, 40]; removeItem(nums, 1); What is now at index 1?

Back

30

7.

FLASHCARD QUESTION

Front

Given:
var letters = ["a", "b", "d"];
insertItem(letters, 2, "c");
What is the list now?

Back

The list is now ["a", "b", "c", "d"].

Access all questions and much more by creating a free account

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?