Home / CSE / Javascript - CS :: Graphics and Rendering

CSE :: Javascript - CS

  1. What is the purpose of the canvas element?

  2. A.

     Creates drawing surface

    B.

     Exposes powerful drawing API to client-side JavaScript

    C.

     Creates drawing surface & Exposes powerful drawing API to client-side JavaScript

    D.

     None of the mentioned


  3. From which version of IE is canvas supported?

  4. A.

     7

    B.

     8

    C.

     9

    D.

     Not yet supported


  5. Which method is used to obtain the “drawing context” object ?

  6. A.

     getContext()

    B.

     getObject()

    C.

     get()

    D.

     getDrawing()


  7. What is the returning value of the getContext() method?

  8. A.

     Drawing model

    B.

     CanvasRenderingContext2D object

    C.

     Context2D object

    D.

     None of the mentioned


  9. How does SVG describe complex shapes?

  10. A.

     Path of lines

    B.

     Path of curves

    C.

     Path of lines and curves

    D.

     None of the mentioned


  11. Which is the method invoked to begin a path?

  12. A.

     begin()

    B.

     path()

    C.

     createPath()

    D.

     beginPath()


  13. Which is the method invoked to connect the last vertex back to the first?

  14. A.

     closePath()

    B.

     close()

    C.

     connectlast(first)

    D.

     none of the mentioned


  15. Which of the following are not the properties of a canvas object?

  16. A.

     fillStyle

    B.

     strokeStyle

    C.

     lineWidth

    D.

     lineSize


  17. Which of the following is a property used to check how crisp or fuzzy shadows are?

  18. A.

     shadowColor

    B.

     shadowBlur

    C.

     strokeStyle

    D.

     none of the mentioned


  19. How do you restore a saved coordinate system?

  20. A.

     restore()

    B.

     getback()

    C.

     set()

    D.

     none of the mentioned