Search Header Logo

Arrays Javascript (CodeCademy)

Authored by Thomas Maher

Computers

9th - 12th Grade

Used 25+ times

Arrays Javascript (CodeCademy)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What surrounds an array?

Quotations
Curly Brackets
Parenthesis
Square Brackets

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

5

4

0

125.4

3.

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.

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is proper syntax for declaring a array in JavaScript?

const arrayName =[ ];

let arrayName[ ] ={ };

array arrayName ={ };

obj var arrayName =[ ];

5.

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!";

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

array = [1,2,3,4,5];
What is the highest position in this array?
HINT: Remember arrays start at position 0!

4
5
0
125.7

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

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

length
count
items
num

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?