XML Questions 1) What does DTD stand for?

1 Dynamic Type Definition 2 Document Type Definition 3 Direct Type Definitions 4 Do the Dance 2) XSLT Stands for 1 !tensi"#e Sty#esheet Lan$ua$e Transformation 2 !tensi"#e Sty#esheet Lan$ua$e 3 !tensi"#e Sty#esheet Lan$ua$e Trans#ation 4 none

3) Which statement is true? 1 %## the statements are true 2 XML ta$s are case sensiti&e 3 XML e#ements must "e proper#y nested 4 XML documents must ha&e a root ta$

4) Which concept is used to reso#&e the name conf#icts in ta$ names? 1 ntity 2 DTD 3 namespaces 4 '()L*+ identifier ,) D-M.Document o"/ect mode#) is usefu# to parse &ery #ar$e documents in 0uic1 time2 1 yes 2 no 3 may"e 4 3ot app#ied to this conte!t

4) *f an e#ement can occur more num"er of times and a#so it is optiona#5 then 6e shou#d use 77777 as occurrence indicator ? 18 29 3: 4. <) set3amed*tem.2) .EenameE)2item.assum 1 roote#2first+hi#d2first+hi#d2data 2 roote#2first+hi#d2ne!tSi"#in$2first+hi#d2ne!tSi"#in$2data 3 roote#2first+hi#d2ne!tSi"#in$2first+hi#d2ne!tSi"#in$2first+hi#d2data 4 roote#2$et #ements)yTa$name.) is the method in 6hich interface 1 3ode 2 Document 3 3amed3odeMap 4 3one =) 6hat does document #ement fie#d of the Document *nterface of D-M returns 1 3odeList 2 3ode 3 3amed3odeMap 4 3one >) % +SS sty#esheet is used to transform a XML document into ?TML2 1 yes 2 no 3 may"e 4 3ot app#ied to this conte!t 1@) XML preser&es 6hite spaces 1 Aes 2 3o 3B 4B 11) emp#oyee emp empno<34>Cempno enamesmithCename /o"c#er1C/o" Cemp emp empno<<==Cempno enamea##enCename /o"mana$erC/o" Cemp Cemp#oyee Di&en the a"o&e XML document structure5 6hat 6ay.s) 6e can use to $et the &a#ue a##en ? .

) Which one is not correct? 1 The D-M ensures proper $rammar and 6e##Bformedness 2 The D-M simp#ifies interna# document manipu#ation 3 The D-M c#ose#y mirrors typica##y hierarchica# and re#ationa# data"ase structure 4 D-M is simi#iar to DTD2 14) % standa#one document can ha&e an e!terna# DTD2 1 yes 2 no 3 may"e 4 3ot app#ied to this conte!t .12) Which one is the ri$ht ans6er? 1 :BFero or more 2 ?BGero or once 3 % H ) are true 4 % H ) are fa#se 13) Which is not a correct name for an XML e#ement? 1 I 3oteJ 2 %## 3 names are incorrect 3 I h1J 4 I1do##arJ 14) % parameter entity can "e used 1 *n document section on#y 2 "oth in document H DTD sections 3 in DTD sections on#y2 4 as an attri"ute &a#ue on#y2 1.

1<) Kor the XML parser to i$nore a certain section of your XML document5 6hich synta! is correct? 1 I'+D%T%J Te!t to "e i$nored IC'+D%T%J 2 I!m#L+D%T%M Te!t to "e i$nored NJ 3 IOM+D%T%M Te!t to "e i$nored NNJ 4 I+D%T%J Te!t to "e i$nored IC+D%T%J 1=) XSLT is used to 1 Define parts of a source document that match one or more predefined temp#ates2 2 Transform the matchin$ part of a source document into a resu#t doucment 3 &a#idate the source doucment 4 Disp#ay the source document 1>) The root node of an !m# doucment contains 1 The root e#ement 2 'rocessin$ instructions 3 comments 4 a## the a"o&e 2@) Which of these dec#arations is correct? 1 I !s#Ltransform &ersionPE12@E !m#nsL!s#PEhttpLCC6662632or$C1>>>CXSLCTransformEJ 2 I !s#Lsty#esheet &ersionPE12@E !m#nsL!s#PEhttpLCC6662632or$C1>>>CXSLCTransformEJ 3 I !s#Lsty#esheet !m#nsL!s#PEhttpLCC6662632or$CTQCWDB!s#E? 4 I ?!s#Lsty#esheet &ersionPE12@E !m#nsL!s#PEhttpLCC6662632or$C1>>>CXSLCTransform?J 212XML stands for? 12 !amp#e Mar1up Lan$ua$e 22 eXtra Modern Lin1 32 XBMar1up Lan$ua$e .

