Home
MCQs
HTML MCQs
DOM mcqs
HTML MCQs

HTML MCQs - DOM mcqs

DOM mcqs page consists of following topics Objects, Audio in DOM, Video in DOM, TextTrackList Object, DOM property, DOM tree, Traversing DOM, DOM methods

1. In HTML Audio/Video DOM __________ sets or returns the volume of the audio/video.

A. src

B. volume controls

C. volume

D. video Tracks

Answer: C

2. In HTML Audio/Video DOM __________ sets or returns whether the audio/video should start playing as soon as it is loaded.

A. controls

B. audio Tracks

C. autoplay

D. currentSrc

Answer: C

3. In HTML Audio/Video DOM __________ sets or returns whether the audio/video should start over again when finished.

A. loop

B. autoplay

C. seeking

D. played

Answer: A

4. In HTML Audio/Video DOM __________ returns a MediaError object representing the error state of the audio/video.

A. ended

B. seeking

C. error

D. mediaGroup

Answer: C

5. In HTML Audio/Video DOM __________ returns a TextTrackList object representing the available text tracks.

A. readyState

B. startDate

C. videoTracks

D. textTracks

Answer: D

6. Which of the following is not DOM property?

A. element.appendChild(node)

B. document.createElement()

C. element.innerHTML

D. document.getElementById()

Answer: D

7. Which method is not used for traversing DOM tree?

A. parent()

B. parentsUntil()

C. parents()

D. after()

Answer: D

8. Which method is not for traversing DOM tree sideways?

A. parent()

B. siblings()

C. prev()

D. nextAll()

Answer: A

9. Which of the following is not DOM property?

A. document.anchors

B. document.cookie

C. document.body

D. document.origin

Answer: D

10. Which of the following method will return DOM object that contains map?

A. getCenter()

B. getProjection()

C. getDiv()

D. gettilt()

Answer: C