Test Series - html

Test Number 23/72

Q: Which of the following is not the property of SVG images?
A. SVG images are scalable
B. SVG images are zoomable
C. SVG is an open standard
D. SVG images are resolution dependent
Solution: SVG images stands for Scalable Vector Graphics which are scalable, zoomable and resolution independent. SVG is an open standard.
Q: _______ drawings can be dynamic and interactive.
A. Canvas based
B. SVG
C. CSS3
D. JavaScript
Solution: 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.
Q: Which of the following is the predefined shape elements that can be used by developers?
A. Path
B. Rectangle
C. Circle
D. Line
Solution: SVG images stands for Scalable Vector Graphics. Path  is used to define path. Rectangle element draws rectangle and Circle  draws circle in SVG. All of the respective SVG elements are used to draw respective images.
Q: Which element must reference a resource that can provide an image for the cursor graphic?
A. hover
B. i
C. cursor
D. fill
Solution: The cursor attribute specifies the mouse cursor displayed when the mouse pointer is over an element. This attribute behaves exactly like the css cursor property except that if the browser supports the cursor element, you should be able to use it with the funciri notation.
Q: Which element serves as a container for atomic filter operations?
A. filter
B. feimage
C. feblend
D. tref
Solution: Composition of two images together is done by a primitive filter called feblend. A filter is referenced by using the filter attribute on the target SVG element and is never renderd directly. Fetching of image data from external sources is done by feimage.
Q: The __________ element must reference either an ‘altGlyphDef’ element or a ‘glyph’ element.
A. href
B. src
C. animate
D. altGlyph
Solution: Src is the URL of image. The href is Hypertext Reference which is used to link pages in html and is also an attribute for anchor tag. The altGlyph element allows sophisticated selection of the glyphs used to render its child character data.
Q: The ___________ element must reference a ‘linearGradient’ or ‘radialGradient’ element.
A. script
B. radialGradient
C. animateTransform
D. clip-Path
Solution: Script is line of command which are executed by script engine. Allowing animation to control translation, scaling or rotation is done by animateTransform element. A radialGradient lets authors define radial gradients to fill or stroke graphical elements. A clipping path is defined by clip-path element.
Q: SVG also stands for Scalar Vector Graphics.
A. True
B. False
C. .
D. 0
Solution: SVG stands for Scalable Vector Graphics.
Q: Which property of SVG restricts the region to which paint can be applied?
A. animateTransform
B. clip-Path
C. linearGradient
D. radialGradient
Solution: Allowing animation to control translation, scaling or rotation is done by animateTransform element. A clipping path is defined by clip-path element. A clipping path is defined with a clipPath element. A clipping path is used/referenced using the clip-path property. A radialGradient lets authors define radial gradients to fill or stroke graphical elements.
Q: Which SVG element produces the same effect as if the nodes were deeply cloned into a non-exposed DOM?
A. tref
B. use
C. stroke
D. bin
Solution: A colour of line, text or outline is defined by stroke element in SVG. The use element takes nodes from within the SVG document, and duplicates them somewhere else.

You Have Score    /10