Answer: a. getContext
Explanation: The canvas element has a DOM method called getContext. The getConext method is used to obtain the rendering context and its drawing functions. This function takes one parameter, the type of context 2d.
Answer: c. strokeText(text,x,y)
Explanation: The strokeText(text,x,y) method is used to draw text on a canvas. For example, set font to 40px "Calibre" and write a text, with no fill, on the canvas:
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
ctx.font = "40px Calibre";
Answer: b. loadeddata
Explanation: The loadeddata event is fired when the first frame of the media has finished loading. This event occurs when data for the current frame is loaded, but not enough data to play next frame of the specified audio/video.
Answer: b. controls
Explanation: If the control attribute is present in <audio> tag, it will allow the user to control audio playback, including volume, seeking, and pause/resume playback.
Answer: c. Two-dimensional grid
Explanation: HTML canvas is a Two-dimensional grid. The upper-left corner of the canvas has the coordinates (0,0). For example, fillRect parameters (0,0,160,80) which means that draw a 150x75 rectangle on the canvas from the top left corner (0,0).
Answer: b. False
Explanation: The above statement is false. Server-Sent Events allow a web page to get updates from a server. It allows a web page to get information from the web server automatically.