C777 Unit 4: HTML5 APIs Exam/79
Questions and Answers 2024
application programming interface (API) - -What is a collection of standards
and programming instructions that enable access to a software application?
-Canvas API - -Which API is used for rendering visual images on the fly via
scripting?
-<canvas> - -Which element is a transparent container for graphics?
-height and width - -What two attributes does the <canvas> element have?
-rectangle - -What primitive shape does canvas support?
-Document Object Model (DOM) - -What is the standard specifying how
objects in a Web document can be referred to and manipulated?
-JavaScript - -Which language is used to access HTML elements via the
DOM?
-getContext() - -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) - -Which method draws a filled rectangle?
-strokeRect(x,y,width,height) - -Which method draws a rectangular outline?
-clearRect(x,y,width,height) - -Which method clears the specified area and
makes it fully transparent?
-beginPath() - -Which method begins a drawing path or resets the current
path?
-closePath() - -Which method ends the current drawing path?
-moveTo(x,y) - -Which method moves the drawing pointer to a specified
position?
-arc(x,y,radius,startAngle,endAngle,anticlockwise) - -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) - -Which method draws a straight line from the current drawing
position to the specified position?
-stroke() - -Which method adds a line to the path drawn?
-fill() - -Which method fills the area with the color set by the fillStyle
property?
-fillStyle - -Which property sets the fill color or style?
-lineWidth - -Which property sets the thickness of the path drawn, in pixels?
-WebGL API - -Which API enables the rendering of interactive 3D and 2D
graphics in an HTML canvas without the need for plug-ins?
-canvas.getContext("webgl") - -How is WebGL used with the HTML5
<canvas> element?
-offline web applications - -Which API permits the user to continue working
with Web sites and documents even when a network connection is
unavailable?
-application cache - -What provides a directory on a computer where
applications can be stored and run without access to the original application?
-manifest - -What file provides a list of files needed for a web application to
work offline?
-<html manifest="date.appcache"> - -How do you identify the manifest file
to which a Web page should link?
-geolocation API - -Which API provides the ability to determine a user's
location?
-getCurrentPosition() - -Which method retrieves the current geographic
location of the user?
-watchPosition() - -Which method retrieves periodic updates about the
current geographic location of the user?
-clearWatch() - -Which method cancels an ongoing watchPosition() call?
-Drag-and-drop API - -Which API allows a user to grab an object on a
computer screen and move it to a different location on the screen?
Questions and Answers 2024
application programming interface (API) - -What is a collection of standards
and programming instructions that enable access to a software application?
-Canvas API - -Which API is used for rendering visual images on the fly via
scripting?
-<canvas> - -Which element is a transparent container for graphics?
-height and width - -What two attributes does the <canvas> element have?
-rectangle - -What primitive shape does canvas support?
-Document Object Model (DOM) - -What is the standard specifying how
objects in a Web document can be referred to and manipulated?
-JavaScript - -Which language is used to access HTML elements via the
DOM?
-getContext() - -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) - -Which method draws a filled rectangle?
-strokeRect(x,y,width,height) - -Which method draws a rectangular outline?
-clearRect(x,y,width,height) - -Which method clears the specified area and
makes it fully transparent?
-beginPath() - -Which method begins a drawing path or resets the current
path?
-closePath() - -Which method ends the current drawing path?
-moveTo(x,y) - -Which method moves the drawing pointer to a specified
position?
-arc(x,y,radius,startAngle,endAngle,anticlockwise) - -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) - -Which method draws a straight line from the current drawing
position to the specified position?
-stroke() - -Which method adds a line to the path drawn?
-fill() - -Which method fills the area with the color set by the fillStyle
property?
-fillStyle - -Which property sets the fill color or style?
-lineWidth - -Which property sets the thickness of the path drawn, in pixels?
-WebGL API - -Which API enables the rendering of interactive 3D and 2D
graphics in an HTML canvas without the need for plug-ins?
-canvas.getContext("webgl") - -How is WebGL used with the HTML5
<canvas> element?
-offline web applications - -Which API permits the user to continue working
with Web sites and documents even when a network connection is
unavailable?
-application cache - -What provides a directory on a computer where
applications can be stored and run without access to the original application?
-manifest - -What file provides a list of files needed for a web application to
work offline?
-<html manifest="date.appcache"> - -How do you identify the manifest file
to which a Web page should link?
-geolocation API - -Which API provides the ability to determine a user's
location?
-getCurrentPosition() - -Which method retrieves the current geographic
location of the user?
-watchPosition() - -Which method retrieves periodic updates about the
current geographic location of the user?
-clearWatch() - -Which method cancels an ongoing watchPosition() call?
-Drag-and-drop API - -Which API allows a user to grab an object on a
computer screen and move it to a different location on the screen?