Search Header Logo

JAVASCRIPT LONG

Authored by Danny Casimero

Computers

University

Used 6+ times

JAVASCRIPT LONG
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

55 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Analyze the code snippet:

let n = 2 3 * 3 - 1;

53

215

18

36

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The number 2 is stored in the n variable: let n = 2;.

The command n = n*n*n is then called.

This last command can be replaced by:

n **= 3;

n ***= n;

n **= n;

n *= 3;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The string "12" has been written into the str variable: let str = "12";.

Then, the following operation is performed: str = +str.

As a result, the variable str will contain:

12

"+12"

"12"

NaN

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Analyze the code snippet:

let n = 10;

let m = ++n;

n: 10, m: 10

n: 11, m: 10

n: 10, m: 11

n: 11, m: 11

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result of the operation !(true && false || true) will be:

null

true

false

1

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result of the comparison "abcd" > "Abcd" will be:

false

"abcd"

1

true

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The result of the operation 3 * 4 > 20 – 15 will be:

-14

NaN

true

false

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?

Discover more resources for Computers