Skip to content
VUBuddy

CS311 Quiz 2 Updated by Attiq Kundi

Introduction to Web Services Development PDF 797 KBUpdated 23 Oct 2026
Quiz CS311 Quiz 2 Updated by Attiq Kundi PDF 797 KB
vubuddy.com
Type
Quiz
Course
CS311 Introduction to Web Services Development
Size
PDF 797 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 797 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

Preview text

Text from pages 1, 2, 3 of 14. Download the file for all 14 pages.

CS-311 · Quiz No.01,02 · Quiz by Attiq Kundi · 100 % CORRECT MCSQ · AND Many MoRe · CS-311 · Updated on 07-06-2023

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 ____

All CS311 files →
CS311 Introduction to Web Services Development All CS311 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.