Simple Javascript Quiz
Test Your Knowledge in
Javascript Fundamentals
1. In which HTML element do we keep the javascript code?
a. <script>
b. <head>
c. <body>
d. None
2. In how many ways script content can be written?
a. Script in Head Tag
b. Script in Body Tag
c. External css
d. All
3. For getting a popup box what is used in javascript?
a. alert();
b. document.getElementById().innerHTML;
c. both
d. None
4. Javascript is directly related to Java Programming language?
a. Yes
b. No
5. Which HTML attribute is used for linking the javascript file?
a. rel
b. href
c. src
d. None