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

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 is the correct way to include an inline JavaScript code block using the <script> tag?

A). <script type='text/javascript'>...</script>

B). <script inline>...</script>

C). <script>

D). <js>...</js>

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

A). It specifies the scripting language used in the script.

B). It defines the content type of the script file.

C). It indicates whether the script is inline or external.

D). It specifies the version of HTML used in the document.

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.