Search Header Logo

js Quiz

Authored by Ebulfez Seferov

Other

8th Grade

Used 1+ times

js Quiz
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

10 sec • 1 pt

Question: Do you know what will be the output of this code?

Sual: Bu kodun nəticəsinin nə olacağını bilirsinizmi?

console.log(typeof typeof 1 );

String

number

1

true

Answer explanation

This actually returns "string".

This expression is evaluated from right to left.

The first sub-expression evaluated actually is typeof 1 which will return "number".

Only after that the next sub-expression is evaluated which now is typeof "number" which returns "string".

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Question: Do you know what will be the output of this code?

let array=[1,2,3];

array[6]=9;

console.log(array[5]);

Sual: Bu kodun nəticəsinin nə olacağını bilirsin

undefined

1

2

9

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Question: Can you guess what will be the output of the code below?

console.log(typeof NaN);

Sual: Aşağıdakı kodun nəticəsinin nə olacağını təxmin edə bilərsinizmi?

NaN

number

null

undefined

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Question: Do you know what will be the output of this code?

console.log(false=='0');

Bu kodun nəticəsinin nə olacağını bilirsinizmi?

false

true

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Question: Do you know what will be the output of this code?

console.log("This is a string." instanceof String);

Bu kodun nəticəsinin nə olacağını bilirsinizmi

true

false

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Question: Do you know what will be the output of this code?

const numbers = [33, 2, 8];

numbers.sort();

console.log(numbers[1])

Bu kodun nəticəsinin nə olacağını bilirsinizmi?

33

2

8

1

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

If you type the following code in the console window, what result will you get?

3 > 2 > 1 === false;

Konsol pəncərəsində aşağıdakı kodu yazsanız, hansı nəticəni əldə edəcəksiniz?

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?