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 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.

Which scenario is ideal for using the async attribute in the <script> tag?

A). When the script must be executed in a specific order.

B). When the script contains critical functionality that should not be delayed.

C). When the script can be executed independently and does not depend on other scripts or document elements.

D). When the script must be executed after the document is parsed.