a
a
a
a
a
a
a
a
a
a
a
a
a
a
LIS FINAL QUESTIONS AND ANSWERS
a a a a
LATEST TOP
a a
a
SCORE. a
a
a
a
a
a
a
a
a
a
"DHTML" arefers ato aa asingle atechnology. a- acorrect aanswers.False a
a
Which aof athe afollowing ais athe acorrect asyntax afor aaccessing athe avalue aof athe ahref
aattribute afor athe athird aa aelement ain aa adocument? a-
document.getElementByID=d("a").href a
-document.getElementByTagName("a")[3].href a
-document.getElementByTagName("a")[2].href a-
document.getElementByTagName("href")[3] a- acorrect
aanswers.document.getElementByTagName("a")[2].href a
a
The a____ aproperty aof athe aImage aobject aallows aJavaScript ato adynamically achange aan
aimage. a
-src a
-img a
-path a
-file a- acorrect aanswers.src a
a
The agetElementsByName() amethod aalways areturns aan aarray, aeven aif athere ais aonly
aone a
a
element ain athe adocument awith aa amatching aname aattribute. a- acorrect
aanswers.True
a
At athe acore aof aDHTML ais a____. a
-DOM a
-JavaScript a
-XML a
-CSS a- acorrect aanswers.DOM a
a
, What ais athe acorrect aJavaScript asyntax ato achange athe acontent aof athe aHTML
aelement a
a
below?
a
<p aid="demo">This ais aa ademonstration.</p> a
a
a
-document.getElementByName("p").innerHTML a= a"Hello
aWorld!"; at
a
-document.getElementById("demo").innerHTML a= a"Hello
aWorld!";
a
-#demo.innerHTML a= a"Hello
aWorld!";
-document.getElement("p").innerHTML a= a"Hello aWorld!"; a-
acorrec
answers.document.getElementById("demo").innerHTML a= a"Hello
aWorld!";
a
The a____ amethod areturns aan aarray aof aelements athat amatch aa aspecified atag
aname.
a
-
getElementsById()
a
-getElementsByTagName()
a
-getElementsByTagId()
a
-getElementsByName() a- acorrect
aanswers.getElementsByTagName()
a
The afollowing astatement afinds aall aof athe a<span> aelements ain athe aHTML adocument: a
a
var ax a= adocument.getElementsByTagName("p"); a- acorrect aanswers.False a
a
The ainnerHTML aproperty ais aused ato aget aor areplace athe acontent aof aan aHTML
aelement. a-
a
correct
aanswers.True
a
Through athe a____ aobject ayou acan aaccess aother aobjects athat arepresent aelements aon
aa aWeb apage. a
-Image a
-Input a
-Element a
-Document a- acorrect aanswers.Document a
a
The aDOM ais aa aW3C a(World aWide aWeb aConsortium) astandard. a- acorrect
aanswers.True a
a
The afollowing aexample areturns aa alist aof aall aelements awhere athe aid="intro" a
a