
Basic JavaScript Programming Quiz
Authored by Muhammad Nezad
Computers
5th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Which of the following is a correct way to declare a variable in JavaScript?
var myVariable;
variable myVariable;
v myVariable;
declare myVariable;
2.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
What is the correct syntax for referring to an external script called "script.js"?
<script src="script.js"></script>
<script link="script.js"></script>
<script ref="script.js"></script>
<script href="script.js"></script>
3.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
How do you write "Hello World" in an alert box?
alert("Hello World");
msg("Hello World");
alertBox("Hello World");
msgBox("Hello World");
4.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
How do you create a function in JavaScript?
function myFunction() {}
create myFunction() {}
function:myFunction() {}
def myFunction() {}
5.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
How do you call a function named "myFunction"?
call myFunction();
myFunction();
call function myFunction();
execute myFunction();
6.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
How do you write an IF statement in JavaScript?
if i = 5 then
if i == 5 then
if (i == 5)
if i = 5
7.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
How does a WHILE loop start in JavaScript?
while (true){}
while true do
while i < 6:
while true:
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
Internet și sisteme de operare.Temă pentru clasa a V-a
Quiz
•
5th - 8th Grade
15 questions
Chromebook care
Quiz
•
3rd - 6th Grade
20 questions
Pyhton Input and Output Basics
Quiz
•
5th Grade
15 questions
Gr5: Assessment: Algorithm To Coding
Quiz
•
5th Grade
15 questions
Introduction to Scratch
Quiz
•
3rd - 5th Grade
15 questions
Files and Documents Computer Basics
Quiz
•
KG - 8th Grade
15 questions
Speed Typing Test with Coding Vocabulary
Quiz
•
3rd - 8th Grade
15 questions
Computer Coding Quiz
Quiz
•
2nd - 8th Grade
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
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
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
13 questions
The Life of Dr. Martin Luther King, Jr. - MLK Day! (Animated)
Interactive video
•
5th Grade
22 questions
Nonfiction Text Structures
Quiz
•
5th Grade
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
18 questions
Add and Subtract fractions and Mixed numbers
Quiz
•
5th Grade
13 questions
Martin Luther King, Jr. Holiday Lesson
Interactive video
•
5th Grade