
JavaScript Programming Quiz
Quiz
•
Instructional Technology
•
8th Grade
•
Medium
Katie Lee
Used 6+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the primary purpose of using functions in programming?
To make code easier to understand
To avoid code repetition
To make code reusable
All of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you correctly call a function named calculateTotal()?
calculateTotal;
function calculateTotal();
calculateTotal();
function calculateTotal;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which statement describes the difference between calling and defining a function?
Defining creates the function's contents, calling executes it
Calling creates the function, defining executes it
They are different names for the same process
Defining names the function, calling writes its code
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is required to declare a variable in JavaScript?
variable
int
let
x
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you declare a variable and assign it the value 10?
variable number = 10;
let number = 10;
int number = 10;
number := 10;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the following code output? console.log(5 + 3);
5 + 3
8
Nothing
5 + 3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function is used to get text input from a user?
readText()
readLine()
getText()
inputText()
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
MINECRAFT: EDUCATION EDITION
Quiz
•
KG - 12th Grade
15 questions
Simulasi dan Komunikasi Digital
Quiz
•
1st Grade - University
10 questions
Computer Viruses
Quiz
•
6th - 10th Grade
17 questions
Stacks
Quiz
•
KG - Professional Dev...
10 questions
PROGRAMACIÓN SCRATCH
Quiz
•
6th - 11th Grade
16 questions
HTML Intro Quiz
Quiz
•
6th - 8th Grade
20 questions
tech trivia
Quiz
•
4th - 12th Grade
11 questions
Sphero Block Coding
Quiz
•
KG - 12th Grade
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Instructional Technology
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
12 questions
Digital Citizenship BSMS
Quiz
•
6th - 8th Grade
20 questions
Physical and Chemical Changes
Quiz
•
8th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween History Trivia
Quiz
•
7th - 8th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
