CS311 Quiz 2 Updated by Attiq Kundi
- Type
- Quiz
- Course
- CS311 Introduction to Web Services Development
- Size
- PDF 797 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 14. Download the file for all 14 pages.
All nodes have __________ parent node.
exactly one
The ____ method returns the value of an attribute.
getAttribute()
All modern browsers support the _______ specification.
W3C DOM
Why we used setAttribute() method ?
to change an attribute value
Traversing means ________ through or traveling across the node tree.
looping
XML DOM Properties These are some typical DOM properties:
- x.nodeName - the name of x
- x.nodeValue - the value of x
- x.parentNode - the parent node of x
- x.childNodes - the child nodes of x
- x.attributes - the attributes nodes of x In the list above, x is a node object.
Advantages
- XML DOM is language and platform independent.
- XML DOM is traversable - Information in XML DOM is organized in a hierarchy which allows developer to navigate around the hierarchy looking for specific information.
- XML DOM is modifiable - It is dynamic in nature providing developer a scope to add, edit, move or remove nodes at any point on the tree.
or one time inside the "note" element.
or more times inside the "note" element.
Element nodes do not have a _____ value.
Text
the cloneNode() method has a parameter :
True or False
for all XML processors which encoding must be supported?
UTF-16
which one of the following is recommended language to style XML elements?
XSLT
______ is used fo navigation in XML documents.
XPoiner
the operational speed of XML DOM, compared to SAX is:
slower
replaceData() method has ____ parameters :
which one is correct syntax to declare zero or one occurences of child element "message":
<!ELEMENT note (message?)>
An XML file whixh contain correct syntax is caleed a ____ XML file.
Well Formed
which one of the following languages used access and manipulate methods and properties of objects?
JavaScript
Elements with only parsed character data are declared with ____ inside parantheses.
#PCDATA
Which of the following is representing the empty element tag?
Both <person></person>
the attributes property of an element node returns a list of attribute nodes. This is called a named ________ .
Node map
the ____ element is the root element of every XML Schema?
<schema>
in XML schema ______ is used to indicate child elements in an element.
ComplexType
what is the description of the attribute-type NMTOKEN.
The value is a valid XML name
DOM stands for
Document Object Model
The term CDATA is used about _______ data that ushould not be parsed by the XML parser.
Text
Node object can have ____
only one parent node object
what does XML stand for?
Extensible Markup language
XML does not help to simplify data ___
Stylish
gotElementsByTagName() method isused to access a ____
Related CS311 files
All CS311 files →Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.