1. |
When a user views a page containing a JavaScript program, which machine actually executes the script?
|
||||||||
Answer:
Option (a) |
2. |
Which of the following can't be done with client-side JavaScript?
|
||||||||
Answer:
Option (c) |
3. |
Which of the following is not a valid JavaScript variable name?
|
||||||||
Answer:
Option (a) |
4. |
How does JavaScript store dates in a date object?
|
||||||||
Answer:
Option (a) |
5. |
What is the correct JavaScript syntax to write "Hello World"?
|
||||||||
Answer:
Option (c) |
6. |
Inside which HTML element do we put the JavaScript?
|
||||||||
Answer:
Option (c) |
7. |
What is the correct syntax for referring to an external script called " abc.js"?
|
||||||||
Answer:
Option (c) |
8. |
Which is the correct way to write a JavaScript array?
|
||||||||
Answer:
Option (c) |
9. |
What does the tag
do?
|
||||||||
Answer:
Option (a) |
10. |
If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph?
|
||||||||
Answer:
Option (b) |