Exam AD0-E103 All QuestionsBrowse all questions from this exam
Question 73

A developer has a component named foobar with the following file: foobar.html

What is the output when the component is rendered?

A.

B.

C.

D.

    Correct Answer:

    In the provided code, the attributes are directly interpolated with values. The first 'data-one' attribute in the first div takes the value 'foo', the 'data-two' takes the value '2', and 'data-three' takes the value 'true'. For the second div, the 'data-one' attribute is an empty string, 'data-two' takes '0', and 'data-three' takes 'false'. This means the correct output should include these interpolated values: <div data-one='foo' data-two='2' data-three='true'></div><div data-one='' data-two='0' data-three='false'></div>. The correct answer is B.

Discussion
chunpin

Answer: D