Search Header Logo

7th Seoul - 3rd Cycle Exam

Authored by Eugene Castro

Computers

7th Grade

Used 1+ times

7th Seoul - 3rd Cycle Exam
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the push() method do in an array?

Adds an element to the beginning
Adds an element to the end
Removes the last element
Removes the first element
Pluto

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an array in JavaScript?

let arr = "1, 2, 3";
let arr = [1, 2, 3];
let arr = (1, 2, 3);
let arr = {1, 2, 3};

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which array method removes the last element?

pop()
push()
shift()
unshift()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the length property return?

Number of elements in the array
The last element
The first element
The data type of the array

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method creates a new array by calling a function on each element?

forEach()
map()
filter()
reduce()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you access the first element of an array named fruits?

fruits[1]
fruits(0)
fruits[0]
fruits{0}

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method removes the first element from an array?

pop()
shift()
unshift()
push()

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?