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 ellipse?

A - circle

B - ellipse

C - Both of the above.

D - None of the above.

Answer : B

Explanation

ellipse tag of SVG is used to draw a ellipse.

Q 2 - Which of the following tag of SVG is used to draw text?

A - text

B - polyline

C - path

D - None of the above.

Answer : A

Explanation

text tag of SVG is used to draw a text.

Q 3 - Which of the following stroke property defines thickness of text, line or outline of any element?

A - stroke

B - stroke-width

C - stroke-linecap

D - stroke-dasharray

Answer : B

Explanation

'stroke-width' property defines thickness of text, line or outline of any element.

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 top left of the rectangle?

A - y

B - ry

C - height

D - None of the above

Answer : A

Explanation

y − y-axis co-ordinate of top left of the rectangle. Default is 0.

Q 6 - Which of the following command of path element creates a vertical line?

A - M

B - L

C - H

D - V

Answer : D

Explanation

V command of path element creates a vertical line.

Q 7 - Which of the following command of path element creates an elliptical arc?

A - A

B - S

C - Q

D - T

Answer : A

Explanation

A command of path element creates an elliptical arc.

Q 8 - SVG images are highly scalable as they never loses quality no matter how they are zoomed out or resized.

A - false

B - true

Answer : B

Explanation

SVG images are highly scalable as they never loses quality no matter how they are zoomed out or resized.

Q 9 - What is the default value of x-axis co-ordinate of end point of the line?

A - -1

B - 0

C - Any arbitrary value.

D - None of the above.

Answer : B

Explanation

Default value is 0.

Q 10 - h command of path element creates a horizontal line.

A - true

B - false

Answer : A

Explanation

h command of path element creates a horizontal line.

svg_questions_answers.htm
Advertisements