Global and Local Scope

Global and Local Scope

10th Grade

10 Qs

quiz-placeholder

Similar activities

Do Now Lesson 2

Do Now Lesson 2

9th - 12th Grade

15 Qs

TLE Q3 M5

TLE Q3 M5

10th Grade

10 Qs

MODULE 6 - QUIZ

MODULE 6 - QUIZ

10th Grade

11 Qs

G5 10-ESTEBAN

G5 10-ESTEBAN

10th Grade

10 Qs

TLE Q3 MODULE 4 G16

TLE Q3 MODULE 4 G16

10th Grade

10 Qs

TLE QUIZZIZ 2

TLE QUIZZIZ 2

9th - 12th Grade

10 Qs

TLE Q3 QUIZ MODULES 1-5

TLE Q3 QUIZ MODULES 1-5

10th Grade

10 Qs

TLE Q3 M4

TLE Q3 M4

10th Grade

10 Qs

Global and Local Scope

Global and Local Scope

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Wilchristan Navarro

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

It is a variable inside the function or block scope?

Global scope

Local scope

Function scope

Block scope

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

It declares variables inside a function and can be accessed only inside the function where they are declared

Global scope

Local scope

Function scope

Block scope

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What type of scope is this?

{ var x = 10 ;

var x = 5 ;

var x = 8 ;}

Global scope

Local scope- Block scope

Local scope-Function scope

variable scope

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

It is a keyword in declaring variable?

var

let

const

x or y

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

It is a keyword use to declare constant.

var

let

const

x or y

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What type of redeclaring or assigning variables is this?

const x = 2; // Allowed

{ const x = 3; // Allowed }

{ const x = 4; // Allowed }

Redeclaring a JavaScript var variable is allowed anywhere in a program

Redeclaring or reassigning an existing var or let variable to const, in the same scope, or in the same block, is not allowed

Redeclaring or reassigning an existing const variable, in the same scope, or in the same block, is not allowed

Redeclaring a variable with const, in another scope, or in another block, is allowed

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What type of redeclaring or assigning variables is this?

var x = 2; // Allowed

var x = 3; // Allowed

x = 4; // Allowed

Redeclaring a JavaScript var variable is allowed anywhere in a program

Redeclaring or reassigning an existing var or let variable to const, in the same scope, or in the same block, is not allowed

Redeclaring or reassigning an existing const variable, in the same scope, or in the same block, is not allowed

Redeclaring a variable with const, in another scope, or in another block, is allowed

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?