JavaScript MCQ : JS Basics (Multiple Choice Questions)
Question 1 |
Which of the following Attribute is used to include External JS code inside your HTML Document -
link | |
ext | |
src | |
script |
Question 2 |
"async" attribute is used to include External JS Code Asynchronously.
<script src="main.js" async="async"></script>
True | |
False |
Question 3 |
Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)
parse | |
async | |
defer | |
type |
Question 4 |
______ attribute is used to specify the character encoding used in an external script file.
charset | |
character | |
type | |
None of These |
Question 5 |
The async attribute can be set in the following ways -
All of These | |
<script async=""> | |
<script async> | |
<script async="async"> |
There are 5 questions to complete.