MCQOPTIONS
Saved Bookmarks
This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your JavaScript Questions & Answers Embedding JavaScript in HTML knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
The language is commonly used to __________________ |
| A. | Specify the user s language |
| B. | Specify the language going to be scripted |
| C. | No longer in use |
| D. | Specify the programmer s favourable language |
| Answer» D. Specify the programmer s favourable language | |
| 2. |
What is the default value of the type attribute? |
| A. | text/css |
| B. | text/javascript |
| C. | html |
| D. | xml |
| Answer» C. html | |
| 3. |
One of the main advantage of using src attribute is ____________ |
| A. | It becomes self-cached |
| B. | It makes the HTML file modular |
| C. | It restricts manipulation in the HTML file |
| D. | It simplifies the HTML files |
| Answer» E. | |
| 4. |
What is the code to start displaying the time when the document loads? |
| A. | onload = displayTime; |
| B. | window. = displayTime; |
| C. | window.onload = displayTime; |
| D. | window.onload = start; |
| Answer» D. window.onload = start; | |