Moringa JavaScript Arrays
Quiz
•
Education, Professional Development, Computers
•
5th Grade - Professional Development
•
Hard
Moringa School
Used 26+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following is not false?
JavaScript arrays are resizable and can contain a mix of different data types.
JavaScript arrays are not associative arrays and are zero-indexed.
Methods used to create copies i.e spread-syntax, slice(), concat(), and Array.from() methods create shallow copies of the array.
JavaScript arrays are not objects but their own primitive types.
2.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
How do you create an array in JavaScript?
const fruits = ['Apple', 'Banana'];
const fruits = new Array('Apple', 'Banana');
const fruits = 'Apple, Banana'.split(', ');
const fruits = [];
fruits[0]= 'Apple';
fruits[1] = 'Banana';
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
The ___ Array object property gives us the count of items in an Array.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following code will return `undefined` using the following array?
const fruits = ['Apple', 'Banana'];
fruits[-1];
fruits[fruits.length - 1];
fruits[1];
fruits[0];
5.
FILL IN THE BLANK QUESTION
1 min • 1 pt
The ___ method is used to find the position (index) of the string "Banana" in the array;
const fruits = ['Apple', 'Banana'];
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The following lines of code are used to check if an item exists. What is the result of the expression?
const fruits = ['Apple', 'Banana'];
fruits.includes('Banana') === fruits.indexOf('Banana') !== -1;
true
false
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following correctly loops through the Array?
const fruits = ['Apple', 'Mango', 'Cherry'];
for (const fruit in fruits) {
console.log(fruit);
}
fruits.forEach(function(fruit, index, array) {
console.log(fruit);
});
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
C3.5 - Video 6 - AI
Quiz
•
11th Grade
10 questions
Online Sources
Quiz
•
7th - 8th Grade
15 questions
MIT APP - QUIZ
Quiz
•
10th Grade
10 questions
Information Security Principles
Quiz
•
University
10 questions
5TH GRADE MIXED QUIZ
Quiz
•
5th Grade
10 questions
ICT as Platform for Change
Quiz
•
11th - 12th Grade
10 questions
Understanding Computers #2 the CPU
Quiz
•
8th Grade
10 questions
Quiz 8 (01.09.2021)
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Education
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
10 questions
Pumpkin Life Cycle and Growth
Interactive video
•
1st - 5th Grade
76 questions
Dress Code: 7 B's
Quiz
•
6th Grade
11 questions
Digital Citizenship
Lesson
•
6th - 8th Grade
44 questions
Understanding Dress Codes
Quiz
•
6th Grade
5 questions
Mood/Tone Quiz
Interactive video
•
6th - 8th Grade
10 questions
AVID Costas Levels of thinking
Quiz
•
7th - 10th Grade
21 questions
Author's Purpose
Quiz
•
5th Grade
