070-480日本語試験無料問題集「Microsoft Programming in HTML5 with JavaScript and CSS3 (070-480日本語版) 認定」




正解:

Explanation




正解:

Explanation

* box-sizing
The box-sizing property is used to tell the browser what the sizing properties (width and height) should include.
Should they include the border-box or just the content-box which is the default value of the width and height properties.
* border-radius
The border-radius property is a shorthand property for setting the four border-*-radius properties.
Example
Add rounded borders to a <div> element:
div {
border: 2px solid;
border-radius: 25px;
}
Reference: CSS3 box-sizing Property; CSS3 border-radius Property

解説: (GoShiken メンバーにのみ表示されます)


解説: (GoShiken メンバーにのみ表示されます)

正解:

Explanation

* serialize()
Encode a set of form elements as a string ready for submission.
decodeURIComponent
* To decode the string, PHP offers the urldecode() function.
?
echo urldecode('name%40website.com'); //restores "[email protected]"
Reference: JavaScript decodeURIComponent() Function

正解:

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


解説: (GoShiken メンバーにのみ表示されます)

正解:

Explanation

* geolocation.watchPosition
watchPosition() - Returns the current position of the user and continues to return updated position as the user moves (like the GPS in a car).
* position data include:
/ coords.speed
The speed in meters per second
/ coords.accuracy (incorrect answer)
The accuracy of position
Etc.
* The getCurrentPosition() (incorrect)
The getCurrentPosition() method returns an object if it is successful. The latitude, longitude and accuracy properties are always returned. The other properties below are returned if available.
Reference: HTML5 Geolocation

正解:

Explanation

Code Segment: var host ="ws://sample-host/echo";
Segment:socket.onopen
References:
https://docs.microsoft.com/en-us/microsoft-edge/dev-guide/networking-and-connectivity/websocket