Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

4) DOM Scripting (Checkpoints 22-28)

Description

Quiz on 4) DOM Scripting (Checkpoints 22-28), created by Sanny Lin on 24/03/2016.
Sanny Lin
Quiz by Sanny Lin, updated more than 1 year ago
Sanny Lin
Created by Sanny Lin about 9 years ago
18
1
1 2 3 4 5 (3)

Resource summary

Question 1

Question
DOM stands for: D[blank_start]ocument[blank_end] O[blank_start]bject[blank_end] M[blank_start]odel[blank_end]
Answer
  • ocument
  • bject
  • odel

Question 2

Question
Each element of the DOM is best known as a what?
Answer
  • node
  • object
  • element
  • item

Question 3

Question
What does the selector `document.getElementsByClassName()` return?
Answer
  • a NodeList
  • an object
  • an array
  • undefined

Question 4

Question
Using no helper libraries, just DOM scripting, what property do you use to change the style of an element?
Answer
  • .style()
  • .css()
  • .transform()
  • .js()

Question 5

Question
A commonly used metaphor to describe the DOM is...
Answer
  • a tree
  • the solar system
  • a cactus
  • a speeding bullet

Question 6

Question
window.addEventListener('scroll', function(event) { console.log(event); }); What is "scroll" in this context?
Answer
  • an event to listen for
  • an event to trigger
  • a function to execute
  • none of these
Show full summary Hide full summary

1 comment

about 9 years ago
Hi Sanny! For #1 in Quiz 4, wouldn't the more correct answer be object? Document.getElementsByClassName() returns an array-like object. Please see the following Stack Overflow link: http://stackoverflow.com/questions/3871547/js-iterating-over-result-of-getelementsbyclassname-using-array-foreach

Similar

C2 - Formulae to learn
Tech Wilkinson
IB Economics SL: Macroeconomics
Han Zhang
Variation and evolution Quiz
James Edwards22201
Genes, The Genetic Code, DNA and Chromosomes
Bee Brittain
1_PSBD New Edition
Ps Test
1PR101 2.test - Část 9.
Nikola Truong
1PR101 2.test - Část 11.
Nikola Truong
SFDC App Builder 1 (1-25)
Connie Woolard
GENERAL PRACTICE-1
Luis Felipe Chávez Choque
Specific topic 7.5 Timber (Stock forms)
T Andrews