HTML5 Online Test Questions part 3

13. When executing scripts in an HTML page, the page becomes responsive until the script is finished.

a. True
b. False

Answer: b. False

Explanation: The above statement is false. When executing scripts in an HTML page, the page becomes unresponsive until the script is finished.


14. Which of the following is/are the advantage(s) offered by application cache?

a. Offline browsing
b. Speed
c. Reduced server load
d. All the mentioned above

Answer: d. All the mentioned above

Explanation: Application caching enables the web application to store its resources like HTML, CSS, Images, JavaScript pages etc. in the browser, so that the application can be made fully or partially accessible during offline or when the Internet connection is not available. It reduces the server load and increases the speed.


15. A manifest file needs to be served with the correct media type, which is "text/cache-manifest" and that must be configured on the web server.

a. True
b. False

Answer: a. True

Explanation: The above statement is true. A manifest file needs to be served with the correct media type, which is "text/cache-manifest" and that must be configured on the web server. If the manifest attribute is not specified, the page will not be cached (unless the page is specified directly in the manifest file).


16. Files listed under __________ header require a connection to the server, and will never be cached.

a. CACHE MANIFEST
b. NETWORK
c. FALLBACK
d. None of the above

Answer: b. NETWORK

Explanation: Files listed under NETWORK header require a connection to the server, and will never be cached.


17. Which method is used to mask off certain areas or clear sections from the canvas?

a. Canvas Transform
b. Canvas Rotation
c. Canvas Scaling
d. Canvas Composition

Answer: d. Canvas Composition

Explanation: Canvas Composition method is used to mask off certain areas or clear sections from the canvas. Canvas provides compositing attribute globalCompositeOperation which affect all the drawing operations.


18. Which version does not support for HTML5 canvas natively?

a. Firefox
b. Safari
c. Chrome
d. IE8

Answer: d. IE8

Explanation: Internet Explorer 8 does not support for HTML5 canvas natively. IE8 does not allow styling of unknown elements.