SVG - Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to SVG Framework. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Q 1 - Which of the following tag of SVG is used to draw a rectangle?

A - rect

B - rectangle

C - Both of the above.

D - None of the above.

Answer : A

Explanation

rect tag of SVG is used to draw a rectangle.

Q 2 - Which of the following tag of SVG is used to draw a close ended polygon?

A - polygon

B - polyline

C - path

D - None of the above.

Answer : A

Explanation

polygon tag of SVG is used to draw a close ended polygon.

Q 3 - Which of the following stroke property used to create dashed lines?

A - stroke

B - stroke-width

C - stroke-linecap

D - stroke-dasharray

Answer : D

Explanation

'stroke-dasharray' property is used to create dashed lines.

Q 4 - Can we write javascript functions in SVG images?

A - true

B - false

Answer : A

Explanation

Yes! SVG supports JavaScript/ECMAScript functions. Script block is to be in CDATA block consider character data support in XML.

Q 5 - Which of the following represents y-axis co-ordinate of the center of the ellipse?

A - y

B - cy

C - ry

D - None of the above

Answer : B

Explanation

cy − y-axis co-ordinate of the center of the ellipse.

Q 6 - Which of the following represents y-axis radius of the ellipse?

A - y

B - cy

C - ry

D - None of the above

Answer : C

Explanation

ry − y-axis radius of the ellipse.

Q 7 - Which of the following command of path element closes the path?

A - A

B - Z

C - Q

D - T

Answer : B

Explanation

Z command of path element closes the path.

Q 8 - SVG integrates well with XSLT and DOM of HTML.

A - false

B - true

Answer : B

Explanation

SVG integrates well with XSLT and DOM of HTML.

Q 9 - Which of the following is used to pass points to draw a polyline?

A - points

B - d

B - path

B - None of the above.

Answer : A

Explanation

points − List of points to make up a polyline.

Q 10 - l command of path element move from one point to another point.

A - true

B - false

Answer : B

Explanation

m command of path element move from one point to another point.

svg_questions_answers.htm
Advertisements