HTML JS Canvas Question

HTML JS Canvas Question

Professional Development

10 Qs

quiz-placeholder

Similar activities

How Cyber Safe Are You? Part 3

How Cyber Safe Are You? Part 3

Professional Development

10 Qs

STREAM Interdisciplinary Project Quiz

STREAM Interdisciplinary Project Quiz

Professional Development

10 Qs

JOG Admin Challenge 2024 - Software Showdown Trivia

JOG Admin Challenge 2024 - Software Showdown Trivia

Professional Development

7 Qs

Webinar 11/09/2025

Webinar 11/09/2025

Professional Development

5 Qs

activity ,intro to blockchaine

activity ,intro to blockchaine

Professional Development

11 Qs

RE Quiz 13 Dec - Mani

RE Quiz 13 Dec - Mani

Professional Development

15 Qs

Wake up

Wake up

Professional Development

13 Qs

ZenQMS upload and Batch Uploading

ZenQMS upload and Batch Uploading

Professional Development

10 Qs

HTML JS Canvas Question

HTML JS Canvas Question

Assessment

Quiz

Information Technology (IT)

Professional Development

Practice Problem

Medium

Created by

Sankho Roy

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?