
HTML JS Canvas Question
Quiz
•
Information Technology (IT)
•
Professional Development
•
Practice Problem
•
Medium
Sankho Roy
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which method is used to draw a filled rectangle on an HTML <canvas>?
ctx.arc()
ctx.fillRect()
ctx.strokeRect()
ctx.rect()
2.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which method starts a new path in the canvas drawing context?
ctx.begin()
ctx.startPath()
ctx.beginPath()
ctx.newPath()
3.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
ctx.beginPath();
ctx.arc(50, 50, 20, 0, Math.PI);
ctx.stroke();
Full circle
Half circle
Rectangle
Line
4.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What is the main difference between radio buttons and checkboxes?
a) ✅
b)
c) Both allow multiple selections
d) None of the above
Radio buttons allow only one selection in a group, checkboxes allow multiple
Radio buttons allow multiple selections, checkboxes allow only one
Both allow multiple selections
None of the above
5.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
How do you group multiple radio buttons so that only one can be selected?
Give them the same id
Give them the same name
Give them the same value
Put them inside the same <form>
6.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Which is the correct syntax to add a click event listener to a button with id "btn"?
btn.onclick("click", myFunction);
document.getElementById("btn").addEventListener("click", myFunction);
document.getElementById("btn").onClick(myFunction);
btn.addEvent("click", myFunction);
7.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
What does e.preventDefault() do?
Stops the event from bubbling up
Prevents the browser’s default action
Stops JavaScript execution
Removes the event listener
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
15 questions
Week 20 Quizzz
Quiz
•
Professional Development
15 questions
Secure Web Connection Protocol
Quiz
•
Professional Development
10 questions
ATE6123 Fundamental of Wireless Comm - Topic 4
Quiz
•
Professional Development
10 questions
PLANMalaysia AI Training CitySage Day 1
Quiz
•
Professional Development
11 questions
XFC 120124
Quiz
•
Professional Development
10 questions
CloudRaya Webinar IaC Quiz
Quiz
•
Professional Development
14 questions
Quiz Penggunaan Bootstrap untuk Layout Web
Quiz
•
Professional Development
15 questions
CSF-PT05Q1
Quiz
•
Professional Development
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
Discover more resources for Information Technology (IT)
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development
