MCQOPTIONS
Saved Bookmarks
This section includes 10 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
WHICH_OF_THE_FOLLOWING_PROPERTY_REFERS_TO_THE_ROOT_ELEMENT_OF_THE_DOCUMENT??$ |
| A. | documentElement |
| B. | elementdocument |
| C. | rootdocument |
| D. | none of the mentioned |
| Answer» B. elementdocument | |
| 2. |
The_return_type_of_getElementsByClassName()_is___________$ |
| A. | DOM |
| B. | Document |
| C. | Node |
| D. | NodeList |
| Answer» E. | |
| 3. |
Which of the following can be used to select HTML elements based on the value of their name attributes? |
| A. | getElementByName() |
| B. | getElementsByName() |
| C. | getElementsName() |
| D. | getElementName() |
| Answer» C. getElementsName() | |
| 4. |
Which is one of way to query a document for an element or elements? |
| A. | With a specified <strong>id</strong> attribute |
| B. | Matching the specified CSS selector |
| C. | With the specified tag name |
| D. | All of the mentioned |
| Answer» E. | |
| 5. |
Which of the following is/are of Text nodes? |
| A. | Text |
| B. | Comment |
| C. | Both Text and Comment |
| D. | h1 |
| Answer» D. h1 | |
| 6. |
The nodes that represent HTML elements are the __________ |
| A. | Subclass nodes |
| B. | HTML nodes |
| C. | Window nodes |
| D. | Element nodes |
| Answer» E. | |
| 7. |
The Text and Comment is part of __________ |
| A. | CharacterData |
| B. | Document |
| C. | Attr |
| D. | Element |
| Answer» B. Document | |
| 8. |
The node directly above a node is called __________ |
| A. | sibling |
| B. | child |
| C. | parent |
| D. | ancestors |
| Answer» D. ancestors | |
| 9. |
The paragraph “p” is a part of __________$ |
| A. | h1 |
| B. | body |
| C. | html |
| D. | Both body and html |
| Answer» E. | |
| 10. |
The central object in a larger API is known as __________ |
| A. | Document Object Material |
| B. | Document Object Model |
| C. | Binary Object Model |
| D. | Data object model |
| Answer» C. Binary Object Model | |