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