Microsoft
98-382 · Question #26
For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Statements: 1. External JavaScript files can be…
1. External JavaScript files can be cached by the browser to improve performance on subsequent visits. (Yes) 2. Internal JavaScript can be placed between the <head> tags, although it might block rendering until the script is downloaded and executed. (Yes) 3. Placing scripts at…
Working with the Document Object Model (DOM)
Question
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Statements:
- External JavaScript files can be cached.
- Internal JavaScript can be placed between the <head> tags.
- Placing your scripts at the bottom of the page body lets the browser load the other elements of the page first.
- Internal JavaScript uses the tag <script src="internal" type="text/javascript">.
Explanation
- External JavaScript files can be cached by the browser to improve performance on subsequent visits. (Yes)
- Internal JavaScript can be placed between the <head> tags, although it might block rendering until the script is downloaded and executed. (Yes)
- Placing scripts at the bottom of the
<body>element is a common practice to ensure that HTML content renders before scripts execute, improving perceived page load speed. (Yes) - Internal JavaScript is embedded directly within
<script>tags, e.g.,<script> /* code */ </script>. Thesrcattribute is used for external JavaScript files to link to a separate file. (No)
Correct selections for the answer area are: 1: Yes, 2: Yes, 3: Yes, 4: No.
Topics
#script placement#external JavaScript#internal JavaScript#HTML structure
Community Discussion
No community discussion yet for this question.