
JavaScript Arrays Quiz
Quiz
•
Instructional Technology
•
10th Grade
•
Practice Problem
•
Hard
Zemmary Batucan
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to create an empty array in JavaScript?
let emptyArray = {};
let emptyArray = [];
let emptyArray = new Array();
Both b) and c)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to access the second element of an array named colors?
colors[1]
colors.second
colors(1)
colors[2]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you add an element to the end of an array named fruits?
fruits.add("grape");
fruits.push("grape");
fruits.append("grape");
fruits.insert("grape");
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove the last element from an array named numbers?
numbers.remove();
numbers.pop();
numbers.delete();
numbers.shift();
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the length property of an array return?
The index of the last element.
The number of elements in the array.
The type of the array.
The first element of the array.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a valid way to create a 2D array in JavaScript?
let matrix = [1, 2, 3, 4, 5, 6];
let matrix = [[1, 2, 3], [4, 5, 6]];
let matrix = { 1: [1, 2, 3], 2: [4, 5, 6] };
let matrix = new Array(2, 3);
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you access the element at the second row and first column of a 2D array named matrix?
matrix[1][0]
matrix[0][1]
matrix[2][0]
matrix[0][2]
Access all questions and much more by creating a free account
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
IC3 GS6 Level 1 Domain 5 Assessment
Quiz
•
6th - 12th Grade
11 questions
Design Thinking 2
Quiz
•
9th - 12th Grade
10 questions
Fun with Numpy
Quiz
•
9th - 12th Grade
10 questions
IT Practice TEST 1
Quiz
•
9th - 10th Grade
15 questions
Hydraulic brake system
Quiz
•
10th - 12th Grade
10 questions
WYA Video Vocabulary 1
Quiz
•
5th Grade - University
10 questions
Exhaust System Technology and Repair
Quiz
•
8th Grade - Professio...
13 questions
Safety in shop
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Instructional Technology
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
20 questions
Cell Organelles
Quiz
•
10th Grade
25 questions
Complementary and Supplementary Angles
Quiz
•
7th - 10th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
10 questions
Exploring the Layers of the Earth
Interactive video
•
6th - 10th Grade
