Congratulations - You have completed JavaScript : MCQ.
Your Score | : | %%SCORE%% |
Total Marks | : | %%TOTAL%% |
Rating | : | %%RATING%% |
Wrong Answers | : | %%WRONG_ANSWERS%% |
Your answers are highlighted below.
Question 1 |
We can embed JS code inside HTML directly ?
False | |
True |
Question 2 |
JavaScript Code can be called by using _________.
Triggering Event | |
Function / Method | |
Preprocessor | |
RMI |
Question 3 |
Select all the correct option(s). State the correct place of JS Code inside HTML -
Inside Body | |
Inside Head | |
Inside Single JavaScript File | |
All of these |
Question 4 |
Is this correct syntax to include JS Code inside HTML Page ?
<script type="text/javascript"> ... </script>
No | |
Yes |
Question 5 |
We cannot Place JS Code in the body tag . Say true/false.
False | |
True |
Question 5 Explanation:
We can include JS Code inside body tag or in head tag.
Question 6 |
Is this placement of JS code inside HTML Element is Error Free ?
<html><head><title>My Page</title> </head> <body> <a href="javascript:myFunction();">Click here</a> <script language="javascript" type="text/javascript"> function myFunction() { alert('Hello world'); } </script> </body> </html>
No | |
Yes |
Question 7 |
JS code included inside head section is loaded before loading page.
False | |
True |
Question 8 |
It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage.
False | |
True |
Question 9 |
<script src="../main.js"></script>Are you sure, Above code will include External JS inside your webpage.
Yes | |
No |
Question 10 |
It is good programming procedure to include JS in a external sheet and make it available than writing inside HTML.
I Agree !! | |
I Don't Agree !! |
Question 11 |
Which of the following Attribute is used to include External JS code inside your HTML Document -
link | |
script | |
ext | |
src |
Question 12 |
"async" attribute is used to include External JS Code Asynchronously.
<script src="main.js" async="async"></script>
False | |
True |
Question 13 |
Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)
parse | |
defer | |
async | |
type |
Question 14 |
______ attribute is used to specify the character encoding used in an external script file.
charset | |
None of These | |
character | |
type |
Question 15 |
The async attribute can be set in the following ways -
<script async> | |
<script async="async"> | |
<script async=""> | |
All of These |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
There are 15 questions to complete.