
Javascript Arrays and Loops
Quiz
•
Computers
•
12th Grade
•
Medium
Chad Cabrera
Used 4+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
KTTX-T4
Quiz
•
9th - 12th Grade
12 questions
Informatyka 7
Quiz
•
1st - 12th Grade
10 questions
Tarkie Seminar for Disers
Quiz
•
9th - 12th Grade
15 questions
Ulangan Harian 2 Informatika X
Quiz
•
12th Grade
10 questions
Latihan Soal Monitoring
Quiz
•
12th Grade
14 questions
Computing figures
Quiz
•
4th - 12th Grade
13 questions
Podsumowanie: binarny, komputer, sieć
Quiz
•
7th Grade - University
16 questions
C-Programming Basics
Quiz
•
12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
