PrepAway - Latest Free Exam Questions & Answers

Which code segment should you insert at line 02?

You develop an interactive scalable vector graphic (SVG) application.
You write the following code (Line numbers are included for reference only.):

You need to increase the size of the circle by 50 percent.
Which code segment should you insert at line 02?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

15 Comments on “Which code segment should you insert at line 02?

  1. Al says:

    The only correct answer is B. C is INCORRECT. The currentScale attribute belongs to the SVG element, only. Applying the currentScale attribute to a circle element has no effect on the scale of the circle. I verified this in IE.




    0



    0
  2. abdullah tahan says:

    in the current situation the current answer is B i already check it but you have to try it under IE :
    https://jsfiddle.net/q2buo2x7/

    function zoom() {
    var outer = document.getElementById(‘outer’);
    outer.setAttribute(“currentScale”, 1.5);
    }
    zoom();

    for other browser i think we have to use “transform” which work in inner circle :

    function zoom() {
    var circle = document.getElementById(‘inner’);
    inner.setAttribute(“transform”, “scale(1.5)”);
    }
    zoom();




    0



    0

Leave a Reply