Quiz

HTML stands for Hyper Text Markup Language. It is the predominant markup language for web pages.

Click here to take the html quiz

QUIZ RESULTS

In which HTML element do we write the JavaScript code?
• <javascript> 25% bar
• <js> 25% bar
• <script> 25% bar
• <java_script> 25% bar
Where is the correct place to insert a JavaScript?
• <head> 25% bar
• <body> 25% bar
• both of the above 25% bar
• none of the above 25% bar
How do you write "Hello World" in an alert box?
• alert("hello world") 25% bar
• alertbox("hello world") 25% bar
• msgbox("hello world") 25% bar
• alert = "hello world" 25% bar
How do you call a function named "myFunction"?
• call myFunction() 25% bar
• myFunction() 25% bar
• call function myFunction() 25% bar
• new functionCall myFunction() 25% bar
How do you write a conditional statement for executing some code if "i" is equal to 5?
• if i=5 then 25% bar
• if i==5 then 25% bar
• if(i==5) 25% bar
• if(i=5) 25% bar
An external JavaScript must contain the <script> tag?
• yes 50% bar
• no 50% bar
How can you add a comment in a JavaScript?
• <!-- This is a comment --> 25% bar
• //This is a comment 25% bar
• 'This is a comment 25% bar
• "This is a comment 25% bar



Click here to return to the main page