
Quiz on JavaScript Functions and Events
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Easy
Ben Higginbotham
Used 2+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 mins • 1 pt
What does the variable resultString initially contain?
An empty string
A predefined message
The name of a chocolate
None of the above
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the variable finalMessage?
To store the correct answer
To display the final result
To track the number of turns
None of the above
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the updateScreen() function?
To check the correctness of the answer
To transition to the next screen
To display feedback to the player
None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which function plays a sound when the startButton is clicked?
playSound()
setText()
updateScreen()
None of the above
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the onEvent("enter1", "change", ...) function listen for?
Mouse click
Keyboard input
Screen transition
None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many questions are there in total in the quiz?
5
10
15
20
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What event triggers the function associated with the startButton?
Mouse hover
Keyboard press
Button click
Page load
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
16 questions
OCR Sys Arch J277
Quiz
•
10th - 12th Grade
15 questions
Internet Basics
Quiz
•
5th Grade - University
16 questions
Computer Hardware--Outside
Quiz
•
9th - 12th Grade
15 questions
Problem Solving : Design Solution
Quiz
•
12th Grade
15 questions
Virtual Private Server
Quiz
•
12th Grade
20 questions
ข้อสอบวิชาการสร้างภาพเคลื่อนไหว ม.6
Quiz
•
12th Grade
17 questions
Security and Ethics
Quiz
•
9th - 12th Grade
20 questions
Design your website
Quiz
•
7th - 12th 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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
