JavaScript Arrays

JavaScript Arrays

10th - 12th Grade

30 Qs

quiz-placeholder

Similar activities

Unit 5 Summative C.S.

Unit 5 Summative C.S.

9th - 12th Grade

25 Qs

Pemrograman Perangkat Bergerak

Pemrograman Perangkat Bergerak

11th Grade

30 Qs

[Week 10] The JavaScript Odyssey: History and Essentials

[Week 10] The JavaScript Odyssey: History and Essentials

10th Grade

25 Qs

AP CSP Unit 7: Parameters, Returns, and Libraries

AP CSP Unit 7: Parameters, Returns, and Libraries

9th - 12th Grade

26 Qs

Introduction to Python

Introduction to Python

KG - University

25 Qs

AP CSP VCFL

AP CSP VCFL

9th - 12th Grade

25 Qs

Babylon and Javascript Review

Babylon and Javascript Review

9th - 12th Grade

25 Qs

Conosci Javascript?

Conosci Javascript?

9th - 12th Grade

32 Qs

JavaScript Arrays

JavaScript Arrays

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Bryan Campbell

Used 39+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is proper syntax for declaring a array in JavaScript?

var arrayName =[ ];

var arrayName[ ] ={ };

array arrayName ={ };

obj var arrayName =[ ];

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which definition below best describe an array?

An array is a function identifier that can hold more than one parameter.

An array is a beam of light.

An array is a special variable, which can hold more than one value at a time.

An array is a special function, which can hold more than one value at a time.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is first index value of an array?

-1

0

1

undefine

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The length() method for an array will return _____.

the number of elements in the array

the last index value of the array.

the length of the name of the array variable

the capacity of the array

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The push() method append to the _______ of the array.

beginning

middle

end

none of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The pop() method removes the _______ element of the array.

beginning

middle

end

none of the above

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The push() method adds a new element to the beginning of an array.

true

false

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?