Primary 3 Exam  >  Primary 3 Tests  >  Test: HTML Canvas Graphics - Primary 3 MCQ

Test: HTML Canvas Graphics - Primary 3 MCQ


Test Description

10 Questions MCQ Test - Test: HTML Canvas Graphics

Test: HTML Canvas Graphics for Primary 3 2024 is part of Primary 3 preparation. The Test: HTML Canvas Graphics questions and answers have been prepared according to the Primary 3 exam syllabus.The Test: HTML Canvas Graphics MCQs are made for Primary 3 2024 Exam. Find important definitions, questions, notes, meanings, examples, exercises, MCQs and online tests for Test: HTML Canvas Graphics below.
Solutions of Test: HTML Canvas Graphics questions in English are available as part of our course for Primary 3 & Test: HTML Canvas Graphics solutions in Hindi for Primary 3 course. Download more important topics, notes, lectures and mock test series for Primary 3 Exam by signing up for free. Attempt Test: HTML Canvas Graphics | 10 questions in 10 minutes | Mock test for Primary 3 preparation | Free important questions MCQ to study for Primary 3 Exam | Download free PDF with solutions
Test: HTML Canvas Graphics - Question 1

Which of the following element is used for canvas graphics?

Detailed Solution for Test: HTML Canvas Graphics - Question 1

 CSS i.e. Cascading Style Sheet is a scripting language. Canvas graphics is introduced in HTML5. Element used for canvas graphics is <canvas>. The HTML canvas element is used to draw graphics, on the fly, via scripting (usually JavaScript).

Test: HTML Canvas Graphics - Question 2

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

Detailed Solution for Test: HTML Canvas Graphics - Question 2

The method getImageData(), returns an imageData that copies pixel data for a specified thing in canvas. ContextType is a DOMString containing the context identifier defining the drawing context associated to the canvas.

1 Crore+ students have signed up on EduRev. Have you? Download the App
Test: HTML Canvas Graphics - Question 3

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?

Detailed Solution for Test: HTML Canvas Graphics - Question 3

StrokeRect(x, y, w, h) draws rectangle without filling it. The clearRect() method clears the specified pixels within a given rectangle. FillRect(x, y, w, h) method draws filled rectangle.

Test: HTML Canvas Graphics - Question 4

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.

Detailed Solution for Test: HTML Canvas Graphics - Question 4

The path one defines is drawn by stroke() method. Any region/shape or size in canvas is clipped by clip(). The fill() method fills the current drawing (path). The default color is black. There is no method like get().

Test: HTML Canvas Graphics - Question 5

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

Detailed Solution for Test: HTML Canvas Graphics - Question 5

ClosePath() creates a path that starts from current point up to the starting point. The beginPath() method begins a path, or resets the current path. MoveTo(x, y) moves the point specified in canvas but without creating the line. There is nothing like endPath() in canvas.

Test: HTML Canvas Graphics - Question 6

Which of the following statement is not true?

Detailed Solution for Test: HTML Canvas Graphics - Question 6

SVG stands for “Scalable Vector Graphics”, it is used to draw graphics for the web. W3C recommends SVG graphics. SVG also supports event handlers which is not supported in canvas.

Test: HTML Canvas Graphics - Question 7

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

Detailed Solution for Test: HTML Canvas Graphics - Question 7

HTML5 canvas provides scale(x, y) method which is used to increase or decrease the units in our canvas grid. The position (0, 0) is remaped in canvas by translate(x, y) method. If one want to rotate the current drawing then rotate(angle) method can be used.

Test: HTML Canvas Graphics - Question 8

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.

Detailed Solution for Test: HTML Canvas Graphics - Question 8

The width of specified text present in an object is given by measureText() method. The drawImage() method draws an image, canvas, or video onto the canvas. ImageData() method provides image data in pixels in canvas.

Test: HTML Canvas Graphics - Question 9

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

Detailed Solution for Test: HTML Canvas Graphics - Question 9

The path one defines is drawn by stroke() method. Any region/shape or size in canvas is clipped by clip(). The fill() method fills the current drawing (path). The default color is black. There is no method like get().

Test: HTML Canvas Graphics - Question 10

 _______ drawings can be dynamic and interactive.

Detailed Solution for Test: HTML Canvas Graphics - Question 10

Scalable Vector Graphics (SVG) is an XML-based vector image format for two-dimensional graphics with support for interactivity and animation. The SVG specification is an open standard developed by the World Wide Web Consortium (W3C) since 1999. SVG images and their behaviors are defined in XML text files.

Information about Test: HTML Canvas Graphics Page
In this test you can find the Exam questions for Test: HTML Canvas Graphics solved & explained in the simplest way possible. Besides giving Questions and answers for Test: HTML Canvas Graphics, EduRev gives you an ample number of Online tests for practice

Top Courses for Primary 3

Download as PDF

Top Courses for Primary 3