and Answers | A+ Score Assured
1. Inside which HTML element do we put the JavaScript?
<scripting>
<javascript>
<js>
<script> - 🧠 ANSWER ✔✔D
2. What is the correct JavaScript syntax to write "Hello World"?
("Hello World");
response.write("Hello World");
echo "Hello World";
document.write("Hello World"); - 🧠 ANSWER ✔✔D
3. Where is the correct place to insert a JavaScript?
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
1
STATEMENT. ALL RIGHTS RESERVED
, The <body> section
Both the <head> section and the <body> section are correct
The <head> section - 🧠 ANSWER ✔✔B
4. What is the correct syntax for referring to an external script called
"xxx.js"?
<script src="xxx.js">
<script name="xxx.js">
<script href="xxx.js"> - 🧠 ANSWER ✔✔A
5. The external JavaScript file must contain the <script> tag.
False
True - 🧠 ANSWER ✔✔False
6. How do you write "Hello World" in an alert box?
COPYRIGHT©NINJANERD 2025/2026. YEAR PUBLISHED 2025. COMPANY REGISTRATION NUMBER: 619652435. TERMS OF USE. PRIVACY
2
STATEMENT. ALL RIGHTS RESERVED