Which of the following best describes a global variable?

JavaScript Functions and Scope of Variables

Quiz
•
Information Technology (IT)
•
6th Grade
•
Medium
Used 1+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A variable that is only accessible within a loop
A variable that is accessible throughout the entire program
A variable that is only accessible within a class
A variable that is only accessible within a function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to declare a local variable in JavaScript?
let
const
var
function
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a global variable?
A variable declared inside a function
A variable declared outside a function
A variable that cannot be accessed by any function
A variable that is only accessible within a loop.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you assign a value to a variable that has not been declared with the 'var' keyword?
A) It becomes a local variable
B) It becomes a global variable
C) It causes an error
D) It becomes a constant.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does a rating of 4 mean in the self-assessment table?
I can do this independently.
I am an expert and I can teach the class.
I can do this with help.
I can't do this with help.
6.
DRAG AND DROP QUESTION
30 sec • 1 pt
Fill in the blank: A rating of 1 in the self-assessment table means 'I can't do this with help. I need a (a) lesson.'
tutorial
video
practice
guide
7.
DRAG AND DROP QUESTION
30 sec • 1 pt
Fill in the blank: The syntax of a function in JavaScript is written by (a) .
Executers
Programmers
Debuggers
Designers
Similar Resources on Quizizz
12 questions
Computer Science Concepts Quiz

Quiz
•
6th Grade
10 questions
Robotics and AI trivia for kids

Quiz
•
1st - 6th Grade
12 questions
Digital Citizenship - Comprehensive Activity

Quiz
•
1st - 6th Grade
12 questions
Strand D-Coding

Quiz
•
6th Grade
10 questions
Fundamentos de Programación en Python

Quiz
•
6th Grade - University
10 questions
Understanding Functions in Informatics

Quiz
•
6th Grade
12 questions
Ulangkaji ASK

Quiz
•
6th - 8th Grade
10 questions
Coding Adventure III Quiz

Quiz
•
6th 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 Information Technology (IT)
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
5 questions
capitalization in sentences

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

Interactive video
•
5th - 8th Grade
12 questions
Dividing Fractions

Quiz
•
6th Grade
9 questions
1. Types of Energy

Quiz
•
6th Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade
6 questions
Final Exam: Monster Waves

Quiz
•
6th Grade
10 questions
Final Exam Grandfather's Chopsticks

Quiz
•
6th Grade