
Global and Local Scope
Authored by Wilchristan Navarro
Computers
10th Grade
Used 1+ times

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
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Word Module 1 Review #2
Quiz
•
9th - 10th Grade
15 questions
coding
Quiz
•
KG - Professional Dev...
11 questions
Java Script 1.2. Взаимодействие с пользователями
Quiz
•
1st - 12th Grade
15 questions
Coding Quiz
Quiz
•
6th - 10th Grade
10 questions
Computers 101
Quiz
•
KG - 12th Grade
10 questions
Quiz Dadakan Informatika
Quiz
•
10th Grade
10 questions
Distribuciones - Semana 3
Quiz
•
10th Grade
13 questions
Intro to IF statements
Quiz
•
KG - University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade