
JavaScript Functions and Scope of Variables
Information Technology (IT)
6th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a global variable?
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
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
10 questions
Online Scenarios: Sus or Trust🔍
Quiz
•
6th - 8th Grade
11 questions
prgramming
Quiz
•
6th Grade - University
11 questions
Excel Basics and Functions
Quiz
•
6th Grade
10 questions
BÀI 1 THÔNG TIN VÀ DỮ LIỆU
Quiz
•
6th Grade
10 questions
CONCEPTOS ARDUINO
Quiz
•
1st Grade - University
12 questions
Roblox Studio Lesson 6
Quiz
•
6th Grade - University
11 questions
Inteligencia Artificial y sus riesgos
Quiz
•
6th - 8th Grade
12 questions
Python L39 US Game 1
Quiz
•
6th - 8th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
Groundhog Day Trivia Questions
Interactive video
•
3rd - 6th Grade
23 questions
Academic Vocabulary Pre-assessmsent
Quiz
•
6th Grade
15 questions
Distributive Property & Review
Quiz
•
6th Grade
10 questions
Understanding Poetry and Literary Devices
Interactive video
•
4th - 8th Grade
20 questions
Writing Algebraic Expressions
Quiz
•
6th Grade
20 questions
Ratios/Rates and Unit Rates
Quiz
•
6th Grade