Which attribute can be used to include a JavaScript file asynchronously?

A). async='true'

B). defer='async'

C). type='async'

D). async

Which attribute is used to specify the location of an external JavaScript file in the <script> tag?

A). href

B). url

C). src

D). location

In which scenario is it beneficial to use the defer attribute in the <script> tag?

A). When the script should be executed synchronously.

B). When the script is critical for page functionality and must execute immediately.

C). When the script can be loaded asynchronously and executed after the document is parsed.

D). When the script must be executed before the document is fully loaded.

How can you specify the version of JavaScript used in a <script> tag?

A). By including the version attribute in the <script> tag.

B). By specifying the JavaScript version in the opening <script> tag comment.

C). By using the type attribute with the appropriate MIME type.

D). By placing the JavaScript code within a CDATA section.