Home / CSE / HTML- CS :: HTML5

CSE :: HTML- CS

  1. To draw on the canvas, authors must first obtain a reference to a context using the ______________ method of the canvas interface element.

  2. A.

     getData

    B.

     toDataURL

    C.

     getContext

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The ___________ method must add the scaling transformation described by the arguments to the transformation matrix.

  4. A.

     scale(x, y)

    B.

     translate(x, y)

    C.

     rotate(angle)

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. 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?

  6. A.

     strokeRect(x, y, w, h)

    B.

     clearRect(x, y, w, h)

    C.

     fillRect(x, y, w, h)

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. 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.

  8. A.

     measureText()

    B.

     imageData()

    C.

     drawImage()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. 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.

  10. A.

     fill()

    B.

     stroke()

    C.

     clip()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The ____________ method must fill all the subpaths of the current path, using fillStyle, and using the non-zero winding number rule.

  12. A.

     fill()

    B.

     stroke()

    C.

     clip()

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following methods must empty the list of subpaths so that the context once again has zero subpaths?

  14. A.

     closePath()

    B.

     beginPath()

    C.

     moveTo(x, y)

    D.

     none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. 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.

  16. A.

     True

    B.

     False

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which of the following is not a type of attribute for input tag?

  18. A.

     day

    B.

     week

    C.

     month

    D.

     time

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. 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.

  20. A.

     progress

    B.

     meter

    C.

     details

    D.

     menu

    View Answer

    Workspace

    Discuss Discuss in Forum