Microsoft Programming in HTML5 with JavaScript and CSS3 (70-480日本語版) (70-480日本語) Free Practice Test
Question 1



Correct Answer:

Explanation

When readyState is 4 and status is 200, the response is ready:
Example
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
}
}
Note:
* readyState == 4
Holds the status of the XMLHttpRequest. Changes from 0 to 4:
0: request not initialized
1: server connection established
2: request received
3: processing request
4: request finished and response is ready
* status==200
200: "OK"
404: Page not found
Reference: AJAX - The onreadystatechange Event
Question 2


Correct Answer:

Explanation

References:
https://www.w3schools.com/cssref/css3_pr_font-face_rule.asp
https://www.html5rocks.com/en/tutorials/webfonts/quick/
Question 3

Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 4




Correct Answer:

Explanation

Question 5

Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 6

Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 7

Correct Answer: A,B,C,E
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 8




Does this meet the goal?
Correct Answer: A
Question 9

Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 10




Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 11



Correct Answer: C
Question 12



Correct Answer: B
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 13


Correct Answer:

Explanation

* The @media rule is used to define different style rules for different media types/devices.
CSS Syntax
@media not|only mediatype and (media feature) {
CSS-Code;
}
* Media type: Screen
Used for computer screens.
Incorrect:
Not size: there is no media type size.
Reference: CSS3 @media Rule; CSS Media Types
Question 14


Correct Answer:

Explanation

* onreadystatechange
When a request to a server is sent, we want to perform some actions based on the response.
The onreadystatechange event is triggered every time the readyState changes.
The readyState property holds the status of the XMLHttpRequest.
Example
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("myDiv").innerHTML=xmlhttp.responseText;
}
}
* Send a Request To a Server
To send a request to a server, we use the open() and send() methods of the XMLHttpRequest object:
xmlhttp.open("GET","xmlhttp_info.txt",true);
xmlhttp.send();
Reference: AJAX - The onreadystatechange Event; The XMLHttpRequest Object