QUIZ III Website Designing using HTML & CSS
Student's Name *
1. Inside which HTML element do we put the JavaScript? *
2. What is the correct JavaScript syntax to change the content of the HTML element below?<p id="demo">This is a demonstration.</p> *
3. Where is the correct place to insert a JavaScript? *
4. What is the correct syntax for referring to an external script called "xxx.js"? *
5. The external JavaScript file must contain the <script> tag. *
6. How do you write "Hello World" in an alert box? *
7. How do you create a function in JavaScript? *
8. How do you call a function named "myFunction"? *
9. How to write an IF statement in JavaScript? *
10. How to write an IF statement for executing some code if "i" is NOT equal to 5? *
11. How does a WHILE loop start? *
12. How does a FOR loop start? *
13. How can you add a comment in a JavaScript? *
14. How to insert a comment that has more than one line? *
15. What is the correct way to write a JavaScript array? *
16. How do you round the number 7.25, to the nearest integer? *
17. How do you find the number with the highest value of x and y? *
18. What is the correct JavaScript syntax for opening a new window called "w2" ? *
19. JavaScript is the same as Java. *
20. How can you detect the client's browser name? *
21. Which event occurs when the user clicks on an HTML element? *
22. How do you declare a JavaScript variable? *
23. Which operator is used to assign a value to a variable? *
24. What will the following code return: Boolean(10 > 9) *
25. Is JavaScript case-sensitive? *
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy