
JavaScript Programming Quiz

Quiz
•
Instructional Technology
•
8th Grade
•
Medium
Katie Lee
Used 6+ times
FREE Resource
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
Similar Resources on Wayground
10 questions
Lourdes Amaranta Ayala Gracia

Quiz
•
8th Grade - University
17 questions
Stacks

Quiz
•
KG - Professional Dev...
15 questions
LS CPA CPF 2 Software & GUI

Quiz
•
6th - 12th Grade
11 questions
Sphero Block Coding

Quiz
•
KG - 12th Grade
20 questions
ICT Quiz Bee (Difficult Round)

Quiz
•
7th - 10th Grade
15 questions
computer science.

Quiz
•
7th - 8th Grade
20 questions
Brainware dan Sistem Operasi

Quiz
•
7th - 9th Grade
10 questions
While Loop

Quiz
•
8th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade