JavaScript

JavaScript

8th Grade

10 Qs

quiz-placeholder

Similar activities

Programmer OK9

Programmer OK9

1st - 10th Grade

15 Qs

Python Final Assessment

Python Final Assessment

4th - 12th Grade

10 Qs

QBASIC

QBASIC

8th Grade

12 Qs

Nintendo consoles

Nintendo consoles

KG - Professional Development

10 Qs

Quick LIsts Recap

Quick LIsts Recap

8th Grade

12 Qs

Computer Hardware

Computer Hardware

3rd - 11th Grade

10 Qs

Tuan 3 - Python

Tuan 3 - Python

KG - Professional Development

10 Qs

ÔN TẬP HKII-02

ÔN TẬP HKII-02

8th Grade

15 Qs

JavaScript

JavaScript

Assessment

Quiz

Computers

8th Grade

Practice Problem

Medium

Created by

swathi pugal

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

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

Access all questions and much more by creating a free account

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?