ExamVeda
Login
Home
41
To draw on the canvas, authors must first obtain a reference to a context using the ______________ method of the canvas interface element.
Discuss
Answer & Solution
Answer: Option C
Solution:
contextType is a DOMString containing the context identifier defining the drawing context associated to the canvas.
42
The ___________ method must add the scaling transformation described by the arguments to the transformation matrix.
Discuss
Answer & Solution
Answer: Option A
Solution:
HTML5 canvas provides scale(x, y) method which is used to increase or decrease the units in our canvas grid.
43
Which method must clear the pixels in the specified rectangle that also intersects the current clipping region to a fully transparent black, erasing any previous image?
Discuss
Answer & Solution
Answer: Option B
Solution:
The clearRect() method clears the specified pixels within a given rectangle.
44
When the _____________ method is passed an animated image as its image argument, the user agent must use the poster frame of the animation, or, if there is no poster frame, the first frame of the animation.
Discuss
Answer & Solution
Answer: Option C
Solution:
The drawImage() method draws an image, canvas, or video onto the canvas.
45
The ____________ method must create a new clipping region by calculating the intersection of the current clipping region and the area described by the current path, using the non-zero winding number rule.
Discuss
Answer & Solution
Answer: Option C
Solution:
The clip() method clips a region of any shape and size from the original canvas.
46
The ____________ method must fill all the subpaths of the current path, using fillStyle, and using the non-zero winding number rule.
Discuss
Answer & Solution
Answer: Option A
Solution:
The fill() method fills the current drawing (path).The default color is black.
47
Which of the following methods must empty the list of subpaths so that the context once again has zero subpaths?
Discuss
Answer & Solution
Answer: Option B
Solution:
The beginPath() method begins a path, or resets the current path.
48
An API is an application programming interface consisting of methods and properties which allow the author to get or set data or execute commands to the user agent.
Discuss
Answer & Solution
Answer: Option A
Solution:
API, an abbreviation of application program interface, is a set of routines, protocols, and tools for building software applications.
49
Which of the following is not a type of attribute for input tag?
Discuss
Answer & Solution
Answer: Option A
Solution:
day is not defined in the pre-defined attribute list of input tag
50
The new __________ element is supposed to represent some form of extra details, such as a tooltip or revealed region that may be shown to a user.
Discuss
Answer & Solution
Answer: Option C
Solution:
The details tag specifies additional details that the user can view or hide on demand. The details tag can be used to create an interactive widget that the user can open and close. Any sort of content can be put inside the <details> tag.