ACTUAL EXAM STUDY THIS ONE
JavaScript - CORRECT ANSWERS-Which language is used to access HTML elements via the
DOM?
getContext() - CORRECT ANSWERS-Which method returns a context object, which provides
properties and methods that can be used to draw and manipulate images on the canvas?
fillRect(x,y,width,height) - CORRECT ANSWERS-Which method draws a filled rectangle?
strokeRect(x,y,width,height) - CORRECT ANSWERS-Which method draws a rectangular
outline?
clearRect(x,y,width,height) - CORRECT ANSWERS-Which method clears the specified area and
makes it fully transparent?
beginPath() - CORRECT ANSWERS-Which method begins a drawing path or resets the current
path?
closePath() - CORRECT ANSWERS-Which method ends the current drawing path?
moveTo(x,y) - CORRECT ANSWERS-Which method moves the drawing pointer to a specified
position?
arc(x,y,radius,startAngle,endAngle,anticlockwise) - CORRECT ANSWERS-Which method draws
a curving line with a center, a given radius, a starting and ending angle (in radians), and instruction to
draw in a clockwise or counterclockwise direction?
lineTo(x,y) - CORRECT ANSWERS-Which method draws a straight line from the current
drawing position to the specified position?
, stroke() - CORRECT ANSWERS-Which method adds a line to the path drawn?
fill() - CORRECT ANSWERS-Which method fills the area with the color set by the fillStyle
property?
fillStyle - CORRECT ANSWERS-Which property sets the fill color or style?
lineWidth - CORRECT ANSWERS-Which property sets the thickness of the path drawn, in
pixels?
WebGL API - CORRECT ANSWERS-Which API enables the rendering of interactive 3D and 2D
graphics in an HTML canvas without the need for plug-ins?
canvas.getContext("webgl") - CORRECT ANSWERS-How is WebGL used with the HTML5
<canvas> element?
application programming interface (API) - CORRECT ANSWERS-What is a collection of
standards and programming instructions that enable access to a software application?
Canvas API - CORRECT ANSWERS-Which API is used for rendering visual images on the fly via
scripting?
<canvas> - CORRECT ANSWERS-Which element is a transparent container for graphics?
height and width - CORRECT ANSWERS-What two attributes does the <canvas> element
have?
rectangle - CORRECT ANSWERS-What primitive shape does canvas support?
Document Object Model (DOM) - CORRECT ANSWERS-What is the standard specifying how
objects in a Web document can be referred to and manipulated?