This set of HTML Multiple Choice Questions & Answers (MCQs) focuses on “Application Cache and Cache Manifest File”.
1. Which of the following is not the benefit of cache application?
a) browsing offline
b) reduction of server load
2. Which line is mandatory in cache manifest file?
a) CACHE MANIFEST
b) CSS stylesheet
d) image address
Explanation: For offline access, there is a text file named cache manifest. It lists the resources of the browser. For enabling application cache for any app we must include manifest attribute inside an html tag of the document like <html manifest=”text.appcache”> this manifest should be included on every page that we want cached.
3. Which is not the section of manifest?
d) cache status
Explanation: If the files are not in cache they come from a list of the files in the network. Cache is the default section. The files those are listed under this header are explicitly cached after downloading for the first time. If the resource is inaccessible then this section will be in use. There is no any rule to list these section, can be listed in any order.
4. Resources do not fit into _______
a) explicit entries
b) master entries
c) fallback entries
d) idle entries
Explanation: The categories for the resources to fit in are explicit entries, master entries, network entries, fallback entries. Entry can be both fallback and explicit entry. Any HTML file that contains manifest attribute is a master entry. Explicit entries are listed explicitly in the cache section.
5. Which entry executes and load scripts from the server?
a) Explicit entry
b) Network entry
c) Fallback entry
d) Master entry
Explanation: Network entry execute and load scripts and code from the server, not from the cache. Syntax is
Resources are explicitly listed in a cache in explicit entries. When attempt jto load fails fallback entry is used.
6. Which of the following is not one of the cache state?
Explanation: Updateready, obsolete, downloading, checking, idle, uncached are the states of cache. Downloading state of cache denotes that the resources are being downloaded. Checking state signifies that manifest is being checked for the updates. Idle state denotes that the cache is not currently active for the process to update.
7. When a new version of any cache is available which even is fired?
Explanation: When there is an availability of the new version of the cache updateready event is fired. When the resources are being downloaded then progress event is fired. Checking event is fired when an update is being checked. Obsolete is fired when the current cache is marked obsolete.
8. If the transparent part of the image has rounded or diagonal edges, which format is suitable?
b) transparent GIF
Explanation: If transparent part of the image has rounded or diagonal corners we use PNG format. If we want semi opaque transparency or drop shadow there also this format is helpful. If the transparent part of the image has straight edges we use transparent GIF format.
Sanfoundry Global Education & Learning Series – HTML.
To practice all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.