HTML and CSS Reference
In-Depth Information
Correct answer:
B
3.
Incorrect:
Cache manifest lists all resources that must be cached offline.
A.
Correct:
Session manifest isn't a valid option.
B.
Incorrect:
Network manifest specifies any resources that must be available from
the Internet.
C.
Incorrect:
Fallback manifest enables you to tell the browser what to do when
resources aren't available offline.
D.
Correct answer:
A
4.
Correct:
The
oncached
event is fired when the download completes.
A.
Incorrect:
The
onupdateready
event is fired when items in the manifest are newly
downloaded and the
swapCache
method can be called.
B.
Incorrect:
The
ondownloading
event is fired when the browser is downloading.
C.
Incorrect:
The
onchecking
event is fired when the browser is checking for updates.
D.
Correct answer:
B
5.
Incorrect:
The
enableCache
property doesn't exist.
A.
Correct:
Set the
maximumAge
property to a non-zero value on the
PositionOptions
object.
B.
Incorrect:
The
timeout
property specifies how long to wait for a response before
firing the
timeout
event.
C.
Incorrect:
The cache
maximumAge
defaults to 0, so caching is off by default.
D.
Objective 1.5: Thought experiment
In this experiment, you took a look at a real-world scenario where the addition of JavaScript
libraries could potentially conflict with other libraries already in use. This is a case for using
namespaces to scope the library with a unique fully qualified name to ensure that it's distinct
from any other. Review the objective on the use of the global namespace to ensure that you
understand this concept for the exam.
Objective 1.5: Review
Correct answer:
B
1.
Incorrect:
Variables are global only if declared in the global space.
A.
Correct:
The scope of a variable depends on where inside the script it's declared.
B.
Incorrect:
A variable's type doesn't affect its scope.
C.
Search WWH ::
Custom Search