
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
Fundamentos de Programación en Python
Quiz
•
6th Grade - University
12 questions
Đề cương Công Nghệ Lớp 5 Kì 2
Quiz
•
5th Grade - University
10 questions
Computer Hardware Components and Functions
Quiz
•
6th Grade
6 questions
rbt tingkatan 2- bab 2
Quiz
•
2nd Grade - University
5 questions
How to catch a Phish
Quiz
•
6th Grade
10 questions
Introduction to Computer Science Concepts
Quiz
•
6th Grade - University
10 questions
VARIÁVEIS E CÓDIGO
Quiz
•
6th - 8th Grade
12 questions
Strand D-Coding
Quiz
•
6th Grade
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 Information Technology (IT)
20 questions
Context Clues
Quiz
•
6th Grade
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
10 questions
History and Traditions of Valentine's Day
Interactive video
•
3rd - 6th Grade
20 questions
Valentine’s Day and Disney Trivia Worksheet
Quiz
•
6th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
Writing Algebraic Expressions
Quiz
•
6th Grade
20 questions
Ratios/Rates and Unit Rates
Quiz
•
6th Grade