Microsoft
98-382 · Question #29
98-382 Question #29: Real Exam Question with Answer & Explanation
Sign in or unlock 98-382 to reveal the answer and full explanation for question #29. The question stem and answer options stay visible for context.
Question
You are designing a web page that contains a list of animals. The web page includes a script that outputs animals from a list. You create the following HTML to test the script:
<p>Animals</p>
<ul>
<li>Dog</li>
<li>Cat</li>
<li>Lion</li>
</ul>
<p>Click the button to display the animals.</p>
<button onclick="showList()">Show List</button>
<div id="list"></div>
You need to create a function that will display the list of animals, including any formatting, in the div element. How should you complete the code? To answer, select the appropriate code segments in the answer area. NOTE: Each correct selection is worth one point.Unlock 98-382 to see the answer
You've previewed enough free 98-382 questions. Unlock 98-382 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.