
HTML JS Canvas Question
Quiz
•
Information Technology (IT)
•
Professional Development
•
Medium
Sankho Roy
Used 1+ times
FREE Resource
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
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
POST-TEST DAY 3
Quiz
•
Professional Development
10 questions
HPE Competency Exam October 2024
Quiz
•
Professional Development
10 questions
Aruba Competency Exam January 2025
Quiz
•
Professional Development
10 questions
Kiểm tra đánh máy cơ bản
Quiz
•
Professional Development
5 questions
Webinar - TypeScript
Quiz
•
Professional Development
15 questions
Quiz on User Interfaces for Web and Mobile Devices
Quiz
•
Professional Development
10 questions
Microsoft IT Pro Community Meetup - September
Quiz
•
Professional Development
15 questions
Mastering SQL DDL and DML Commands
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
Discover more resources for Information Technology (IT)
10 questions
How to Email your Teacher
Quiz
•
Professional Development
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
16 questions
Spooky Season Quiz
Quiz
•
Professional Development
10 questions
Halloween Trivia
Quiz
•
Professional Development
20 questions
Context Clues: Multiple Meaning Words
Quiz
•
Professional Development
18 questions
Do or Does
Quiz
•
Professional Development
31 questions
Servsafe Food Manager Practice Test 2021- Part 1
Quiz
•
9th Grade - Professio...
