1 Which of these is NOT an area of web page development? Select one: a. HTML b.
ID: 3841611 • Letter: 1
Question
1
Which of these is NOT an area of web page development?
Select one:
a. HTML
b. DOM
c. BUM
d. CSS
e. JavaScript
2
Which of these is a valid DOM property that refers to the value of an input text field?
Select one:
a. value
b. data
c. size
d. text
e. contents
3
Which of these is a DOM MouseEvent object property that contains the horizontal coordinate of the mouse pointer, relative to the current window?
Select one:
a. clientX
b. clientY
c. windowX
d. screenY
e. screenX
4
If e is a reference to an event object, which of these is a reference to the element that triggered the event?
Select one:
a. eventSource
b. e.target
c. e
d. e.source
e. e.trigger
5
Which of these is a valid DOM property that refers to an element's HTML contents?
Select one:
a. contents
b. value
c. HTML
d. innerHTML
e. span
6
Which of these is a popup box that allows the user to click OK or Cancel?
Select one:
a. alert box
b. choice box
c. prompt box
d. confirm box
e. acknowledgment box
Which of these is at the top of the HTML DOM tree of objects?
Select one:
a. href
b. <body>
c. <head>
d. <html>
e. document
Which of these BOM objects contains information about the URL of the current page?
Select one:
a. Cookies
b. Window
c. Navigator
d. History
e. Location
Which of these BOM objects contains information about the browser?
Select one:
a. Cookies
b. Location
c. History
d. Window
e. Navigator
Which of these is true of JavaScript?
Select one:
a. JavaScript can change any CSS style in the page.
b. JavaScript can add new HTML elements and attributes to the page.
c. JavaScript can change any HTML element in the page.
d. all of these
e. JavaScript can change any HTML attribute in the page.
If myTable is a reference to a HTML table that has the same number of columns in every row, which of these is the DOM syntax for referencing its number of columns?
Select one:
a. myTable.cells[length]
b. myTable.columns
c. myTable.cols
d. myTable.rows[0].cells.length
e. myTable.cells.length
Which of these refers to the name:value pairs in JavaScript objects?
Select one:
a. elements
b. properties
c. attributes
d. methods
e. variables
Which of these is a valid DOM method that can be used to get a reference to an element via its ID attribute?
Select one:
a. getElementById()
b. getElement()
c. attribute()
d. element()
e. getAttribute()
Which of these CANNOT be accessed using BOM objects?
Select one:
a. browser cookies
b. information about the URL of the current page
c. information about the user's screen
d. information about the user's mouse
e. the user's history of visited URLs
Which of these is used to register an event handler for clicking the mouse?
Select one:
a. click
b. onMouseClick
c. onclick
d. onmouse
e. mouse
Which of these is NOT true of the DOM?
Select one:
a. Each HTML element has a corrsponding DOM object.
b. Each DOM object has properties and methods (functions).
c. The DOM is an object-oriented data model for a page.
d. The DOM maintains information about the user's history of visited URLs.
e. The DOM enables JavaScript to see and change the page.
Which of these is used to register an event handler that is triggered when the user enters a page?
Select one:
a. onunload
b. onchange
c. onload
d. onenter
e. onclick
Which of these is a popup box that allows the user to enter input?
Select one:
a. text box
b. prompt box
c. choice box
d. confirm box
e. alert box
Which of these are examples of HTML events?
Select one:
a. When a user clicks the mouse
b. When an input field is changed
c. When the mouse moves over an element
d. all of these
e. When a web page has loaded
Each DOM collection is which of these?
Select one:
a. an array
b. a table
c. a string
d. a stack
e. a list
Explanation / Answer
1. C --> BUM
2.D --> text
The Input Text object represents an HTML <input> element with type="text".
3.A --> clientX
The clientX property returns the horizontal coordinate (according to the client area) of the mouse pointer when a mouse event was triggered.
4.B --> e.target
5.C --> HTML
The document object represents your web page.
If you want to access any element in an HTML page, you always start with accessing the document object.
6.C --> Prompt box
When a prompt box pops up, the user will have to click either "OK" or "Cancel" to proceed after entering an input value.
7. E. --> Document
When a web page is loaded, the browser creates a Document Object Model of the page.
8.Location
The location object contains information about the current URL.
9.E --> Navigator
The navigator object contains information about the browser
10.
11.
12.B properties
The name:values pairs (in JavaScript objects) are called properties.
13.A. getElementById()
Returns the element that has the ID attribute with the specified value
14.
15.C onclick
The event occurs when the user clicks on an element
16.
17. onclick
A JavaScript can be executed when an event occurs, like when a user clicks on an HTML element
18.B prompt box
A prompt box is often used if you want the user to input a value before entering a page.
19.A
onmousedown/onmouseup - When pressing/releasing a mouse button
20.E
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.