Que- To draw on the canvas, authors must first obtain a reference to a context using the ______________ method of the canvas interface element.
a. getImageData
b. toDataURL
c. getContext
d. restore
Answer- getContext
Que- The ___________ method must add the scaling transformation described by the arguments to the transformation matrix.
a. scale(x, y)
b. translate(x, y)
c. rotate(angle)
d. skew(x,y)
Answer- scale(x, y)
Que- 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?
a. strokeRect(x, y, w, h)
b. clearRect(x, y, w, h)
c. fillRect(x, y, w, h)
d. removeRect(x,y,w,h)
Answer- clearRect(x, y, w, h)
Que- 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.
a. measureText()
b. imageData()
c. drawImage()
d. setImage()
Answer- drawImage()
Que- 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.
a. fill()
b. stroke()
c. clip()
d. get()
Answer- clip()
Que- The ____________ method must fill all the subpaths of the current path, using fillStyle, and using the non-zero winding number rule.
a. fill()
b. stroke()
c. clip()
d. get()
Answer- fill()
Que- Which of the following methods must empty the list of subpaths so that the context once again has zero subpaths?
a. closePath()
b. beginPath()
c. moveTo(x, y)
d. endPath()
Answer- beginPath()
Que- Which of the following is not a type of attribute for input tag?
a. day
b. week
c. month
d. time
Answer- day
Que- 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.
a. progress
b. meter
c. details
d. menu
Answer- details
Que- The __________ element may contain not just links but also other interactive items, including the newly introduced command element.
a. progress
b. meter
c. details
d. menu
Answer- menu
Que- The __________ attribute effectively renders the iframe as an inline include, which allows the parent document’s CSS to affect the contents of the iframe.
a. allow-forms
b. seamless
c. embed
d. allow-scripts
Answer- seamless
Que- Which of the following allows the sandboxed iframe to run scripts from the same domain?
a. allow-same-origin
b. allow-forms
c. allow-scripts
d. allow-pointer-lock
Answer- allow-scripts
Que- __________ allows the iframe to pull in content from elsewhere in the same domain.
a. allow-same-origin
b. allow-forms
c. allow-scripts
d. allow-pointer-lock
Answer- allow-same-origin
Que- Which of the following is not a HTML5 added form element?
a. <datalist>
b. <keygen>
c. <output>
d. <password>
Answer- <password>
Que- Which element specifies a list of pre-defined options for an input element?
a. <datalist>
b. <keygen>
c. <output>
d. <password>
Answer- <datalist>
Que- Which of the following defines a group of related options in a drop-down list?
a. <form>
b. <optgroup>
c. <output>
d. <option>
Answer- <optgroup>
Que- What does ‘On-Screen Action’ means in the testing of HTML5 applications?
a. Using Drag action
b. Using new input type
c. Using play and pause action of audio and video elements
d. Verifying SVG and Canvas elements
Answer- Using Drag action
Que- What can be used to verify a displayed graphics?
a. Property checkpoints
b. Region checkpoints
c. On-Screen Action
d. Local STorage
Answer- Region checkpoints
Que- Which element has been removed from HTML5 (W3C) specification?
a. <figure>
b. <nav>
c. <hgroup>
d. <aside>
Answer- <hgroup>
Que- Which of the following is used for plug-in content?
a. <embed>
b. <progress>
c. <meter>
d. <source>
Answer- <embed>
Que- Which of the following does not lie under the attribute of <input> and is not supported by Opera?
a. url
b. time
c. tel
d. option
Answer- option
Que- Which is the new attribute of <input> element that is used to change the appearance of checkbox?
a. Indeterminate
b. Media
c. EI
d. Target
Answer- Indeterminate
Que- Which attribute does not lie inside <a> and <area> elements?
a. Media
b. Ping
c. Hreflang
d. Preload
Answer- Preload
Que- Which element does not support autofocus attribute?
a. <input>
b. <select>
c. <textarea>
d. <base>
Answer- <base>
Que- Which element does not support form attribute?
a. <input>
b. <output>
c. <meta>
d. <button>
Answer- <meta>
Que- Which attribute of <input> element can be used both with <datalist> and <select> elements?
a. List
b. Pattern
c. Multiple
d. Max
Answer- List
Que- Which is not a Boolean attribute?
a. Multiple
b. Novalidate
c. Formvalidate
d. Formtarget
Answer- Formtarget
Que- Which of the following is not the keyword of form method attribute?
a. GET
b. POST
c. PUT
d. OUT
Answer- OUT
Que- What is the work of async attribute?
a. It influences script loading
b. It gives a label to the menu
c. It validates form data
d. Enables a set of extra restrictions on any content
Answer- It influences script loading
Que- Which is not <iframe> attribute?
a. Seamless
b. Srcdoc
c. Sizes
d. Sandbox
Answer- Sizes
Que- Which is not a new global attribute in HTML5?
a. Contenteditable
b. Contextmenu
c. Title
d. Draggable
Answer- Title