Search Header Logo

Week 5.2

Authored by Poul Nichols

Computers

Professional Development

Used 1+ times

Week 5.2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is a valid way to declare a global variable in JavaScript?

var myVar = "Hello";

let myVar = "Hello";

const myVar = "Hello";

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the scope of a variable declared outside of any function in JavaScript?

Block Scope

Local Scope

Global Scope

None of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the scope of a variable declared inside a block in JavaScript?

Block Scope

Local Scope

Global Scope

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about the scope of variables declared with the keyword "let" in JavaScript?

They have block scope

They have local scope

They have global scope

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is true about the scope of variables declared with the keyword "const" in JavaScript?

They have block scope

They have local scope

They have global scope

None of the above

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many numerical types are there in JavaScript?

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the escape character in JavaScript?

!

*

!=

/

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?