
JS Functions
Quiz
•
Computers
•
8th Grade
•
Hard
Manuel Castillo
Used 51+ times
FREE Resource
Enhance your content in a minute
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a global variable scope
the variable can be accessed anywhere inside and outside a function
the variable can be accessed only inside the function
the variable can be accessed only outside the function
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are functions?
It's code that you can use in Javascript
It's where you can put if and else statements
It's a block of code that lets you do a bunch of tasks
It's a block of code that let's you do one specific task
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between an argument and a parameter?
The argument is set when you create the function. The parameter is what you enter when you call the function
The parameter is set when you create the function. The argument is what you enter when you call the function
The argument is set when you create the variable. The parameter is what you enter when you call the function
The parameter is set when you create the variable. The argument is what you enter when you call the function
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a function declaration?
It's when you create the variable
It's when you create the function
It's when you call the variable
It's when you call the function
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the console output?
Console will return "My car is red"
Console will return "My car is blue"
Console will return "undefined variable"
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the console output?
"My car is blue."
"My car is red"
Undefined variable
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does it mean to "invoke" a function?
To call a function
To create a function
To call a variable
To code a function
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
YouCode Scratch Quiz
Quiz
•
KG - 12th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
11 questions
Cascading Style Sheets
Quiz
•
8th - 12th Grade
11 questions
What is a computer
Quiz
•
KG - University
10 questions
CLASS 8 CODING
Quiz
•
8th Grade
9 questions
Introduction To Python
Quiz
•
6th - 8th Grade
10 questions
Computer Devices and its Operating System
Quiz
•
4th - 8th Grade
12 questions
Web Development Vocabulary Words
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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
