Html miscellaneous
- If the transparent part of the image has rounded or diagonal edges, which format is suitable?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
If a 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.
- When a new version of any cache is available which even is fired?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
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.
- Which of the following is not one of the cache state?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
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.
- Which entry executes and load scripts from the server?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
There are four types of resources in an application cache which are 1) Master Entries 2) Explicit Entries 3) Network Entries 4) Fallback Entries. Resources are explicitly listed in the application’s cache manifest file by the explicit entry. Fallback entry provides fallback entries in the application’s manifest file. Master entries are the resources added to the cache. Network entry executes and load scripts and code from the server, not from the cache. Syntax is
CACHE MANIFEST
NETWORK:
/api
Resources are explicitly listed in a cache in explicit entries. When attempt to load fails fallback entry is used.
- Resources do not fit into _______.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
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.