WEB DEVELOPMENT
APPLICATIONS EXAM
COMPREHENSIVE QUESTIONS
ACCURATE ANSWERS
● Canvas API. Answer: Which API is used for rendering visual images
on the fly via scripting?
● <canvas>. Answer: Which element is a transparent container for
graphics?
● height and width. Answer: What two attributes does the <canvas>
element have?
● rectangle. Answer: What primitive shape does canvas support?
● Document Object Model (DOM). Answer: What is the standard
specifying how objects in a Web document can be referred to and
manipulated?
● JavaScript. Answer: Which language is used to access HTML
elements via the DOM?
, ● getContext(). Answer: 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). Answer: Which method draws a filled
rectangle?
● strokeRect(x,y,width,height). Answer: Which method draws a
rectangular outline?
● clearRect(x,y,width,height). Answer: Which method clears the
specified area and makes it fully transparent?
● beginPath(). Answer: Which method begins a drawing path or resets
the current path?
● closePath(). Answer: Which method ends the current drawing path?
● moveTo(x,y). Answer: Which method moves the drawing pointer to a
specified position?
● arc(x,y,radius,startAngle,endAngle,anticlockwise). Answer: 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?
APPLICATIONS EXAM
COMPREHENSIVE QUESTIONS
ACCURATE ANSWERS
● Canvas API. Answer: Which API is used for rendering visual images
on the fly via scripting?
● <canvas>. Answer: Which element is a transparent container for
graphics?
● height and width. Answer: What two attributes does the <canvas>
element have?
● rectangle. Answer: What primitive shape does canvas support?
● Document Object Model (DOM). Answer: What is the standard
specifying how objects in a Web document can be referred to and
manipulated?
● JavaScript. Answer: Which language is used to access HTML
elements via the DOM?
, ● getContext(). Answer: 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). Answer: Which method draws a filled
rectangle?
● strokeRect(x,y,width,height). Answer: Which method draws a
rectangular outline?
● clearRect(x,y,width,height). Answer: Which method clears the
specified area and makes it fully transparent?
● beginPath(). Answer: Which method begins a drawing path or resets
the current path?
● closePath(). Answer: Which method ends the current drawing path?
● moveTo(x,y). Answer: Which method moves the drawing pointer to a
specified position?
● arc(x,y,radius,startAngle,endAngle,anticlockwise). Answer: 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?