HTML5 Canvas - MCQs

HTML5 Canvas - MCQs


1) HTML5 element <canvas> gives you an easy and powerful way to draw graphics using JavaScript.

A) True
B) False
View Answer / Hide Answer

ANSWER: A) True




2) Which method is used to increase or decrease the units in a canvas grid.

A) Canvas Transform
B) Canvas Rotation
C) Canvas Scaling
D) Canvas Composition
View Answer / Hide Answer

ANSWER: C) Canvas Scaling




3) Which method is used to mask off certain areas or clear sections from the canvas.

A) Canvas Transform
B) Canvas Rotation
C) Canvas Scaling
D) Canvas Composition
View Answer / Hide Answer

ANSWER: D) Canvas Composition




4) Which version does not support for HTML5 canvas natively?

A) Firefox
B) Safari
C) Chrome
D) IE8
View Answer / Hide Answer

ANSWER: D) IE8




5) The latest versions of Firefox, Safari, Chrome and Opera all does not support for HTML5 Canvas.

A) True
B) False
View Answer / Hide Answer

ANSWER: B) False




6) The canvas element has a DOM method it is called.

A) getContext
B) getId
C) getElement
D) None of the above
View Answer / Hide Answer

ANSWER: A) getContext




7) HTML5 element <canvas> can be used to.

A) Draw graphics
B) Photo compositions
C) Animations
D) All the mentioned above
View Answer / Hide Answer

ANSWER: D) All the mentioned above




8) The HTML canvas is a

A) Three-dimensional grid
B) One-dimensional grid
C) Two-dimensional grid
D) None of the above
View Answer / Hide Answer

ANSWER: C) Two-dimensional grid




9) To draw text on a canvas, which property and method is used.

A) font
B) fillText(text,x,y)
C) stokeText(text,x,y)
D) Both A & B
View Answer / Hide Answer

ANSWER: C) stokeText(text,x,y)


Post your comment

    Discussion

  • RE: HTML5 Canvas - MCQs -Vijay (04/12/15)
  • Good Collection

    Excellent work