Loading, please wait ...
Open its course - HTML5

HTML5 Canvas

  • Canvas API
  • Canvas Example
  • Rectangle drawing using Canvas
  • Line...
    View Complete Description
    ×

    Topic Summary

    • Canvas API
    • Canvas Example
    • Rectangle drawing using Canvas
    • Line drawing using Canvas
    • Curves Lines 
    • Arcs in HTML5
    • Drawing Text
Topic Questions:
18
MCQs T/F FiB SQ
7 3 5 3
Question Type Legends

Easy

Medium

Difficult
Open its course - HTML5

Multiple Choice Questions for HTML5 Canvas

  • 1 The fill() function fills a figure with the canvas?s current fill color,which you set with the _____ attribute
    1. fillStyle
    2. colorStyle
    3. fillColor
    4. setColor

  • 2 For canvas element, Which of the following is default value for textAlign attribute.
    1. start
    2. end
    3. left
    4. right
    5. center

  • 3 Which of the following attribute are used to set the color of the shadow in HTML5 canvas?
    1. shadowBlur
    2. shadowColor
    3. shadowOffsetX
    4. shadowOffsetY

  • 4 Which of the following attribute is used to specify the inner color of the shape in canvas element?
    1. strokeStyle
    2. fillStyle
    3. style
    4. none

  • 5 Which attributes are required in HTML5 < canvas > element?
    1. Height, width
    2. Start Tage and End Tag
    3. Both a & b
    4. None

  • 6 Which of the following is NOT possible to draw in < canvas > element?
    1. Lines, Arcs
    2. Shapes like polygon
    3. Images, text, irregular shapes
    4. None of above
    5. All of above

  • 7 Canvas element was introduced in HTML version
    1. 2.0
    2. 3.0
    3. 4.1
    4. 5

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert