Search Header Logo

June's First Quiz

Authored by Vincent Jonathan

Other

1st - 5th Grade

Used 1+ times

June's First Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which one of the following is the correct way to declare a variable called myAge, that contains a number data type?

let myAge = 23;

let myAge = "23";

myAge = 23;

myAge(23);

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following code

let name = "June";

console.log(name[1]);

J

u

undefined

1

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What will be the output of the following code

let name = "June";

console.log(name.length);

The code won't run

June

4

3

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following is the correct way to declare an array variable?

let arr = (1, 2, 3);

let arr[1, 2, 3];

let arr = [1, 2, 3];

arr = [1, 2, 3];

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does .push() do in JavaScript?

Inserts an element to the end of an array

Inserts an element to the beginning of an array

Removes the first element from an array

Removes the last element from an array

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does .unshift() do in JavaScript?

Inserts an element to the end of an array

Inserts an element to the beginning of an array

Removes the first element from an array

Removes the last element from an array

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What does .pop() do in JavaScript?

Inserts an element to the end of an array

Inserts an element to the beginning of an array

Removes the first element from an array

Removes the last element from an array

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?