Intro to Javascript Review 1

Intro to Javascript Review 1

9th - 12th Grade

10 Qs

quiz-placeholder

Similar activities

JavaScript Quiz | For Beginners

JavaScript Quiz | For Beginners

1st Grade - University

10 Qs

PD Mājaslapu projektu vadība & Ievads JavaScript

PD Mājaslapu projektu vadība & Ievads JavaScript

9th Grade

15 Qs

p5.js Week1 PREtest

p5.js Week1 PREtest

7th - 12th Grade

14 Qs

TLE Q3 MODULE 6 QUIZ

TLE Q3 MODULE 6 QUIZ

10th Grade

10 Qs

Yr9 - Java Script - Lesson 2

Yr9 - Java Script - Lesson 2

8th - 9th Grade

11 Qs

Client Side Scripting

Client Side Scripting

11th Grade

10 Qs

AP CSP Unit 4: 2.2.1-2.2.5 (CMU)

AP CSP Unit 4: 2.2.1-2.2.5 (CMU)

11th Grade

10 Qs

Javascript Part 1

Javascript Part 1

10th Grade

10 Qs

Intro to Javascript Review 1

Intro to Javascript Review 1

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Keith Lavigne

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the canvas tag allow in HTML 5?

The canvas tag is used for creating forms in HTML 5.
The canvas tag allows for embedding videos directly in the webpage.
The canvas tag allows for dynamic rendering of graphics and images using JavaScript.
The canvas tag is used for defining the layout of a webpage.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In HTML 5, what is the <script> tag used for?

To embed an image in the document.
To define a CSS style for an element.
To include JavaScript code or link to an external JavaScript file.
To create a hyperlink to another webpage.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In javascript, what does calling the method getContext() allow?

It allows you to create a new canvas element.
It enables you to manipulate HTML elements directly.
It provides a method for loading images onto the canvas.
It allows you to obtain a drawing context for rendering graphics on a canvas.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When drawing shapes like arc and rect in javascript, which method is used to start drawing a path?

startPath()
drawPath()
createPath()
beginPath()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

when drawing a shape such as a rect or arc in javascript, what method is used to finish the path?

stroke() or fill()

closePath()

complete()
draw()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In order to specify the color a path should be filled with when drawing in javascript, which method should be called?

context.setFillStyle
context.fillColor
context.fillStyle
context.strokeStyle

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When drawing in javascript, what method should be called to make the inside of a path a color?

fill()
paint()
stroke()
draw()

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?