Exam 13: Programming Web Pages With Javascript

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

You can think of the DOM as a hierarchical arrangement of the content of an HTML document into a tree-like structure, which is known as a DOM root . _________________________

Free
(True/False)
4.8/5
(38)
Correct Answer:
Verified

False

  Referring to the figure above, which of the following is a variable name used in the code shown? Referring to the figure above, which of the following is a variable name used in the code shown?

Free
(Multiple Choice)
4.7/5
(25)
Correct Answer:
Verified

A

To call a function in response to a user action, a developer creates a(n) __________.

Free
(Multiple Choice)
4.8/5
(40)
Correct Answer:
Verified

A

It's common to store object references as variables.

(True/False)
4.9/5
(52)

  Referring to the figure above, the word addEventListener is an example of a(n) __________. Referring to the figure above, the word addEventListener is an example of a(n) __________.

(Multiple Choice)
5.0/5
(35)

JavaScript allows you to create __________, which are values that are stored and that you can access with a name that you specify.

(Multiple Choice)
4.8/5
(30)

In the DOM, each HTML element is considered a(n) property . _________________________

(True/False)
4.8/5
(36)

The __________ property refers to the current value of a form field or an object property.

(Multiple Choice)
4.8/5
(32)

Whenever you use a method, you specify its parent object first, followed by a(n) __________ and then the method name.

(Multiple Choice)
4.7/5
(33)

Each DOM node is associated with a standard set of information; each piece of information is known as a(n) ________________.

(Short Answer)
4.8/5
(32)

The script element is added to an HTML document to reference an external JavaScript file. _________________________

(True/False)
4.8/5
(48)

JavaScript supports the use of symbols known as __________ to compare or change the values of multiple objects or properties.

(Multiple Choice)
4.8/5
(33)

The value property refers to the current value of a form field or an object property.

(True/False)
4.7/5
(45)

Method names are always followed by quotation marks.

(True/False)
4.9/5
(37)
Match each commonly used JavaScript property with the appropriate description.
the text content of an object, excluding any nested HTML tags
classValue
the path and source filename for an element with a src attribute
src
the value of an element's class attribute
textContent
Correct Answer:
Verified
Premises:
Responses:
the text content of an object, excluding any nested HTML tags
classValue
the path and source filename for an element with a src attribute
src
the value of an element's class attribute
textContent
the current value of a form field or an object property
value
the content of an object, including any nested HTML tags
innerHTML
(Matching)
4.8/5
(31)

A(n) __________ is a JavaScript instruction that performs an action.

(Multiple Choice)
4.7/5
(26)

A common method to change the CSS styles of an element in response to a user's actions is to add or remove __________ values from the element in response to events.

(Multiple Choice)
4.8/5
(32)

Case-Based Critical Thinking Question Alicia wants to increase the sizes of images on her website in response to users moving the mouse pointer over them. To add this feature, she plans to use JavaScript. Alicia can change the CSS styles of the image with the mouse pointer over it by changing the element's __________ property with JavaScript to add or remove class values from the element.

(Multiple Choice)
4.8/5
(32)

Standard ____ for objects include the text content associated with an object, the name of the object, and the name of an associated attribute.

(Multiple Choice)
4.7/5
(33)

You can access any HTML element by specifying a CSS selector using the querySelector() method. _________________________

(True/False)
4.9/5
(41)
Showing 1 - 20 of 71
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)