It is a variable inside the function or block scope?

Global and Local Scope

Quiz
•
Computers
•
10th Grade
•
Medium
Wilchristan Navarro
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
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
Similar Resources on Quizizz
10 questions
Java Script

Quiz
•
10th - 12th Grade
10 questions
TLE QUIZZIZ 2

Quiz
•
9th - 12th Grade
10 questions
TLE Q3 M4

Quiz
•
10th Grade
10 questions
Mateos's quiz

Quiz
•
10th Grade
10 questions
VILLEGAS ALEMAE D

Quiz
•
10th Grade
10 questions
Q3 module-6

Quiz
•
10th Grade
15 questions
Java Script Quiz

Quiz
•
9th - 12th Grade
10 questions
TLE-Q3-M4

Quiz
•
10th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Juneteenth: History and Significance

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
20 questions
Understanding Linear Equations and Slopes

Quiz
•
9th - 12th Grade