11. The ____ method used to clear a setInterval() method call.
a. exitInterval()b. stopInterval()
c. clearInterval()d. cancelInterval()
: 1320992.
11. The ____ method is used to clear a setInterval() method call.
a. exitInterval()b. stopInterval()
c. clearInterval()d. cancelInterval()
12. The History object contains a single property, the ____ property, which contains the specific number of documents that have been opened during the current browser session.
a. lengthb. size
c. listd. index
13. The ____ object allows you to change to a new web page from within JavaScript code.
a. Navigatorb. Browser
c. Historyd. Location
14. The ____ object is used to obtain information about the current web browser.
a. Locationb. Navigator
c. Historyd. Browser
15. Which method does NOT return a node list or HTML collection??
a. ?getElementById()
b. ?getElementsByTagName()
c. ?getElementsByClassName()
d. ?getElementsByName()
16. Which method returns all h1 elements in a document??
a. ?getElementById(“h1”)
b. ?getElementsByTagName(“h1”)
c. ?getElementsByClassName(“h1”)
d. ?getElementsByName(“h1”)
17. Which method returns all elements in a document that match the selector p figure img??
a. ?getElementsByTagName(“p figure img”)
b. ??getElementsByName(“p figure img”)
c. ?querySelector(“p figure img”)
d. ?querySelectorAll(“p figure img”)
18. Which is the correct way to reference the CSS font-family property in JavaScript when using dot notation??
a. ?font-familyb. ?fontfamily
c. ?fontFamilyd. ?font.family
19. Which is the correct way to reference the href attribute of the element with the id value homeLink??
a. ?document.getElementById(“homeLink”).style.href
b. ?document.getElementById(“homeLink”).attr.href
c. ?document.getElementById(“homeLink”).attr(“href”)
d. ?document.getElementById(“homeLink”).href
20. Which results in a node that exists independently of the DOM tree??
a. ?appendChild()
b. ?createElement()
c. ?insertBefore()
d. ?setting the value of a variable referencing an independent node to null