What happens if the src attribute is used along with inline JavaScript code inside the <script> tag?

A). The inline code is ignored, and only the external file specified in src is loaded.

B). Both the inline code and the external file specified in src are loaded.

C). The browser throws an error because the src attribute cannot be used with inline code.

D). Only the inline code is executed, and the external file specified in src is ignored.

What attribute of the <script> tag allows asynchronous loading of scripts?

A). type='async'

B). async='true'

C). defer='async'

D). async

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

A). async='true'

B). defer='async'

C). type='async'

D). async

Which of the following is true about inline JavaScript code execution?

A). It always executes before external JavaScript files.

B). It executes simultaneously with external JavaScript files.

C). It executes after external JavaScript files.

D). It depends on the order of inclusion in the HTML document.

What is the purpose of using the async attribute in the <script> tag?

A). To ensure the script is executed after the document is parsed.

B). To execute the script synchronously.

C). To load the script asynchronously, improving page load performance.

D). To delay script execution until user interaction.

What is the purpose of including the defer attribute in a <script> tag?

A). To execute the script asynchronously.

B). To delay script execution until after the document is parsed.

C). To specify the scripting language used in the script.

D). To load an external script file.

How does the browser handle the execution of a <script> tag with the defer attribute?

A). It delays script execution until after the document is parsed, maintaining script order.

B). It executes the script as soon as it's available, even if the document is still parsing.

C). It waits for user interaction before executing the script.

D). It prevents the script from executing until the user interacts with the page.