3X0-202 Free Dumps Study Materials
Question 10: Consider the file "test.html". Which of the following best describes what code does?
<html>
<from>
<INPUT TYPE=" button" VALUE="set cookie"
onClick = "document. Cookie =`first_name=Fred`;">
<INPUT TYPE = "button" VALUE = "display cookie"
onClick = "alert (document.cokkie);">
</from>
</html>
A. When the user clicks on "set cookie," it prompts the user for value. Once the value is entered, it can be
displayed using the "display cookie" button.
B. When the user clicks on "set cookie," the first_name cookie is set to "Fred." The first_name cookie can
be
displayed by clicking the "display cookie" button.
C. When the user first loads "test.html," first_name is automatically set to "Fred." The value of first_name
can
be seen with the "display cookie" button. The first_name cookie can be reset to empty ("") by clicking the
"set
cookie" button.
D. When the user clicks on the "set cookie" button, a new HTML page is loaded that displays the word
"Fred".
When the user clicks on the "display cookie" button, it alerts the user that it has been deleted.
Correct Answer: B