JavaScript MCQ : JS Basics (Multiple Choice Questions)


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 Head
B
Inside Body
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
True
B
False
Question 5 Explanation: 
We can include JS Code inside body tag or in head tag.
There are 5 questions to complete.