Javascript Arrays and Loops

Javascript Arrays and Loops

12th Grade

13 Qs

quiz-placeholder

Similar activities

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

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

9th - 12th Grade

10 Qs

Scratch!

Scratch!

4th Grade - Professional Development

8 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Bài 29. Nhận biết lỗi chương trình

Bài 29. Nhận biết lỗi chương trình

9th - 12th Grade

14 Qs

Programacion Orientada a Objetos

Programacion Orientada a Objetos

12th Grade - University

10 Qs

Avaliação 1T - JavaScript

Avaliação 1T - JavaScript

9th - 12th Grade

10 Qs

หน่วยที่ 1 ความรู้พื้นฐานการจัดการ ข้อมูลขนาดใหญ่ (Big Data)

หน่วยที่ 1 ความรู้พื้นฐานการจัดการ ข้อมูลขนาดใหญ่ (Big Data)

9th - 12th Grade

15 Qs

Quiz 01 Keamanan Jaringan

Quiz 01 Keamanan Jaringan

12th Grade

17 Qs

Javascript Arrays and Loops

Javascript Arrays and Loops

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Chad Cabrera

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

let a = [1,2,3,4,6,10]

What is a.length

1

4

10

6

Answer explanation

a is a variable that holds the array [1,2,3,4,6,10].

.length is a property of an array that returns the number of elements in the array

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

let a = [1,2,3,4,6,10]

What is a called

variable

array

letter

6

Answer explanation

a by itself is just a variable. What a is saving a reference to is array in this case.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

[1,2,3,4,6,10]

What is this called

array

numbers

list

variable

Answer explanation

an array is a list is elements seperated by commas and surrounded by square brackets[ ]

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

let a = [1,2,3,4,6,10]

How can I get the 3rd element

3

a(3)

3a

a[3]

Answer explanation

to get any element in an array you simply need to use the variable that hold the array and elements index that you wish to access.

array[7]: this will return the 8th element in the array

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does let do

declaration

assignment

re-assignment

variable

Answer explanation

let, var and const are 3 ways to declare varables

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does = do?

assignment

declaration

variable

comparison

Answer explanation

= can be confusing in JS

a single = is an assignment or saving a reference to something into a variable

a double == is comparing to see if two things are nearly the same i.e. "7" == 7 true

a triple === is comparing t see if two things are exactly the same i.e. "7" === 7 false

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does === do?

re assignment

variable

comparison

declaration

Answer explanation

= can be confusing in JS

a single = is an assignment or saving a reference to something into a variable

a double == is comparing to see if two things are nearly the same i.e. "7" == 7 true

a triple === is comparing t see if two things are exactly the same i.e. "7" === 7 false

Create a free account and access millions of resources

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?