HTML and CSS Reference
In-Depth Information
Correct answer: C
3.
Incorrect: The for…in loop runs only if the target list contains at least on element.
A.
Incorrect: The while loop runs only if the Boolean condition evaluates to true.
B.
Correct: The do…while loop runs a Boolean condition after it runs once.
C.
Incorrect: The for loop runs only if the values specified in the conditions are true.
D.
Correct answer: B
4.
Incorrect: The continue keyword exits the current iteration but continues to the
next iteration if the conditional values are still true.
A.
Correct: The break keyword exits an iterative control loop.
B.
Incorrect: stop isn't a valid statement.
C.
Incorrect: next isn't a valid statement.
D.
Objective 2.2: Thought experiment
This interesting scenario can lead to a complex chain of event handling in which one event
triggers other events. This requires deciding on the flow of the events through the page.
Good practice is to do this on paper or workflow software to design the workflow of the
events. This will require knowing when to cancel the event chain or allow it to continue
processing further down the controls.
Objective 2.2: Review
Correct answer: B
1.
Incorrect: This is a valid method.
A.
Correct: CSS doesn't provide a way to assign events handlers.
B.
Incorrect: This is a valid method.
C.
Incorrect: This is a valid method.
D.
Correct answer: D
2.
Incorrect: Anonymous functions can't be called.
A.
Incorrect: Anonymous functions don't have a name.
B.
Incorrect: Anonymous functions can be passed as parameters.
C.
Correct: Anonymous functions can't be assigned to a DOM element declaratively.
D.
Search WWH ::




Custom Search