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 attribute of text tag of SVG represents the x axis cordinates of glyphs?

A - x

B - y

C - dx

D - dy

Answer : A

Explanation

'x' attribute of text tag of SVG represents the x axis cordinates of glyphs.

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

A - stroke

B - stroke-width

C - stroke-linecap

D - stroke-dasharray

Answer : A

Explanation

'stroke' property defines color of text, line or outline of any element.

Q 4 - Can we get an active SVG element using javascript?

A - true

B - false

Answer : A

Explanation

In javascript functions, event represents current event and can be used to get the target element on which event got raised.

Q 5 - Which of the following is used to round the corner of the rounded rectangle along x-axis?

A - x

B - rx

C - width

D - None of the above

Answer : B

Explanation

rx − used to round the corner of the rounded rectangle.

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

A - M

B - L

C - H

D - V

Answer : B

Explanation

L command of path element creates a line.

Answer : B

Explanation

When commands are in Lower case, these represents relative path.

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 y-axis co-ordinate of start 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 - s command of path element creates a smooth curve.

A - true

B - false

Answer : A

Explanation

s command of path element creates a smooth curve.

svg_questions_answers.htm
Advertisements