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 ?
A
False
B
True
Question 2
JavaScript Code can be called by using _________.
A
Triggering Event
B
Function / Method
C
Preprocessor
D
RMI
Question 3
Select all the correct option(s). State the correct place of JS Code inside HTML -
A
Inside Body
B
Inside Head
C
Inside Single JavaScript File
D
All of these
Question 4
Is this correct syntax to include JS Code inside HTML Page ?
<script type="text/javascript">
...
</script>
A
No
B
Yes
Question 5
We cannot Place JS Code in the body tag . Say true/false.
A
False
B
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>
A
No
B
Yes
Question 7
JS code included inside head section is loaded before loading page.
A
False
B
True
Question 8
It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage.
A
False
B
True
Question 9
<script src="../main.js"></script>
Are you sure, Above code will include External JS inside your webpage.
A
Yes
B
No
Question 10
It is good programming procedure to include JS in a external sheet and make it available than writing inside HTML.
A
I Agree !!
B
I Don't Agree !!
Question 11
Which of the following Attribute is used to include External JS code inside your HTML Document -
A
link
B
script
C
ext
D
src
Question 12
"async" attribute is used to include External JS Code Asynchronously.
<script src="main.js" async="async"></script>
A
False
B
True
Question 13
Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)
A
parse
B
defer
C
async
D
type
Question 14
______ attribute is used to specify the character encoding used in an external script file.
A
charset
B
None of These
C
character
D
type
Question 15
The async attribute can be set in the following ways -
A
<script async>
B
<script async="async">
C
<script async="">
D
All of These
Once you are finished, click the button below. Any items you have not completed will be marked incorrect. Get Results
There are 15 questions to complete.