KA JS Arrays

KA JS Arrays

KG - University

6 Qs

quiz-placeholder

Similar activities

Ôn lại kiến thức  Lớp 3 T13

Ôn lại kiến thức Lớp 3 T13

1st - 10th Grade

10 Qs

XI_осн_веб_кон

XI_осн_веб_кон

9th - 12th Grade

10 Qs

Què en saps de GSuite?

Què en saps de GSuite?

University - Professional Development

10 Qs

Kuiz TMK Tahun 5

Kuiz TMK Tahun 5

5th Grade

10 Qs

=Excel+[ling]

=Excel+[ling]

1st - 3rd Grade

11 Qs

Hàm

Hàm

Professional Development

10 Qs

Bài tập lớp 5 - 7/4/2020

Bài tập lớp 5 - 7/4/2020

5th Grade

10 Qs

Internet i mrežni preglednik, pretraživanje interneta

Internet i mrežni preglednik, pretraživanje interneta

5th Grade

11 Qs

KA JS Arrays

KA JS Arrays

Assessment

Quiz

Computers

KG - University

Practice Problem

Hard

Used 156+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these lines of code show how to validly store an array with 3 items?

var nums = [42, 3, 7];
var nums = 3, 42, 7;
var nums = [3];
var nums = (3, 42, 7);

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How would you access the second element in an array?

nums.2
nums[2]
nums_1
nums[1]

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How would you change the first element in an array?

nums[1] = "New!";
nums = "New!";
var nums[1] = "New!";
nums[0] = "New!";

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What property tells you how many items are in an array?

length
count
items
num

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method can you use to add an element to an array in JavaScript?

pop()
push()
append()
insert()

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of these for loops would iterate through each item of the nums array (no more, no less)?

for (var i = 0; i < nums; i++) { }
for (var i = 1; i < nums.length; i++) { }
for (var i = 1; i < nums; i++) { }
for (var i = 0; i < nums.length; i++) { }