42 eXtensi"#e Mar1up Lan$ua$e 222There is a 6ay of descri"in$ XML data5 ho6? 12 XML uses a DTD to descri"e the data 22 XML uses a description node to descri"e data 32 XML uses XSL to descri"e data 23 XMLRs $oa# is to rep#ace ?TML 12 True 22 Ka#se 24 What is the correct synta! of the dec#aration 6hich defines the XML &ersion? 12 I?!m# &ersionPE12@E CJ 22 I?!m# &ersionPE12@E?J 32 I!m# &ersionPE12@E CJ 2.2 What does DTD stand for? Direct Type Definition Document Type Definition Do The Dance Dynamic Type Definition 24 *s this a E6e## formedE XML document? I?!m# &ersionPE12@E?J InoteJ ItoJTo&eICtoJ IfromJSaniICfromJ Iheadin$JQeminderICheadin$J I"odyJDonRt for$et me this 6ee1endOIC"odyJ ICnoteJ 12 True 22 Ka#se 2< Which statement is true? 12 %## XML e#ements must "e #o6er case 22 %## XML e#ements must "e proper#y c#osed 32 %## XML documents must ha&e a DTD 42 %## the statements are true 2= Which statement is true? 12 %## the statements are true 22 XML ta$s are case sensiti&e .

32 XML e#ements must "e proper#y nested 42 XML documents must ha&e a root ta$ 2> XML preser&es 6hite spaces 12 True 22 Ka#se 3@ *s this a E6e## formedE XML document? I?!m# &ersionPE12@E?J InoteJ Ito a$ePE2>EJTo&eICtoJ IfromJSaniICfromJ ICnoteJ 12 22 31 XML 12 22 Aes 3o #ements can "e empty True Ka#se 32 Which is not a correct name for an XML e#ement? 12 Ia## 3 are correctJ 22 I3oteJ 32 IOdo##arJ 42 Ih1J 33 Which is not a correct name for an XML e#ement? 12 I!m#documentJ 22 Iphone num"erJ 32 I<4do#arJ 42 %## 3 names are incorrect 34 XML attri"ute &a#ues must a#6ays "e enc#osed in 0uotes 12 True 22 Ka#se What does XSL stand for? 12 eXtra Sty#e Lan$ua$e 22 eXtensi"#e Sty#esheet Lan$ua$e 32 eXtensi"#e Sty#e Listin$ 42 eXpanda"#e Sty#e Lan$ua$e 34 What is a correct 6ay of referrin$ to a sty#esheet ca##ed Emysty#e2!s#E ? I?!m#Bsty#esheet typePEte!tC!s#E hrefPEmysty#e2!s#E ?J I#in1 typePEte!tC!s#E hrefPEmysty#e2!s#E CJ .

Isty#esheet typePEte!tC!s#E hrefPEmysty#e2!s#E CJ 3< Kor the XML parser to i$nore a certain section of your XML document5 6hich synta! is correct? 12 I'+D%T%J Te!t to "e i$nored IC'+D%T%J 22 I!m#L+D%T%M Te!t to "e i$nored NJ 32 I+D%T%J Te!t to "e i$nored IC+D%T%J 42 IOM+D%T%M Te!t to "e i$nored NNJ 3=2 XML is a acronym to 222 12 XML is a acronym to XML Mar1up Lan$ua$e2 22 True 32 Ka#se 3>2 Xm# "asic XML is a crossBp#atform5 soft6are and hard6are independent #an$ua$e for transmittin$ the information2 ?ence5 XML is a rep#acement for ?TML2 12 True 22 Ka#se 4@ Which of the fo##o6in$ statements are true? 12 XML is a su"set of SDML5 so e&ery &a#id XML document is a#so &a#id SDML document2 22 XML is a superBset of SDML5 so there are some &a#id XML documents that are not &a#id SDML documents2 32 XML "ecame the ne!t $eneration of SDML 6hich can support "inary data "#oc1s 42 XML cannot contain "inary data un#ess it is conforma"#y encoded2 412 What XML concept does the fo##o6in$ samp#e representL I?comment ?e##o5 Wor#dO ?J 12 %n e#ement 22 % comment 32 % processin$ instruction 42 This is not a 6e##Bformed XML samp#e 42 Which of the fo##o6in$ &a#ues are a##o6ed for the attri"ute Eencodin$E of the XML pro#o$? 12 (TKB= 22 (TKB14 32 (TK= 42 %S+** .

43 XML documents are composed of mar1up and content2 There are &arious 1inds of mar1up that can occur in an XML document2 Se#ect them from the fo##o6in$ choicesL 12 #ements 22 ntity Qeferences 32 +omments 42 'rocessin$ *nstructions 44 XML documents inc#ude the SDML dec#arations % True ) Ka#se 4.2 42 #ements ntity Qeferences +omments 'rocessin$ *nstructions Document Type Dec#arations SDML dec#aration . XML documents are composed of mar1up and content2 There are &arious 1inds of mar1up that can occur in an XML document2 Se#ect them from the fo##o6in$ choices 12 22 32 42 .