10 question multiple choice

Anonymous
timer Asked: Oct 16th, 2018
account_balance_wallet $9.99

Question Description

How can you clear a check from a Checkbox object?
a.
set its checked property to false
b.
set its clear property to true
c.
call its blur() method
d.
set its value property to an empty string




Which of the following statements is NOT true?
a.
The DOM for a web page is built as the page is loaded by the web browser.
b.
The DOM is a hierarchical collection of nodes in the web browser's memory.
c.
You can modify the DOM using the properties and methods that are defined by the DOM Core specification.
d.
To display changes made to the DOM, you must refresh the web page.




Which HTML element does NOT have a default action associated with the click event?
a.
<input>
b.
<img>
c.
<button>
d.
<a>




To view the changes that have been made to the DOM for a page by the JavaScript, you can
a.
display the HTML for the page in a browser
b.
display the HTML for the page in Chrome’s Sources panel
c.
display the HTML for the page in Chrome’s Elements panel
d.
none of the above




What does the following code do?
var userName = $("user").firstChild.nodeValue;
a.
It puts the text of an HTML element with “user”" as its id attribute into the userName variable.
b.
It replaces the text of an HTML element with “userName” as its id attribute with the value “user”.
c.
It sets the text of an HTML element with “user” as its id attribute.
d.
It puts the value of the userName variable into the HTML element with “user” as its id attribute.




Which method of the Document interface retrieves an array of all the elements of the specified type?
a.
getElementsByTagName()
b.
getElementsByClassName()
c.
getElementsById()
d.
getElementsByName()




How would you rewrite the statement that follows that uses the DOM Core specification to use the DOM HTML specification?
imageElement.getAttribute(src);
a.
var newImage = img.src;
b.
imageElement.img.src;
c.
imageElement.setAttribute(src);
d.
imageElement.src;




Given HTML that includes the element
<p id = "ship">shipping cost goes here</p>
what will the following code do if the user enters 100 at the prompt?
var getInfo = function() {
var cost = parseFloat(prompt("How much does the item cost?"));
var ship = cost * .06;
document.getElementById("ship").innerHTML="Shipping: $" + ship.toFixed(2);
};
a.
It will display NaN in the <p> element because the starting text in this element is not a number.
b.
It will calculate the value of the ship variable, but the <p> element will remain unchanged.
c.
It will replace the text in the <p> element with “Shipping: $6.00”.
d.
It will display “shipping cost goes here Shipping: $6.00” in the <p> element.



The JavaScript::
1. var $ = function(id) {
2. return document.getElementById(id);
3. };
4. var timer;
5. var counter = 10;
6. var updateCounter = function() {
7. counter--;
8. $("counter").firstChild.nodeValue = counter;
9. if (counter <= 0) {
10. clearInterval(timer);
11. document.getElementById("counter").innerHTML = "Blastoff!";
12. }
13. };
14. window.onload = function() {
15. timer = setInterval ( updateCounter, 1000 );
16. };



The HTML:
<h3>Countdown: <span id="counter"> 10 </span> </h2>




(Refer to Code Example 7-3) The timer in this code will update the counter
a.
every second for 10 times
b.
immediately, when the page loads
c.
once, after a delay of 1000 milliseconds
d.
every 10 seconds




Which of the following statements about radio buttons is NOT true?
a.
A user can select more than one radio button in a group.
b.
Each radio button in a group must have the same name attribute.
c.
Each radio button in a group must have a unique id attribute.
d.
All of the above.

Tutor Answer

MathematicianWhitt
School: University of Virginia

Attached, Thanks.

How can you clear a check from a Checkbox object?
a.
set its checked property to false
b.
set its clear property to true
c.
call its blur() method
d.
set its value property to an empty string

Which of the following statements is NOT true?
a.
The DOM for a web page is built as the page is loaded by the web browser.
b.
The DOM is a hierarchical collection of nodes in the web browser's memory.
c.
You can modify the DOM using the properties and methods that are defined by the DOM Core
specification.
d.
To display changes made to the DOM, you ...

flag Report DMCA
Review

Anonymous
Tutor went the extra mile to help me with this essay. Citations were a bit shaky but I appreciated how well he handled APA styles and how ok he was to change them even though I didnt specify. Got a B+ which is believable and acceptable.

Similar Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors