
JavaScript

Quiz
•
Computers
•
8th Grade
•
Medium
swathi pugal
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create an empty array in JavaScript?
let arr = new Array();
let arr = [ ];
let arr = ( );
let arr = null;
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method do you use to add elements to the end of an array?
add()
push()
append()
concat()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you remove the last element from an array?
removeLast()
deleteLast()
pop()
splice()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
let fruits = ['apple', 'banana', 'orange'];
fruits.pop();
console.log(fruits.length);
0
1
2
3
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method do you use to join all elements of an array into a single string?
join()
concat()
merge()
combine()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the index of the first element in an array?
0
1
-1
10
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
let array = [1, 2, 3, 4, 5];
array.length = 0;
console.log(array)
[ ]
{ }
[1,2,3,4,5]
5
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Exploring BASIC Programming Concepts

Quiz
•
8th Grade
8 questions
CompSci Vocab 2 abstraction - CPU

Quiz
•
8th Grade
10 questions
App Creators Lesson 2.1-2.4

Quiz
•
8th Grade
10 questions
Mini Quiz

Quiz
•
6th - 8th Grade
10 questions
C3 quiz2

Quiz
•
4th - 8th Grade
15 questions
URL Quiz

Quiz
•
8th Grade
15 questions
AV1\R1 3TEC_BE_Acesso a Propriedades em JavaScript 1 a 16

Quiz
•
1st Grade - University
5 questions
2D array - python

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade
25 questions
How to Email a Teacher- https://youtu.be/NioeNhfpVfI

Quiz
•
6th - 8th Grade
20 questions
Computer Hardware

Quiz
•
6th - 8th Grade
21 questions
Gear Ratio Practice

Quiz
•
6th - 8th Grade