Javascript quiz on document object



Check this javascript quiz on document objects for free and evaluate your expertise on JS document object properties and functions.


Instructions

Topic- document object

The test consists of 10 questions.

No negative marking for this test.

No Time limit

The pass percentage is 70%

The correct answer with a description will be displayed after the answer has been marked.

Submit the test to calculate your score once you are done with all the questions.

Complexity Level- Easy




Q1: The below JS statement will ______

document.write("Hello World!")















Q2: The below JS statement will ______

document.querySelector('#someField');















Q3: The JS statement document.querySelectorAll(".someLocator"); will ______















Q4: document.anchors will ______















Q5: document.title will ______















Q6: In order to find an element by its id, which of the below methods will be used?


















Q7: Which document property will return the html element?


















Q8: Which document property will return all the form elements?


















Q9: Which document property will return all the img elements?


















Q10: Which document property will return the complete URL of the document?