Week 5.2

Week 5.2

Professional Development

10 Qs

quiz-placeholder

Similar activities

javascript1

javascript1

Professional Development

8 Qs

JavaScript Pass by value, Pass by Reference, Scope Hoisting

JavaScript Pass by value, Pass by Reference, Scope Hoisting

Professional Development

15 Qs

Javascript HTML CSS

Javascript HTML CSS

Professional Development

13 Qs

Basics of JavaScript

Basics of JavaScript

11th Grade - Professional Development

15 Qs

JavaScript

JavaScript

Professional Development

12 Qs

Algorithm Quiz

Algorithm Quiz

Professional Development

13 Qs

PreTrainingJavaScript

PreTrainingJavaScript

Professional Development

9 Qs

javascript3

javascript3

Professional Development

8 Qs

Week 5.2

Week 5.2

Assessment

Quiz

Computers

Professional Development

Hard

Created by

Poul Nichols

Used 1+ times

FREE Resource

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?

!

*

!=

/

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?