World No 1 Cert Guides: XML 1.1 and Related Technologies 000-142
World No 1 Cert Guides: XML 1.1 and Related Technologies 000-142
com
No Pass No Pay!
MCSE, CCNA, CCNP, OCP, CIW, JAVA, Sun Solais, C!ec"#oint
Wol$ No % Cet &ui$es
'M( %.% an$ )elate$
Tec!nologies
***+%,-
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Congatulations!
You have purchased a TestKingonline. tudy !uide.
This study guide is a co"plete collection o# $uestions and ans%ers that have &een developed &y our pro#essional '
certi#ied tea". You "ust study the contents o# this guide properly in order to prepare #or the actual certi#ication test. The average
ti"e that %e %ould suggest you #or studying this study guide is appro(i"ately )0 to 20 hours and you %ill surely pass your
e(a". *e guarantee it+
!,,- ./CK+
.ISC(AIME)
This study guide and0or "aterial is not sponsored &y1 endorsed &y or a##iliated %ith 2icroso#t1 Cisco1 ,racle1 Citri(1 C3*1
Chec4point1 5ovell1 un0olaris1 C*5A1 .631 3C1 etc. All trade"ar4s are properties o# their respective o%ners.
&uaantee
3# you use this study guide correctly and still #ail the e(a"1 send a scanned copy o# your o##icial score notice at7
ales8Test4ingonline.co"
*e %ill gladly re#und the cost o# this study guide or give you an e(change o# study guide o# your choice o# the 9ree.
This "aterial is protected &y copyright la% and international treaties. /nauthori:ed reproduction or distri&ution o# this
"aterial1 or any portion thereo#1 "ay result in severe civil and cri"inal penalties1 and %ill &e prosecuted to the "a(i"u"
e(tent possi&le under la%.
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Total No o/ 0uestions1+23
0uestion1 %
'M( $ata is stoe$ an$ etie4e$ 5it!in a elational $ata6ase /o a $ata+centic
a##lication 6y means o/ ma##ing 'M( sc!ema elements to $ata6ase ta6les. T!ee
ae concens t!at t!e
7ueies an$ u#$ates to t!is $ata6ase ae slo5 $ue to t!e num6e o/ 8oins e7uie$ in
t!e S0(. W!at is t!e 6est o#tion /o im#o4ing t!e stoage an$ etie4al o/ t!is 'M(
$ata9
A - Trans#or" ;2. docu"ents into canonical #or" &e#ore persisting.
< - 2odi#y the current ;2. sche"a &y converting ele"ents to attri&utes %here possi&le and re"ap
to ta&les in order to reduce the nu"&er o# ta&les and there#ore the nu"&er o# =oins
re$uired.
C - tore the ;2. data as C.,<s %ithout deco"posing the" into relational ta&les and provide an
>id? &ased loo4up.
- - 2odi#y the current ;2. sche"a &y "erging all o# the ;2. docu"ents into a "ain ;2.
docu"ent and $uery using ;6ath.
Ans5e1 :, .
0uestion1 -
A $e4elo#e 5is!es to ma"e an 'S(T tem#late moe o6ust 6y c!ec"ing a #aamete
#asse$ to it /o eos an$ 6oun$ay con$itions. T!e tem#late acce#ts a #aamete
o/ ty#e num6e. W!at con$ition 5ill NOT !a4e to 6e c!ec"e$9
A - nu"&er greater than allo%ed range <
- value o# 0
C - type o# the para"eter value -
- 3nteger nu"&ers
Ans5e1 C
0uestion1 ;
Calculating su6+totals /om an 'M( $ocument using 'S( tans/omation e7uies
s#ecial
consi$eations. W!ic! o/ t!e /ollo5ing o#tions is t!e 6est solution to sol4e t!is
#o6lem9
A + Ceate a /agment 4aia6le containing t!e 4alues to total% an$ t!en use t!e no$e+set<= 'S(T
e(tension and the ;6ath su"@AB #unction to calculate the value.
< - Create a special ;.T varia&le that contains the results o# an ;6ath $uery that per#or"s a
Cu"@AB o# the values to &e totaled.
C - /se ;.T recursion to de#ine a varia&le value that calculates the Cvalue-o#B the ele"ents to &e
su&-totaled.
- - /se ;.TC to preco"pile a custo" Dava translet that %ill e(tract the values to &e totaled and
returns the su" o# those values. This return value is then used in an ;. varia&le #or output.
Ans5e1 A
Copyrights 2005-2006 TestKingonline All Rights Reserved.
0uestion1 ,
Analy>e t!e /ollo5ing 'M( an$ .T. /agments t!at im#lement I., I.)E? an$ I.)E?S
use$ to
lin" manage an$ su6o$inate elations!i#s. W!ee is t!e eo in t!e im#lementation
o/ t!is
logic9
em#loyees.$t$1
@!ATT(IST em#loyee em#i$ I. APE0BIPE.C
@!ATT(IST em#loyee mgi$ I. AIMP(IE.C
@!ATT(IST em#loyee mg I.)E? AIMP(IE.C
@!ATT(IST em#loyee su6s I.PE?S
AIMP(IE.C
em#loyees Dml1
@em#loyeesC
@em#loyee em#i$EFe%F mgi$EFm%F su6sEFe-FC@nameCSo6 Smit!@GnameC@Gem#loyeeC
@em#loyee em#i$EFe-F mgi$EFm-F mgEHm%H su6sEFe;
e,FC@nameCCaolJones @GnameC @Gem#loyeeC
@em#loyee em#i$EFe;F mgEFm-FC@nameCKeit! Matin@GnameC@Gem#loyeeC
@em#loyee em#i$EFe,F mgEFm-FC@nameCMonica
Williams@GnameC@Gem#loyeeC @Gem#loyeesC
A - The su&s 3-RE9 is #or"atted i"properly #or the second e"ployee record. < -
The "grid "ust &e de#ined as CFREG/3RE-B in the -T-.
C - The e"pid and "grid attri&utes con#lict as an ele"ent "ay only have a single 3- attri&ute. - -
9irst t%o records are invalid as each e"ployee record "ay have either e"pid or "grid attri&ute1 &ut
not &oth.
Ans5e1 C
0uestion1 I
Consi$e t!e /ollo5ing 'M( $ocument
@9Dml 4esionEF%.*F enco$ingEFBT?+
3F9C @:oo"sC
@:oo" I.EF**% JC
@TitleC?in$ing Ne5
Wol$@GTitleC
@Aut!oCJone Smit!@GAut!oC
@G:oo"C
@:oo" I.EF*3*FC
@TitleCKo5 to
Pogamming@GTitleC
@Aut!oCTom Alston@GAut!oC
@G:oo"C
@G:oo"sC
An 'M( $e4elo#e 5ants to geneate a KTM( $ocument t!at lists t!e I., title an$
aut!o ot a 6oo" in a KTM( ta6le. W!ic! o/ tI ac!ie4e t!e $esie$ esult9
A - HI("l versionJB).0B encodingJB3,-KK5L-)BIM
H(sl7stylesheet versionJB).0B ("lns7(slJBhttp700%%%.%N.org0)LLL0;.0Trans#or"BM
H(sl7te"plate "atchJB<oo4sBM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Hht"lM
H&odyM
Hta&le %idthJB)00OB &orderJB)CM
H(sl7#or-each selectJB0BM
HtrM
HtdMH(sl7value-o# selectJB83-B0MH0tdM
HtdMH(sl7value-o# selectJBTitleB0MH0tdM
HtdMH(sl7value-o# selectJBAuthorB 0MH0tdM
H0trM
H0(sl7#or-eachM
H0ta&leM
H0&odyM
H0ht"lM
H0(sl7 te"plateM
H0(sl7stylesheetM
< - HI("l versionJB).0B encodingJB3,-KK5L-)BIM
H(sl7stylesheet versionJB).0B ("lns7(slJBhttp700%%%.%N.org0)LLL0;.0Trans#or"BM
H(sl7te"plate "atchJB0BM
Hht"lM
H&odyM
Hta&le %idthJB)00OB &orderJB)BM
H(sl7#or-each selectJB<oo4s0<oo4BM
HtrM
HtdMH(sl7value-o# selectJB83-B0MH0tdM
HtdMH(sl7value-o# selectJBTitleB 0MH0tdM
HtdMH(sl7value-o# selectJBAuthorB 0MH0tdM
H0trM
H0(sl7#or-eachM
H0ta&leM
H0&odyM
H0ht"lM
H0(sl7te"plateM
H0(sl7stylesheetM
C - HI("l versionJB).0B encodingJB3,-KK5L-)BIM
H(sl7stylesheet versionJB).0B ("lns7(slJBhttp700%%%.%N.org0)LLL0;.0Trans#or"BM
H(sl7te"plate "atchJB0BM
Hht"lM
H&odyM
Hta&le %idthJB)00OB &orderJB)BM
H(sl7#or-each selectJB<oo4s0<oo4BM
HtrM
HtdMH(sl7value-o# selectJB3-B0MH0tdM
HtdMH(sl7value-o# selectJB.B 0MH0tdM
H0trM
H0(sl7#or- eachM
H0ta&leM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
H0&odyM
H0ht"lM
H0(sl7te"plateM
H0(s37stylesheetM
- - HI("lversionJB).0B encodingJBl,-KK5L-)BIM
H(sl7stylesheet versionJB).0B ("lns7(slJBhttp70t%%%.%N org0)LLL0;.0Trans#or"BM
H(sl7te"plate "atchJB<oo4sBM
Hht"lM
H&odyM
Hta&le %idthJB)00OB &orderJB)CM
H(sl7#or-each selectJB<oo4BM
HtrM
HtdMH(sl7value-o# selectJB3-B0MH0tdM
HtdMH(sl7value-o# selectJBTitleB 0MH0tdM
HtdMH(sl7value-o# selectJBAuthorB 0MH0tdM
H0trM
H0(sl7#or-eachM
H0ta&leM
H0&odyM
H0ht"lM
H0(sl7te"plateM
H0(sl7stylesheetM
Ans5e1 :
0uestion1 L
&i4en t!e /ollo5ing .T. line, 5!ic! o/ t!e /ollo5ing 'M( $ocuments is
4ali$9 @!ATT(IST em#loyee em#Num I. A)E0BI)E.C
A - He"ployee e"p5u"JBa&cdeB0M
< - He"ployee e"p5u"JB)2NP5B0M C
- He"ployee e"p5u"JBB0M
- - He"ployee e"p5u"JBa&cdeB0M Q He"ployee e"p5u"JBa&cdeB0M
Ans5e1 A
0uestion1 M
W!at 5ill t!e /ollo5ing 'S(T sni##et etun, i/ t!e 4alue o/ #aamete i is
Je$i4i$eF9 @Dsl1tem#late nameEF.oFC
@Dsl1#aam nameEFiFGC
@Dsl14aia6le nameEF8F selectEFsting+
lengt!<Ni=FGC @Dsl1 c!ooseC
@Dsl15!en testEF N8 @ -
JC
@Dsl14alue+o/
selectEFNiFGC
@Dsl15!enC
@Dsl1ot!e5iseC
Copyrights 2005-2006 TestKingonline All Rights Reserved.
@Dsl14aia6le nameEF"F selectEFOoo<N8 $i4
-=FGC @Dsl1call+tem#late nameEF.oFC
@Dsl15it!+#aam nameEFiF selectEsu6sting<Ni,
%,N"=FGC @GDsl1call+tem#lateC
@GDsl1 call+tem#late nameEF.oFC
@GDsl15it!+#aam nameEFiF selectEFsu6sting<Ni, N"P% ,
N"P%=FGC @GDsl1call+tem#lateC
@GDsl1ot!e5ise
C
@GDsl1c!ooseC
@GDsl1tem#late
C
A - rreeddiivviiddeerr <
- rediv
C - redivider
- - rdvdr
Ans5e1 C
0uestion1 3
W!at is t!e esult o/ t!e /ollo5ing 'S(T tem#late i/ t!e 4alue o/ " is t!e
sting Q/ooH9 @Dsl1tem#late nameEF.oFC
@Dsl1#aam nameEH8F
selectEF;GC @Dsl1#aam
nameEF"FGC
@Dsl1i/ testEN8FC
@Dsl14alue+o/ selectEFN"FGC
@Dsl1call+tem#late nameEF.oFC
@Dsl15it!+#aam nameEF8F selectEFN8 +
% JGC @Dsl15it!+#aam nameEF"F
selectEFN"FGC @GDsl1 call+tem#lateC
@GDsl1i/C
@GDsl1tem#lateC
A - >#oo?
< - >#oo? @repeated until stac4 over#lo%A C -
>#oo#oo#oo?
- - >#oo #oo #oo?
Ans5e1 C
0uestion1 2
In a museum, 'M( $ata stoe$ on #o5e/ul se4es is se4e$ to customes t!oug! We6
6o5ses unning on net5o"+connecte$ com#utes. T!e #e/omance o t!ose
com#utes is limite$. W!ic! o t!e /ollo5ing a##oac!es 5ill 6est suit t!e 'M(
tans/omation9
A - 6ass &oth the ;2. data and stylesheets to %e& &ro%sers.
< - ,utput ;RT2. via a server-side ;. trans#or"ation.
Copyrights 2005-2006 TestKingonline All Rights Reserved.
C - /se only a su&set or the ;RT2. and use 9or"at ,&=ects to apply style.
- - Trans#or" the ;2. data into the open #or"at docu"ent and display.
Ans5e1 :
0uestion1 %*
W!ic! 'Pat! aDis 6elo5 may 6e $esci6e$ as Jall no$es t!at contain t!e conteDt
no$e, 6ut not t!e conteDt no$e itsel/9F
A - ancestor77
< - ancestor-or-sel#77
C - na"espace77
- - preceding77
Ans5e1 A
0uestion1 %%
An Intanet We6 a##lication #o4i$es ne5s /o t!ousan$s o/ uses insi$e one com#any. T!e
a##lication gets 'M( $ata /om a $ata6ase an$ t!en tans/oms t!e $ata into KTM( 5it!
se4esi$e 'S(T. Cuently t!e 5e6 a##lication #e/oms #ooly. W!ic! o/ t!e /ollo5ing
actions s!oul$
t!e a##lication $e4elo#e ta"e to a$$ess t!e #o6lem9
A - /pdate the data&ase to a higher version.
< - /se %ell #or"ed ;RT2. tags in the application.
C - upply the ;2. data and the stylesheet to *e& &ro%sers. - -
/se ;.-9, to "a4e the trans#or"ation.
Ans5e1 C
0uestion1 %-
W!ic! o/ t!e /ollo5ing is a tait t!at $istinguis!es 'S(T -.* /om 'S(T % .*9
A - (sl7 #or-each in ;.T 2.0 supports ar&itrar0 se$uences in addition to node sets.
< - (sl7value-o# in ;.T 2.0 includes an attri&ute called Cdeli"iterB that allo%s deli"ited
se$uences.
C - (sl7varia&le in ;.T 2.0 includes an attri&ute called CtipeB to indicate type.
- - (sl7%ith-para" in ;.T 2.0 does notthro%an error i# that para"eter is not de#ined in the called
te"plate.
Ans5e1 A
0uestion1 %;
An online 6oo"stoe oRes se4ices t!at ena6les customes to 4ie5 t!e online e:oo"s 5it! a
4aiety o/ We6 6o5ses an$ o$e !ig! 7uality !a$ co#ies on $eman$. I/ t!e
6oo"stoe stoes all
t!e 6oo" contents 5it! 'M( /omat, 5!ic! o/ t!e /ollo5ing en$eing a##oac!es is t!e
most
suita6le9
Copyrights 2005-2006 TestKingonline All Rights Reserved.
A - *hen &ro%sers re$uest and custo"ers order hard copies1 trans#or" the ;2. data %ith ;.9, and
then convert the #ile into 6-9 #or vie%ing and printing.
< - *hen &ro%sers re$uest and custo"ers order hard copies1 render the ;2. data %ith C and
then use the #ile #or vie%ing and printing.
C - *hen &ro%sers re$uest1 render the ;2. data %ith C. *hen custo"ers order hard copies1
trans#or" the ;2. data %ith ;.-9, and then convert the #ile into 6-9 #or printing.
- - *hen &ro%sers re$uest1 render the ;2. data %ith ;.-9, and then convert the #ile into 6-9 #or
vie%ing. *hen custo"ers order hard copies1 trans#or" the ;2. data %ith C and then
use the #ile #or printing.
Ans5e1 C
0uestion1 %,
T!e lin" element in t!e /ollo5ing 'M( /agment is t!e conteDt no$e. Its taget
atti6ute is stoe$ 5it!in t!e Dsl14aia6le lin"Taget. W!at 'Pat! eD#ession 5ill Sn$
t!e #age element 5!ose i$ atti6ute 4alue is $esci6e$ 6y t!e 4alue o/ lin"Taget9
@siteC
@#age i$EF***FGC
@#age i$EF**%FC
@#age i$EF**%T***FC
@lin"
tagetEF**;T***FGC
@G#ageC
@#age
i$EF**%T**%FGC
@G#ageC
@#age i$EF**-FGC
@#age i$EF**;FC
@#age
i$EF**;T***FGC
@#age
i$EF**;T**%JGC
@G#ageC
@GsiteC
A - .00pageS8id J Tlin4TargetU
< - .0.0pageS8id J >00N?U0pageS8id J lin4TargetU C
- 00pageS8id J Tlin4TargetU
- - ancestor77page0ancestor77page0child77page0child77pageSid J Tlin4TargetU
Ans5e1 C
0uestion1 %I
W!ic! o/ t!e /ollo5ing statements ega$ing CSS tans/omation o/ 'M( is 4ali$9
A - 3t can &e used to render ;2. into 6-9.
< - 3t can render ;2. into a #or"at appropriate #or printing.
C - 3t "ay only &e applied to %ell #or"ed ;RT2. docu"ents.
- - 3t can "erge "ultiple ;2. docu"ents into a single ;RT2. #or &ro%ser rendering.
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Ans5e1 :
0uestion1 %L
W!ic! t5o o/ t!e /ollo5ing may NOT 6e neste$ 5it!in a C.ATA section9
A - RT2. docu"ents
< - Davascript source
C - ,ther C-ATA sections
- - The ;2. escape characters @H1 M1 '1 >1 andBA E -
;.T that needs to &e processed
Ans5e1 C, E
0uestion1 %M
W!ic! o/ t!e /ollo5ing ans5es 6est $eSnes t!e '?oms $esign goal9
A - /tili:es e(ternal -T- #or #ield types and value li"its.
< - Encapsulates all Davacript code %ithin data ele"ents.
C - -e#ines co"ple( input controls &ased on assigned che"a. - -
eparates the #or"s content #ro" presentation.
Ans5e1 .
0uestion1 %3
W!at is t!e coect 4alue /o t!e matc! atti6ute o/ t!e Dsl1tem#late 6elo5 to select
all elements 5it!in an 'M( $ocument9
@Dsl1tem#late matc!EFFC
@Dsl14alue+o/
salectEFname<=FGC
@Dsl14alue+o/ selectEFUi$FGC
@Dsl1a##ly+tem#latesGC
@GDsl1tem#lateC
A - node@A
< -V0V
C - 00
- - 0
Ans5e1 A
0uestion1 %2
An a##lication nee$s to #ocess 'M( $ocuments containing $ata etie4e$ /om a
legacy system. Some o/ t!e $ocuments use c!aacte sets 5!ic! ae not su##ote$ 6y
t!e 'M( #ase. W!ic! o/ t!e /ollo5ing is t!e 6est solution to a$$ess t!is #o6lem9
A - 3"ple"ent a custo" parser to handle the legacy character sets.
< - 3"ple"ent a pre-processor to convert docu"ents %ith unsupported characters sets to /T9-K.
Copyrights 2005-2006 TestKingonline All Rights Reserved.
C - -e#ine t%o ;2. che"a docu"ents #or each o# the character sets.
- - Add the de#initions o# the legacy character sets to the parser?s con#iguration #ile.
Ans5e1 :
0uestion1 -*
W!ic! o/ t!e /ollo5ing is NOT inclu$e$ 5it!in a geneate$ JA': -.* #ac"age9
A - A na"e1 %hich "ay &e derived directly #ro" the ;2. na"espace /R3.
< - A set o# Dava ele"ent inter#aces representing ele"ent declarations occurring %ith the -T-. C -
An ,&=ect9actory class containing an instance #actory "ethod #or each Dava content and ele"ent
inter#ace.
- - A Davadoc #or the pac4age.
Ans5e1 :
0uestion1 -%
.ata containe$ in an 'M( $ocument must 6e en$ee$ into KTM( /o $is#lay in a
clientHs We6
6o5se. Potions o/ t!e $ata ae esticte$. )esticte$ $ata must ne4e 6e sent to a
use t!at
$oes not !a4e #i4ilege to access it. Bsing 'S(T, 5!at is t!e 6est a##oac! to
en$eing t!e
$ata9
A - /se ;.T on the server to re"ove the restricted data and trans#or" the ;2. to RT2. on the
client side.
< - /se ;2. security to secure the parts o# the ;.T docu"ent that trans#or" the restricted data. C -
/se ;.T to trans#or" the ;2. to RT2. on the client side.
< - /se ;.T on the server to re"ove the restricted data and trans#or" the ;2. to RT2. on the
server side.
Ans5e1 .
0uestion1 --
A##lying a $igital signatue to an 'M( $ocument consists o/ 5!ic! action9
A - Encrypting the docu"ent using a pu&lic 4ey #ro" a Certi#icate Authority @CAA. < -
Encrypting the docu"ent using a private 4ey.
C - Calculating a hash o# the docu"ent and encrypting the hash value using a private 4ey. - -
Associating the docu"ent to a custo" 6!6 na"espace.
Ans5e1 C
0uestion1 -;
An a##lication #ases lage 'M( $ocuments ecei4e$ 4ia an KTTP connection. T!e
$ata $oes not
nee$ to 6e mo$iSe$. T!e 4olume o/ taVc is !ig! an$ #e/omance is an issue. W!ic!
o/ t!e
/ollo5ing tec!nologies s!oul$ 6e use$ to #ase t!e incoming $ocument9
Copyrights 2005-2006 TestKingonline All Rights Reserved.
A - -,2
< - A;
C - ;6ath
- - ;.T
Ans5e1 :
0uestion1 -,
W!ic! t5o o/ t!e /ollo5ing c!aacteistics o/ #ocessing 'M( $ocuments 5ill lea$ a
$e4elo#e to use SA' instea$ o/ .OM in o$e to ac!ie4e goo$ #e/omance9
A - The docu"ent structure is changed.
< - The docu"ent si:e is large.
C - -ocu"ents "ust &e "erged.
- - Walidation rules are co"ple( and detailed. E -
6arsing speed is critical.
Ans5e1 :, E
0uestion1 -I
T5o tuste$ a##lications eDc!ange a !ig!+4olume o/ $ata as 'M(. T!e content o/ t!e
elements in t!e 'M( $ocument is unstuctue$ teDt an$ t!e $ocument must 6e
4ali$ate$. W!ic! o/ t!e
/ollo5ing 5ill #o$uce t!e 6est #e/omance9
A - 5a"espaces should &e used that clarity the "eaning o# each ele"ent.
< - The docu"ent should use attri&utes instead o# ele"ents %herever possi&le.
C - The structure o# the docu"ent should &e de#ined using -T-.
- - The structure o# the docu"ent should &e de#ined using ;2. che"a.
Ans5e1 C
0uestion1 -L
W!ic! t5o o/ t!e /ollo5ing s!oul$ a $e4elo#e consi$e to im#o4e t!e
#e/omance o/ 5e6 a##lications t!at tans/om 'M( $ocuments9
A - /se A; instead o# -,2.
< - /se ;.TC.
C - /se a &inary search o# the A; docu"ent tree. - -
/se na"espaces.
E - -o not validate instance docu"ents #ro" e(ternal sources.
Ans5e1 A, :
0uestion1 -M
A Ja4a+6ase$ a##lication ecei4es manually+5itten 'M( $ocuments in $iReent
/omats. Eac! $iReent /omat is 5ell $ocumente$ using 'M( Sc!ema. B#on
ecei4ing a $ocument, t!e
Copyrights 2005-2006 TestKingonline All Rights Reserved.
a##lication1
+ Tans/oms t!e $ocument into a common /omat
+ Pases t!e $ocument 5it! a 4ali$ating #ase
+ VeiSes t!e stuctue o/ t!e $ocument
+ Tans/oms t!e $ocument into a legacy /omat an$ sen$s to a se#aate
legacy system /o /ut!e #ocessing.
W!ic! o/ t!e /ollo5ing ste#s is (EAST necessay9
A - Trans#or"ing the docu"ent to a co""on #or"at. < -
Walidating the docu"ent.
C - Weri#ying the structure o# the docu"ent.
- - Trans#or"ing the docu"ent into the legacy syste"?s #or"at.
Ans5e1 C
0uestion1 -3
An a##lication sa4es an$ estoes intenal #ogam state acoss in4ocations. T!e oWine state
esi$es in an 'M( tile. Only t!at one a##lication ea$s an$ 5ites t!e Sle. T!e
$esigne 5ote a constaint sc!ema /o t!e 'M(, an$ !a$ t!e a##lication 4ali$ate
t!e state Sle u#on in#ut. W!ic! o/ t!e /ollo5ing in$icates 5!y9
A - To detect data corruption.
< - To auto"atically convert string #ields to nu"eric. C -
To opti"i:e parsing.
- - To &ind the #ile to a set o# state o&=ects.
Ans5e1 A
0uestion1 -2
A .T., as o##ose$ to an 'M( sc!ema, o/ten #o4i$es a suVcient le4el o/ 4ali$ation
/o 5!ic! o/ t!e /ollo5ing9
A - A narrative docu"ent.
< - An application record.
C - A C stylesheet.
- - An ;.T stylesheet.
Ans5e1 A
0uestion1 ;*
A sc!ema 5itten in W;C Sc!ema (anguage $eSnes a #esonHs /ull name as a
com#leD ty#e com#ose$ o/ t!ee c!il$ elements1 Sst name, mi$$le name, an$
last name. Ko5 s!oul$ t!e sc!ema aut!o s#eci/yH t!e mi$$le name element as
o#tional9
A - et attri&ute "in,ccursJB0B on the ele"ent.
< - et attri&ute "a(,ccursJB-)B on the ele"ent.
Copyrights 2005-2006 TestKingonline All Rights Reserved.
C - et the "ini"u" length o# the ele"ent?s string type to :ero. - -
/se the I operator in the ele"ent declaration.
Ans5e1 A
0uestion1 ;%
?o t!e gi4en 'M( /agment
@EDam#le Dmlns1 names#ace % EJ!tt#1GG555.5;.ogF
DminsEF!tt#1GG555.i6m .comFC
@item % a$$ess %EFBSF names#ace%1a$$ess-EFBKFGC
@GEDam#leC
W!ic! names#ace $oes t!e atti6ute a$$ess % 6elong to9
A - http700%%%.%N.org.
< - http700%%%.i&".co".
C - http700%%%.%N.org0na"espace.
- - it does not &elong to any na"espaces.
Ans5e1 .
0uestion1 ;-
&i4en t!e /ollo5ing .T. lines, 5!ic! 'M( $ocument /agment 5oul$
6e 4ali$9 @!E(EMENT #eson <name, #o/essionX=C
@!E(EMENT name <SstTname,
lastTname=C
@!E(EMENT SstTname <APC.ATA=C
@!E(EMENT lastTname <APC.ATA=C
@!E(EMENT #o/ession <APC.ATA=C
A - HpersonM
Hpro#essionMco"puter scientistH0pro#essionM
Hna"eM
H#irstXna"eMAlanH0#irstXna"eM
HlastXna"eMTuringH0lastXna"eM
H0na"eM
H0personM
< - HpersonM
Hna"eM
H#irstXna"eMAlan H0#irstXna"eM
HlastXna"eMTuring H0lastXna"eM
H0na"eM
%as a Hpro#essionMCo"puter cientistH0pro#essionM
H0personM
C - HpersonM
Hna"eM
H#irstXna"eMAlanH0#irstXna"eM
HlastXna"eMTuringH03astXna"eM
H0na"eM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Hpu&licationM,n Co"puta&le 5u"&ersH0pu&licationM
H0personM
- - HpersonM
Hna"eM
H#irstXna"eMAlan H0#irstXna"eM
HlastXna"eMTuringH03astXna"eM
H0na"eM
H0personM
Ans5e1 .
0uestion1 ;;
A $e4elo#e ceates a tile name$ sam#le.D!tml. W!ic! o/ t!e /ollo5ing is t!e
6est eDam#le o/ #o#e 'KTM( Sle content9
A - H+-,CTY6E ht"l 6/<.3C C-00*NC00-T- ;RT2. ).0 Transitional00E5B
C-T-0(ht"l-transitional.dtdBM
Hht"l ("lnsJBhttp700%%%.%N.org0)LLL0(ht"lBM
HheadM
HtitleM;RT2. a"pleH0titleM
H0headM
H&ody &gcolorJBF####ddBM H#or" onclic4JBalert@?Clic4?ABM
Hinput typeJBchec4&o(B idJBid)B
na"eJBver&oseB valueJBver&oseB chec4edJBchec4edB 0M
H0#or"M
H0&odyM
H0ht"lM
< - H+-,CTY6E ht"l 6/<.3C C-00*NC00-T- ;RT2. ).0 Transitional00E5B
C-T-0(ht"l-ransitional.dtdBM
HRT2. ("lnsJBhttp700%%%.%N.org0)LLL0ht"lBM
HREA-M
HT3T.EM;RT2. a"pleH0T3T.EM
H0REA-M
H<,-Y &gcolorJBF####ddBM
H9R,2 onclic4JBalert@?Clic4?ABM
Hinput typeJBchec4&o(B idJBid)B
na"eJBver&ose valueJBver&oseB chec4edJBchec4edB 0M
H09R,2M
H0<,-YM
H0RT2.M
C - H+-,CTY6E ht"l 6/<.3C C-00*NC00-T- ;RT2. ).0 Transitional00E5B
C-T-0(ht"l-transitional.dtdBM
Hht"lM
HheadM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
HtitleM;RT2. a"pleH0titleM
H0headM
H&ody &gcolorJBF####ddBM
H#or" onc3ic4JBa3ert@?C3ic4?ABM
Hinput typeJBchec4&o(B idJBid)B
na"eJBver&oseB valueJBver&oseB chec4edJB)B 0M
H#or"M
H0&odyM
H0ht"lM
- - H+-,CTY6E ht"l 6/<.3C C-00*NC00-T- ;RT2. ).0 Transitional00E5B
C-T-0(ht"l-transitional.dtdBM
H(ht"l ("lns7(ht"lJBhttp700%%%.%N.org0)LLL0(ht"lBM
H(headM
HtitleM;RT2. a"pleH0titleM
H0(headM
H(&ody &gcolorJBF####ddBM
H(#or" onclic4JBalert@?Clic4?ABM
H(input typeJBchec4&o(B idJBid)B
na"eJBver&oseB valueJBver&oseB chec4edJBchec4edB 0M
H0(#or"M
H0(&odyM
H(ht"lM
Ans5e1 A
0uestion1 ;,
Consi$e t!e /ollo5ing 'M( $ocument1
@9Dml 4esionEF%.*F enco$ingEFBT?+3F9C
@ns%1Com#anyl Dmlns1ns%EF!tt#1GG555.acom#any.comGF
DmlnsEF!tt#1GG555.6com#any.comGFC
@Com#any-C
@Com#any;
DmlnsEF!tt#1GG555.ccom#any.comGFC
@Com#any, I.EF,FGC
@GCom#any;C
@GCom#any-C
@Gns%1Com#any%C
W!ic! o/ t!e /ollo5ing statements is tue9
A - The usage o# na"espace is not correct1 de#ault na"espace can?t &e changed.
< - 5a"espace o# Ele"ent Co"panyN &elongs to http700%%%.&co"pany.co"0.
C - 5a"espace o# Ele"ent Co"panyP &elongs to http70t%%%.cco"pany.co"0.
- - 5a"espace o# Ele"ent Co"pany2 &elongs to http700%%%.aco"pany.co"0.
Ans5e1 C
0uestion1 ;I
Copyrights 2005-2006 TestKingonline All Rights Reserved.
W!ic! o/ t!e /ollo5ing elements 5ill $iectly eD#ess a logical su6set o/ an eDisting
ty#e $eclae$ in an 'M( sc!ema $ocument9
A - (s7restriction
< - (s7e(tension
C - (s7include
- - (s7i"port
Ans5e1 A
0uestion1 ;L
A gaage $oo is com#ose$ o/1
%= a set o/ /ou 5!ite sections,
-= a s#ing "it,
;= a tac", an$
,= a $oo o#ene.
W!ic! o/ t!e /ollo5ing 'M( /agments 6est mo$els t!is $oo9
A - HdoorM
Hopener "odelJB6ic4er/pperBM
Htrac4 radiusJB)2BM
Hspring-4it 4indJBtorsionBM
Hsection %indo%JByesB colorJB%hiteB0M
Hsection colorJB%hiteB0M
H0spring-4itM
H0trac4M
H0openerM
H0doorM
< - HdoorM
HsectionsM
Hopener "odelJB6ic4er/pperB 0M
Hspring-4it 4indJBtorsionB 0M Htrac4
radiusJB)2B 0M
Hsection %indo%JByesB colorJB%hiteB0M
Hsection colorJB%hiteB0M
H0sectionsM
H0doorM
C - HdoorM
HsectionsM
Hsection %indo%JByesB colorJB%hiteM
Hsection colorJB%hiteBM
H0sectionsM
Htrac4 radiusJB)2B 0M
Hspring-4it 4indJBtorsionBM
Hopener "odelJ6ic4er/pperBM
H0doorM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- - HdoorM
HsectionsM
Hsection %indo%JByesB colorJB%hiteB0M
Hsection colorJB%hiteB0M
H0sectionsM
Htrac4 radiusJB)2B 0M
Hspring-4it 4indJBtorsionB 0M
Hopener "odelJB6ic4er/pperB 0M
H0doorM
Ans5e1 .
0uestion1 ;M
Cuently, most We6 /ont+en$ ma"u# is not 'M(. A We6 seac! /o Jca 5as!F yiel$s
$is#aate esults a6out a mo4ie an$ a6out cleaning automo6iles. T!e seac! engine
#ooly $istinguis!es
among "in$s o/ esults. W!at is t!e most li"ely cause o/ t!e #o6lem9
A - Current search engines inde( RT2. poorly.
< - *-. "ar4up "itigates the pro&le"1 &ut #e% pages use it.
C - <ro%ser design trade-o##s ignore se"antic in#or"ation.
- - A #ront-end RT2. docu"ent conveys no data se"antics.
Ans5e1 .
0uestion1 ;3
Assume t!at a W;C 'M( Sc!ema (anguage $ocument uses t!e /ollo5ing #eSD
$eclaation1
@Ds1sc!ema Dmlns1DsEF!tt#1GG555.5;.ogG-**%G'M(Sc!emaFC
W!ic! o/ t!e /ollo5ing s!oul$ 6e use$ to $iectly $eSne a ty#e in t!at sc!ema9
A - (s7se$uence
< - (s7type
C - (s7union
- - (s7intersection
Ans5e1 C
0uestion1 ;2
Se4eal small 'M( $ocuments nee$ to 6e mege$ an$ tans/ome$ into a single
'KTM( esult. W!ic! o/ t!e /ollo5ing actions is 6est to accom#lis! t!is tas"9
A - 6arse each docu"ent using -,21 and i"port the results into a co""on -,2. 6ass the
resulting -,2 to an ;.T trans#or"er to convert to ;RT2..
< - /se an e(ternal utility to concatenate all the ;2. docu"ents and pass the resulting ;2. to an
;.T trans#or"er to convert to ;RT2..
C - /se ;. Cdocu"ent@AB #unction to "erge all docu"ents1 and then per#or" a nor"al
trans#or"ation to convert to ;RT2. output.
Copyrights 2005-2006 TestKingonline All Rights Reserved.
- - /se ;Guery to e(tract the entire contents o# each docu"ent into a single -,21 %hich %ill
then &e passed into an ;.T trans#or"er to convert to ;RT2..
Ans5e1 A
0uestion1 ,*
An auto #ats su##lie stoes custome $ata as 'M( in a $ata6ase in t!e
/ollo5ing /omat1 @custome i$EF-C
@nameCS5ellMo6ile@GnameC
@a$$essC@cityCKansas
City@GcityC@stateCMO@GstateC@Ga$$essC @#uc!ase
i$EF%-,F totalCostEF23,.;*FC
@item i$EF%-;F 7uantityEF-MF
GC @item i$EF,ILF
7uantityHEF%;F GC
@G#uc!aseC
@GcustomeC
Assume t!at t!e /unction 'M(CO(BMN<Fcust.$ataF= etuns t!e 'M( $ocuments
/om t!e $ata6ase. W!ic! o/ t!e /ollo5ing '0uey statements etuns t!e names
o/ t!e customes 5!o !a4e #uc!ase$ item % -;9
A - #or Ti in ;2.C,./[email protected]"er0purchase0ite"
%here Ti08id J )2N
return ;2.C,./[email protected]"er0na"e <
- #or Tc in ;2.C,./[email protected]"er
%here Tc0purchase0ite"08id J )2N
return T c0na"e
C - #or Tc in ;2.C,./[email protected]
%here Tc0custo"er0purchase0ite"08id J )2N
return c0na"e
- - #or Tc in ;2.C,./[email protected]"er0purchase0ite"S8id J )2NU
return Tc0na"e
Ans5e1 :
0uestion1 ,%
&i4en t!e /ollo5ing 'M( Sc!ema $ocument, 5!ic! o/ t!e /ollo5ing 'M(
$ocuments is 4ali$9
@Ds$1sc!ema Dmlns1Ds$EF!tt#1GG555.5;.ogG-**%G'M(Sc!emaFC
@Ds$1element nameEFcouseFC
@Ds$1com#leDTy#eC@Ds$1se7ue
nceC @Ds$1element
e/EFnameFGC
@Ds$1element nameEFlocationF ty#eEFDs$1stingFGC
@Ds$1element maDOccusEFun6oun$e$F minOccusEF%F
e/EFstu$entFGC@GDs$1se7uenceC @Ds$1atti6ute nameEFco$eF
ty#eEFDs$1stingF useEFo#tionalFGC@GDs$1com#leDTy#eC
@GDs$1elementC
@Ds$1element nameEFnameF ty#eEFDs$1stingFGC
@Ds$1element
nameEFstu$entFC@Ds$1com#leDTy#eC@Ds$1se7uenceC
@Ds$1element maDOccusEFlF minOccusEF*F
e/EFnameFGC
Copyrights 2005-2006 TestKingonline All Rights Reserved.
@GDs$1se7uenceC@GDs$1
com#leDTy#eC@GDs$1elementC @GDs$1sc!emaC
A - Hcourse codeJBAA)2NBM
Hna"eMAdvanced counting techni$uesH0na"eM
HlocationM6hoeni(H0locationM
HstudentMHna"eM<o& <o&&ersonH0na"eMH0studentM
H0courseM
< - Hcourse codeJBAA)2NBM
Hna"eMAdvanced counting techni$uesH0na"eM
HlocationM6hoeni(H0locationM
H0courseM
C - Hcourse codeJBAA)2NB locationJB6hoeni(BM
Hna"eMAdvanced counting techni$uesH0na"eM
HstudentMHna"eM<o& <o&&ersonH0na"eMH0studentM
H0courseM
- - Hcourse codeJBAA)2NBM
HlocationM6hoeni(H0locationM
Hna"eMAdvanced counting techni$uesH0na"eM
HstudentMHna"eM<o& <o&&ersonH0na"eMH0studentM
H0courseM
Ans5e1 A
0uestion1 ,-
&i4en t!e /ollo5ing 'M( instance $ocument /agment1
@county nameEFA/g!anistanF egionEFAsiaF aeaEFLI-***F
#o#ulationEF-I3;3M2MFGC
@county nameEFAl6aniaF egionEFEuo#eF aeaEF-3M,3F
#o#ulationEF;,2*,;IFGC
Y
Bsing .OM-, 5!ic! o/ t!e /ollo5ing 5ill etie4e t!e name o/ t!e last county9
A - 5ode.ist nodes J docu"ent.getEle"ents<yld@BcountryBAY tring lastcountry5a"e J
nodes.ite"@nodes.get.ength@A )A.getAttri&[email protected]"edlte"@Bna"eBAY
< - 5ode.ist nodes J docu"ent.getEle"ents<yld@CcountryBAY tring lastCountry5a"e J
nodes.ite"@[email protected]&[email protected]"edlte"@Bna"eBAY
C - 5ode.ist nodes J docu"ent.getEle"ents<yTag5a"e@BcountryBAY tring lastCountry5a"e J
nodes.ite"@nodes.get.ength@A-)A.getAttri&[email protected]"edlte"@Bna"eBAY
- - 5ode.ist nodes J docu"ent.getEle"ents<yTag5a"e@BcountryBAY tring lastCountry5a"e J
nodes.ite"@[email protected]&[email protected]"5a"ed@Bna"eBAY
Ans5e1 C
0uestion1 ,;
W!ic! t5o o/ t!e /ollo5ing s!oul$ 6e consi$ee$ to incease #e/omance 5!en
using 'S(T to #ocess an 'M( instance $ocument9
Copyrights 2005-2006 TestKingonline All Rights Reserved.
A - /se de#ault attri&utes.
< - /se (sl74ey ele"ents and the 4ey@A #unction to retrieve node sets.
C - /se C00B @descendant a(esA patterns near the root o# a large docu"ent.
- - *here possi&le1 use pattern "atching rather than (sl7i# or (sl7%hen state"ents.
E - Convert / AC33 @C/-AC33BA docu"ents to /nicode @C/T9-KB or C/T9-)6BA &e#ore parsing.
Ans5e1 :, .
0uestion1 ,,
An 'M( a##lication #ocesses 'M( $ocuments 5it! SA'-. W!at is t!e coect
o$e o/ t!e met!o$s 6eing calle$ 5!en #ocessing t!e /ollo5ing 'M( $ocument9
@9Dml 4esionEF%.*F enco$ingEFBT?+3F9C
@9Dml+styles!eet !e/EF#aaga#! .cssF ty#eEFteDtGcssF9C
@#aaga#!CT!is #aaga#! contains@6ol$Csome@G6ol$Cin/omation.@G#aaga#!C
A - start-ocu"ent
processinglnstruction
startEle"ent
startE3e"ent
endEle"ent
endEle"ent
characters
characters
characters
end-ocu"ent
< - start-ocu"ent
startEle"ent
startEle"ent
characters
characters
endEle"ent
characters
endEle"ent
processinglnstruction
end-ocu"ent
C - start-ocu"ent
processing3nstruction
startEle"ent
characters
startE3e"ent
characters
endEle"ent
characters
endEle"ent
end-ocu"ent
- - start-ocu"ent
Copyrights 2005-2006 TestKingonline All Rights Reserved.
startEle"ent
characters
startEle"ent
characters
endEle"ent
characters
endEle"ent
processinglnstruction
end-ocu"ent
Ans5e1 C
0uestion1 ,I
W!ic! t5o statements ae tue concening t!e use o/ No$e.emo4eC!il$ <No$e c!il$=9
A - The children o# the child are 4ept in the docu"ent.
< - The child and all its children are re"oved.
C - 6ointers "ust &e updated &e#ore atte"pting re"oveChild@A or an E(ception %ill &e thro%n. - -
All pointers are auto"atically updated.
E - 3t the child does not e(ist in the docu"ent1 nothing %ill happen.
Ans5e1 :, .
0uestion1 ,L
&i4en t!e /ollo5ing .T. $ocument, 5!ic! o/ t!e /ollo5ing 'M( $ocuments
is 4ali$9 @!E(EMENT $e#atues <Oig!t=C
@!E(EMENT $estination
<APC.ATA=C @!E(EMENT Oig!t
<$estination=C
@!ATT(IST Oig!t ailine C.ATA A)E0BIPE.C
@!ATT(IST Oig!t gate C.ATAAIMP(IE.C
@!ATT(IST Oig!t num6e C.ATAA)E0BI)E.C
A - HdeparturesM
H#light airlineJB;YZB nu"&erJLL2BM
HdestinationMYYZH0destinationM
H0#lightM
H0departuresM
< - HdeparturesM
H#light airlineJB;YZB nu"&erJBLL2B gateJB25BM
HdestinationMYYZH0destinationM
HdestinationMY,*H0destinationM
H0#lightM
H0departuresM
C - HdeparturesM
H#light airlineJB;YZB gateJB25BM
HdestinationMYYZH0destinationM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
H0#lightM
H0departuresM
- - HdeparturesM
Hdestination airlineJB;YZB nu"&erJBLL2B gateJB25BM
H#lightMYYZH0destinationM
H0destinationM
H0departuresM
Ans5e1 A
0uestion1 ,M
&i4en t!e /ollo5ing 'M(
/agment1 @:oo" I?NEFS&-,+
L;L2+*%FC
@NameCWe6S#!ee A##lication Se4e VL Migation
&ui$e@GNameC @Pu6lis!eCl:M@GPu6lis!eC
@G:oo"C
Ko5 can an 'M( $e4elo#e eDtact t!e Name element an$ its contents in SA'-+
6ase$ 'M( #ocessing9
A - 3"ple"ent -ocu"entRandler and use the startEle"ent and characters "ethods.
< - 3"ple"ent -ocu"entRandler and use the start-ocu"ent and characters "ethods.
C - 3"ple"ent ContentRandler and use the startEle"ent and characters "ethods.
- - 3"ple"ent ContentRandler and use the start-ocu"ent and characters "ethods.
Ans5e1 .
0uestion1 ,3
An a##lication is 6eing 5itten t!at 5ill act as a :-: inteme$iay /o 4aious
com#anies. T!e $ata 5ill come /om many souces an$ 5ill 6e $eli4ee$ to many
tagets. Eac! o/ t!e #otential souce com#anies an$ $ata ty#es !a4e not 6een $eSne$.
&i4en t!e o#en+en$e$ natue o/ t!e
e7uiements, 5!ic! is t!e 6est #otential $esign9
A - 9or each co"pany and data type1 a custo" conversion routine %ill trans#or" the received
data into an appropriate e&;2. de#ined ;2. sche"a that %ill &e used to send to target
co"panies.
< - 9or each co"pany and data type1 a custo" conversion routine %ill trans#or" the received data
into an internal ;2. sche"a #or local storage. *hen re$uested1 the data %ill &e
converted to the target co"panys re$uired #or"at.
C - -e#ine custo" ;2. che"a designs #or each data type1 and re$uire that each source and
target co"pany adhere to that voca&ulary %hen sending or receiving data.
- - Re$uire that each source and target co"pany con#or" to an appropriate e&;2. standard
sche"a #or each data type.
Ans5e1 .
0uestion1 ,2
Copyrights 2005-2006 TestKingonline All Rights Reserved.
.uing #asing, !o5 many statElement messages 5ill t!e ContentKan$le /o t!e
/ollo5ing 'M( $ocument ecei4e9
@9Dml 4esionEF%.*F enco$ingEFISO+3LI2+%F9C
@9Dml+styles!eet ty#eEFteDtGcssF !e/EF#eson.cssF9C
@!.OCTZPE #eson SZSTEM J#eson.$t$FC
@#eson DmlnsEF!tt#1GGDml.mycom#any.comG#esonFC
@name1name
Dmlns1nameE!tt#1GGDml.mycom#any.comGnameFC
@name1SstCJoe@Gname1 SstC
@name1IastCSc!moe@Gname1l
astC @Gname1 nameC
@assignment
#o8ectTi$EF#-FGC
@G#esonC
A - 5
< - K
C - L
- - )2
Ans5e1 A
0uestion1 I*
&i4en t!e /ollo5ing 'M( instance $ocument /agment1
@county nameEFA/g!anistanF egionEFAsiaF aeaEFLI-***F
#o#ulationEF-I3;3M2MFGC
@county nameEFAl6aniaF egionEFEuo#eF aeaEF-3M,3F
#o#ulationEF;,2*,;IFGC
Y
Bsing .OM-, 5!ic! o/ t!e /ollo5ing 5ill #int out t!e names o/ all t!e counties9
A - Ele"ent %orld J docu"ent.getTrun4Ele"ent@AY
#or @5ode n J %orld.get9irstChild@AY n +J nullY n J n.get5e(ti&ling@AA [
Ele"ent country J @Ele"entA nY
yste"[email protected]&ute@Bna"eBAAY
\
< - Ele"ent %orld J docu"ent.getTrun4Ele"ent@AY
#or @5ode n J %orld.get9irstChild@AY n +J nullY n J n.get5e(t@AA
[ Ele"ent country J @Ele"entA nY
yste"[email protected]&ute@Bna"eBAAY
\
C - Ele"ent %orld J docu"ent.get-ocu"entEle"ent@AY
#or @5ode n J %orld.get9irstChild@AY n +J nullY n J n.get5e(ti&ling@AA [
Ele"ent country J @Ele"entA nY
yste"[email protected]&ute@Bna"eBAAY
\
- - Ele"ent %orld J docu"ent.get-ocu"entEle"ent@AY
#or @5ode n J %orld.get9irstChild n +J nullY n J n.get5e(tChild@AA
[ Ele"ent country J @Ele"entA nY
yste"[email protected]&ute@Bna"eBAAY
Copyrights 2005-2006 TestKingonline All Rights Reserved.
[
Ans5e1 C
0uestion1 I%
An auto #ats su##lie stoes custome $ata as 'M( in a $ata6ase in t!e
/ollo5ing /omat1 @custome i$EF-FC
@nameCS5ellMo6ile@GnameC
@a$$essC@cityCKansas
City@GcityC@stateCMO@GstateC@Ga$$essC @#uc!ase
i$EF%-,F totalCostEF23,.;*FC
@item i$EF%-;F 7uantityEF-MF
GC @item i$EF,ILF
7uantityHEF%;F GC
@G#uc!aseC
@GcustomeC
W!ic! o/ t!e /ollo5ing '0uey statements etuns t!e names o/ t!e customes
5!o !a4e ma$e #uc!ases 5it! a totalCost o4e %***9
A - #or Tc in ;2.C,./[email protected]"er0purchaseS8totalCostM )000U
return Tc0na"e
< - #or Tc in ;2.C,./[email protected]
%here Tc0custo"er0purchaseS8totalCostM )000U
return Tc0na"e
C - #or Tp in ;2.C,./[email protected]"er0purchase let
Tc 7J ;2.C,./[email protected]"er
%here Tp08totalCostM )000
return Tc0na"e
- - #or Tc in ;2.C,./[email protected]"er
%here Tc0purchaseS8totalCostM )000U
return Tc0na"e
Ans5e1 .
0uestion1 I-
An a##lication nee$s to eDtact many small segments /om many 4ey lage 'M(
$ocuments. T!e eDtacte$ $ata nee$s to 6e mege$ into a single $ocument /o
/ut!e #ocessing. W!at is t!e
6est 5ay to $esign t!is a##lication9
A - 6arse large docu"ents using A;1 i"porting e(tracted seg"ents into a co""on -,2 o&=ect.
< - 6arse large docu"ents using -,21 e(tract seg"ents and i"port the" into a co""on -,2
o&=ect.
C - Trans#or" each large docu"ent using ;.T to produce re$uired seg"ents1 and then parse each
seg"ent directly into a co""on -,2 o&=ect.
- - /se the ;. Cdocu"ent@A #unction to load and then trans#or" all large docu"ents1 to produce a
single docu"ent containing all seg"ents1 that can then &e parsed as a -,2 o&=ect.
Ans5e1 A
Copyrights 2005-2006 TestKingonline All Rights Reserved.
0uestion1 I;
&i4en t!e /ollo5ing 'M( Sc!ema $ocument, 5!ic! o/ t!e /ollo5ing 'M(
$ocuments is 4ali$9
@Ds$1sc!ema Dmlns1Ds$EF!tt#1GG555.5;.ogG-**%G'M(Sc!emaFC
@Ds$1element
nameEFitineayFC@Ds$1com#leDTy#eC@Ds$1se7uenceC
@Ds$1element nameEF#assengeF ty#eEFDs$1stingF GC
@Ds$1element nameEFoiginF ty#eEFDs$1stingF GC
@Ds$1element nameEF$estinationF
maDOccusEFun6oun$e$FC
@Ds$1com#leDTy#eC@Ds$1sim#leContentC
@Ds$1eDtension 6aseEFDs$1stingFC
@Ds$1atti6ute nameEFtans/eF SDe$EFtueF ty#eEFDs$1stingF
useEFo#tionalF GC @GDs$1eDtensionC
@GDs$1sim#leContentC@GDss$1com#leDTy#eC@GDs$1elementC
@GDs$1se7uenceC @GDs$1atti6ute nameEFty#eF
ty#eEFDs$1stingF GC
@GDs$1com#leDTy#eC
@GDs$1elementC
@GDs$1sc!emaC
A - HitineraryM
HpassengerMA. TravelerH0passengerM
HoriginM,tta%aH0originM
Hdestination trans#erJBtrueBMTorontoH0destinationM
HdestinationM-elhiH0destinationM
H0itineraryM
< - Hitinerary typeJB&usinessBM
HpassengerMA. TravelerH0passengerM
HdepartureM,tta%aH0departureM
Hdestination trans#erJBtrueBMTorontoH0destinationM
HdestinationM-elhiH0destinationM
H0itineraryM
C - Hitinerary typeJB&usinessBM
HpassengerMA. TravelerH0passengerM
HoriginM,tta%a H0originM
Hdestination trans#erJB#alseBMTorontoH0destinationM
HdestinationM-elhiH0destinationM
H0itineraryM
- - Hitinerary typeJB&usinessBM
HpassengerMA. TravelerH0passengerM
HoriginM ,tta%a H0originM
Hdestination trans#erJBtrueBMTorontoH0destinationM
HdestinationM-elhiH0destinationM
H0itineraryM
Ans5e1 .
0uestion1 I,
W!ic! t5o o/ t!e /ollo5ing statements ae tue a6out t!ese lines o/ Ja4aSci#t9
Copyrights 2005-2006 TestKingonline All Rights Reserved.
4a ne5TeDt E $ocument.ceateTeDtNo$e<F Kello
.OM!F=\ 4a #aa E
$ocument.getElement:yl$<FeDam#leF=\
#aa.a##en$C!il$<ne5TeDt=\
A - 9or the lines to %or4 correctly1 there "ust &e an ele"ent %ith an 3- attri&ute o# Ce(a"pleB.
< - ne%Te(t %ill &e appended as the last child o# the node %ith an 3- attri&ute o# Ce(a"pleB.
C - ne%Te(t %ill &e appended as the #irst child o# the node %ith an 3- attri&ute o# Ce(a"pleB.
- - 3# there is no ele"ent %ith an 3- attri&ute o# Ce(a"pleB1 ne%Te(t %ill &e appended to the end
o# the docu"ent.
E - 3# ne%Te(t is currently part o# the docu"ent1 the append %ill #ail.
Ans5e1 A, :
0uestion1 II
&i4en t!e /ollo5ing 'M(
/agment1 @Em#loyeeC
@AgeC;I@GAgeC
@l++:ase$ on t!is yeas #e/omance
++C @SalayC %****@GSalayC
@GEm#loyeeC
W!ic! SA'- inte/ace s!oul$ t!e $e4elo#e im#lement to eDtact t!e 4alue o/ t!e 'M( comment9
A - ContentRandler.
< - -T-Randler.
C - EntityResolver.
- - .e(icalRandler
Ans5e1 .
0uestion1 IL
W!ic! o/ t!e /ollo5ing t5o statements must 6e use$ to 4ali$ate an 'M( instance
$ocument 5it!
SM9
A - ;2.6arser parser J ;2.6arser9actory.create;2.6arser@AY < -
;2.Reader parser J ne% ;2.Reader@AY
C - ;2.Reader parser J ;2.Reader9actory.create;2.Reader@AY
- - parser.set9eature@Bhttp700("l.org0sa(0#eatures0validationB1 trueAY
E - parser.set6roperty@Bhttp700("3.org0sa(0#eatures0validationB1 trueAY
Ans5e1 C, .
0uestion1 IM
An 'M( $e4elo#e eDten$s t!e .e/aultKan$le an$ o4e5ites its c!aactes met!o$. In t!e
c!aactes met!o$, t!e a##lication #ints eac! c!un" o/ c!aacte $ata #asse$ in to
t!e sceen. I/ t!e 'M( $e4elo#e uses t!is 'M( a##lication to #ocess t!e /ollo5ing
'M( /agment, 5!at 5ill t!e 'M( $e4elo#e 4ie5 on t!e sceen9
Copyrights 2005-2006 TestKingonline All Rights Reserved.
@:usinessCa$C
@Name
seDEFMaleFCT!omas@GNameC
@TitleCAccount@GTitleC
@P!oneCIII+LI,;,I@GP!oneC
@EmailCDDDUacom#any.com@GE
mailC @G:usinessCa$C
A - <usinessCard
Tho"as
Account
555-65PNP5
(((8i&".co"
<usinesscard
< - <usinessCard
5a"e
Title
6hone
E"ail
<usinessCard
C - Tho"as
Account
555-65PNP5
(((8aco"pany.co" -
- 2ale
Tho"as
Account
555-65PNP5
(((8aco"pany.co"
Ans5e1 C
0uestion1 I3
'M( $ocuments o/ t!e same sc!ema $esign ae ecei4e$ /om many un"no5n
souces. T!e
$ocuments 5ill 6e stoe$ as nati4e 'M(, an$ accesse$ an$omly, 6ut /e7uently
/om many
$iReent We6 Se4ice met!o$s. W!at is t!e 6est #ocessing #at! to manage
t!ese $ocuments9
A - Received docu"ent should &e parsed and validated1 then persisted. *hen re$uested1 the
docu"ent is trans#or"ed to the proper #or"at %ith no #urther parsing or validation.
< - 6ersist received docu"ents1 %hen re$uested1 parse1 validate1 and trans#or" the docu"ent to the
proper #or"at.
C - Received docu"ents should &e parsed1 validated1 and trans#or"ed into each de#ined target
#or"at1 %hich are then persisted. *hen re$uested the proper pre-#or"atted docu"ent is
retrieved.
- - Received docu"ents are persisted. *hen re$uested1 the docu"ent is trans#or"ed to the
proper #or"at.
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Ans5e1 A
0uestion1 I2
W!ic! o/ t!e /ollo5ing statements is T)BE concening t!is /agment o/ 'M( Sc!ema9
@sc!ema DmlnsEF!tt#1GG555.5;.ogG-**lG'M(Sc!emaF
tagetNames#aceEFun1nonstan$a$1testF
element?om.e/aultEF7ualiSe$F Dmlns1tsEFun1nonstan$a$1testFC
@com#leDTy#e nameEFO$eFC
@se7uenceC
@element nameEFuseF ty#eEFts1BseF GC
@element nameEF#o$uctsF ty#eEFts1Po$uctsF minOccusEF%F
maDOccusEF%F GC @Gse7uenceC
@atti6ute nameEFnum6eF
ty#eEFDs1$ecimalF GC @Gcom#leDTy#eCF
A - An H,rderM has child ele"ents.
< - -eclaring nu"&er as type deci"al re$uires H,rderM to &e a co"ple(Type. C -
An H,rderM "ay contain "ore than one HuserM.
- - An H,rderM "ust have a nu"&er.
Ans5e1 A
0uestion1 L*
&i4en t!e /ollo5ing .T. $ocument, 5!ic! o/ t!e /ollo5ing 'M( $ocuments
is 4ali$9 E(EMENT couse <name,location,stu$ent=C
@!E(EMENT location
<APC.ATA=C
@!E(EM?NT name <APC.ATA=C
@!E(EM?NT stu$ent <name=C
@!ATT(IST couse co$e C.ATAAIMP(IE.C
@!ATT(IST stu$ent i$ C.ATAAIMP(IE.C
A - Hcourse codeJBAA)2NBM
HlocationM 6hoeni(H0locationM
Hna"eMAdvanced counting techni$uesH0na"eM
HstudentMHna"eM<o& <o&&ersonH0na"eMH0studentM
H0courseM
< - Hcourse codeJBAA)2NBM
Hna"eMAdvanced counting techni$uesH0na"eM
HlocationM6hoeni(H0locationM
HstudentMHna"eM<o& <o&&ersonH0na"eMH0studentM
H0courseM
C - Hcourse codeJBAA)2NBM
Hna"eMAdvanced counting techni$uesH0na"eM
HlocationM6hoeni(H0locationM
H0courseM
- - Hcourse codeJBAA)2NB locationJB6hoeni(BM
Hna"eMAdvanced counting techni$uesH0na"eM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
HstudentMHna"eM<o& <o&&ersonH0na"eMH0studentM
H0courseM
Ans5e1 :
0uestion1 L%
Im#lementing 'S(TC in Ja4a SE Vesion I an$ a6o4e e7uies 5!at s#eciSc actions, it any9
A - -o%nload and place the ;A.A5-D =ar tile into the classpath.
< - -o%nload and place the TrA; #or Dava =ar #ile into the classpath.
C - Re"ove the de#ault DA;6 =ar #ile #ro" the D-K?s e(t directory and install any co"pati&le
;.TC =ar rile so"e%here in the classpath.
- - 5othing1 ;.TC is no% the de#ault ;. processor #or DA;6.
Ans5e1 .
0uestion1 L-
An a##lication a##lies intenal 6usiness ules to geneate 'M( $ocuments. 'S(
styles!eets can t!en #e/om com#leD calculations on t!e 'M( $ocuments to
#o$uce summay e#ots. W!at is t!e 6est solution to esol4e t!e com#leDities o/
t!e 'S(T calculations9
A - E(tract all the calculation logic #or" the ;. and put the" into included #unctions to &e shared &y
all the stylesheets.
< - 2ove the calculations into the &usiness rules logic o# the application and e(port the results as part
o# the ;2. content.
C - Create a co""on stylesheet to per#or" all the calculations appending the results to the ;2.1
%hich is then input into the appropriate stylesheet #or the actual rendering.
- - Create a custo" ;. e(tensions #or each calculation and i"port the" into each de#ined
stylesheet.
Ans5e1 :
0uestion1 L;
&i4en t!e sam#le 'M( $ocument 6elo5, assume t!at t!e Jem#numF atti6ute o/ t!e
Jem#loyeeF element is $eSne$ as an I. atti6ute in t!e .T.. W!ic! o/ t!e /ollo5ing
estuctuing #o#osals is t!e 6est solution9
@em#loyeesC
@em#loyee em#numEFe%JC@nameC:o6 Smit!@GnameC@Gem#loyeeC
@em#loyee em#numEFe-FC@nameCCaol
Jones@GnameC@manageC:o6 Smit!@GmanageC@Gem#loyeeC
@em#loyee em#numEFe;FC@nameCKeit!
Matin@GnameC@manageCCaol Jones@GmanageC@Gem#loyeeC
@em#loyee em#numEFe,FC@nameCMonica
Williams@GnameC@manageCCaol Jones@GmanageC@Gem#loyeeC
@Gem#loyeesC
Copyrights 2005-2006 TestKingonline All Rights Reserved.
A - 2ove each e"ployee ele"ent to a child o# the e"ployee?s "anager1 thus properly
representing the hierarchical nature o# the relationships. The 3- attri&utes %ill ena&le si"ple
selection using ;6ath.
< - -elete "anager ele"ents. Change -T- to add 3-RE9 attri&ute na"ed "anager to e"ployee
ele"ent. et value o# "anager attri&ute to "atch the e"pnu" value o# the e"ployee?s
"anager.
C - -elete "anager ele"ents. Change -T- "a4ing the e"pnu" attri&ute an 3-RE9. Add 3-
attri&ute called "grnu" and set value to "atch the e"pnu" value o# the e"ployee?s
"anager.
- - Change -T- to add "grnu" 3- attri&ute to "anager ele"ent1 %hose value is set to "atch the
e"pnu" value o# the e"ployee?s "anager. -e#ine "anager ele"ent as CFE26TYB and re"ove
child values.
Ans5e1 :
0uestion1 L,
To ma"e 'S(T tem#lates moe o6ust, t!e #aametes <D,y= ae c!ec"e$ /o eos an$
6oun$ay con$itions. W!ic! o/ t!e /ollo5ing tests is NOT necessay9
A - (Jy
< - (+Jy
C - ( has a non-nu"eric value
- - y does not have a value
Ans5e1 :
0uestion1 LI
W!ic! o/ t!e /ollo5ing is a c!aacteistic o/ '?oms en$eing9
A - 6rovides precise control over the #or" layout.
< - 6rovides drag and drop design o# #or" ele"ents.
C - 6rovides input intent1 &ut not rendering speci#ics.
- - -e#ines ne% input controls #or date and ti"e selections.
Ans5e1 C
0uestion1 LL
A comma $elimite$ list is 6eing constucte$ 4ia t!e 'S(T /agment 6elo5. W!ic! o/
t!e /ollo5ing
5ays is most a##o#iate to con$itionally 5ite a comma a/te eac! 4alue in t!e list
eDce#t /o t!e
last one9
@Dsl1/o+eac! selectEFGGt!ingFC
@Dsl14alue+o/ selectEFUt!ingNoFGC
@!++ Con$itionally5ite comma !ee.
++C @GDsl1/o+eac!C
A + @Dsl1i/ testEF#osition<= E last<=FC,@GDsl1i/C
Copyrights 2005-2006 TestKingonline All Rights Reserved.
< - H(sl7i# testJBposition@A +J last@ABM1H0(sl7i#M
C - H(sl7i# testJB#ollo%ing-si&ling77VBM1H0(sl7i#M
- - H(sl7i# testJB#ollo%ing77VBM1H0(sl7i#M
Ans5e1 :
0uestion1 LM
W!at is t!e $e/ault aDis in 'Pat!9
A - descendant77
< - descendant-or-sel#77 C
- child77
- - parent77
Ans5e1 C
0uestion1 L3
Consi$e t!e /ollo5ing 'M( $ocument1
@9Dml 4esionEF%.*F enco$ingEFBT?+
3F9C @:an"AccountC
@Account I.EF***-;F NameEFAleD Kala4aisF Ty#eEFC!ec"ingF :alanceEFl
****BS.FGC @Account I.EF***3-F NameEFAlice Mc"inleyF Ty#eEFSa4ingF
:alanceEF-****BS.FGC @G:an"AccountC
I/ an 'M( $e4elo#e 5ants to out#ut t!e a6o4e $ocument as a colon $elimite$ teDt
Sle, 5!ic! o/ t!e /ollo5ing styles!eets can ac!ie4e t!e $esie$ esult9
A - HI("l versionJB).0B encodingJB/T9-KBIM
H(sl7stylesheet versionJB).0B ("lns7(slJBhttp700%%%.%N.org0l LLL0;.0Trans#or"BM
H(sl7output "ethodJBte(tB0M
H(sl7te"plate "atchJBAccount?M
H(sl7value-o# selectJB83-B0MH(sl7outputM7H0(sl7outputM
H(sl7value-o# selectJB85a"eB0MH(sl7outputM7 H0(sl7outputM
H(sl7value-o# selectJBTypeB0MH(sl7outputM7H0(sl7outputM
H(sl7value-o# selectJB8<alanceB0M
H(sl7outputMH0(sl7outputM
H0(sl7te"plateM
H0(sl7 stylesheetM
< - HI("l versionJB).0B encodingJB/T9-KBIM
H(sl7stylesheet versionJB).0B ("lns7(slJBhttp700%%%.%N.org0l LLL0;.0Trans#or"BM
H(sl7output "eth odJBte(tB0M
H(sl7te"plate "atchJB <an4Account CM
H(sl7value-o# selectJB83-B0MH(sl7outputM7 H0(sl7 outputM
H(sl7value-o# selectJB85a"eB0MH(sl7outputM7 H0(sl7outputM
H(sl7value-o# selectJBTypeB0MH(sl7outputM7H0(sl7outputM
H(sl7value-o# selectJB8<alanceB0M
H(sl7outputMH0(sl7outputM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
H0(sl7te"plateM
H0(sl7stylesheetM
C - HI("l versionJB).0B encodingJB/T9-KBIM
H(sl7sty3esheet versionJBl.0B ("lns7(slJBhttp700%%%.%N.org0)LLL0;.0Trans#or"BM
H(sl7output "ethodJBte(tB0M
H(sl7te"plate "atchJBAccountBM
H(sl7value-o# selectJB8l-B0MH(sl7te(tM7H0(sl7te(tM
H(sl7value-o# selectJB85a"eB0MH(sl7te(tM7H0(sl7te(tM
H(sl7value-o# selectJB8TypeB0MH(sl7te(tM7H0(s37te(tM
H(sl7value-o# selectJB8<alanceB0M
H(sl7te(tMH0(s37te(tM
H0(sl7te"plateM
H0(sl7stylesheetM
- - HI("l versionJB).0B encodingJB/T9-KBIM
H(sl7stylesheet versionJB).0B ("lns7(slJBhttp700%%%.%N.org0lLLL0;.0Trans#or"BM
H(sl7output "ethodJBte(tB0M
H(sl7te"plate "atchJB<an4AccountBM
H(sl7value-o# selectJB83-B0MH(sl7te(tM7H0(sl7te(tM
H(sl7value-o# selectJB85a"eB0MH(sl7te(tM7H0(sl7te(tM
H(sl7value-o# selectJB8TypeB0MH(sl7te(tM7H0(s37te(tM
H(sl7value-o# selectJB8<alanceB0M
H(sl7te(tMH0(s37te(tM
H0(sl7te"plateM
H0(sl7stylesheetM
Ans5e1 C
0uestion1 L2
'M( is 6eing tans/ome$ using 'S(T. An Dsl14aia6le is nee$e$ late in t!is #ocess
to set an element colo. W!ic! o/ t!e /ollo5ing is t!e 5ay to initiali>e t!e Dsl14aia6le
!ue 6ase$ u#on t!e 4alue o/ t!e conteDt no$eHs status atti6ute9
A - H(sl7chooseM
H(sl7varia&le na"eJBhueBM
H(sl7%hen testJB8status J >late?BMredH0(sl7%henM
H0(sl7varia&leM
H(sl7varia&le na"eJBhueBM
H(sl7other%iseMgreenH0(sl7other%iseM
H0(sl7varia&leM
H0(sl7chooseM
< - H(sl7chooseM
H(sl7%hen testJB8status J >late?BM
H(sl7varia&le na"eJBhueBMredH0(sl7varia&leM
H0(sl7%henM
H(sl7other%iseM
H(sl7varia&le na"eJBhueBMgreenH0(sl7varia&leM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
H0(sl7other%iseM
H0(sl7chooseM
C - H(sl7varia&le na"eJBhueBM
H(sl7chooseM
H(sl7%hen testJB8status J >late?BMredH0(sl7%henM
H(sl7other%iseMgreenH0(sl7other%iseM
H0(sl7chooseM
H0(sl7varia&leM
- - H(sl7varia&le na"eJBhueBM
H(sl7i# testJB8status J >late?BMredH0(sl7i#M
H(sl7elseMgreenH0(sl7elseM
H0(sl7varia&leM
Ans5e1 C
0uestion1 M*
An online ta$ing system su##ots multi#le clients suc! as We6 6o5ses, Pesonal .igital
Assistants <P.As= an$ mo6ile #!ones. It etie4es 'M( $ata /om a nati4e 'M(
$ata6ase an$ t!en $is#lays t!e in/omation to $iReent clients. W!ic! a##oac! is
moe suita6le /o en$eing t!e $ata sent to $iReent $e4ices9
A - The trading syste" should send &oth the ra% ;2. data and devices-speci#ic #iles to clients.
< - The trading syste" should trans#or" the ;2. data into the devices-speci#ic #or"ats on the
server.
C - The ;2. data should &e converted to ;RT2. then sent to di##erent devices. - -
;.-9, should &e used #or di##erent rendering targets.
Ans5e1 :
0uestion1 M%
Ko5 s!oul$ a CSS styles!eet 6e a##lie$ to an 'M( $ocument9
A - 6reprocess the ;2. using an ;.T stylesheet to trans#or" the docu"ent to valid ;RT2.
#irst. Then send the ;RT2. docu"ent to the &ro%ser.
< - E"&ed a Hstyle typeJBte(t0cssBM ... H0styleM ele"ent %ithin the ;2. docu"ent that contains C
rendering instructions.
C - /se ;.TC to apply the C to the ;2. -,2 and return the results as an ;RT2. docu"ent to the
&ro%ser.
- - 3nsert a HI("l-stylesheet hre#JB;;;.cssB typeJBte(t0cssBIM instruction re#erencing an e(ternal
C #ile.
Ans5e1 .
0uestion1 M-
W!ic! o/ t!e /ollo5ing is NOT necessaily a tait o/ Jtail ecusion9F
Copyrights 2005-2006 TestKingonline All Rights Reserved.
A - -epending upon the stylesheet processor1 it "ay not e(haust the stac4 space as $uic4ly as
general recursion.
< - Each recursive call sets up the ne(t su&-pro&le" to &e hal# as large as the current one.
C - tylesheet processors "ay opti"i:e this 4ind o# recursion &y internal trans#or"ation into an
iterative solution.
- - The recursive call co"es at the end o# the te"plate.
Ans5e1 :
0uestion1 M;
A com#any is $e4elo#ing an AJA' <Async!onous Ja4aSci#t an$ 'M(= a##lication
5!ic! #asses 'M( 6et5een t!e client an$ t!e se4e. A/te t!e clientHs We6 6o5se
ecei4es t!e se4e
es#onse, 5!ic! tec!nology is NOT suite$ /o en$eing t!e 'M( $ata9
A - ;.T
< - ;.-9,
C - C
- - Davascript
Ans5e1 :
0uestion1 M,
?o sting 4alues o/ i o/ lengt! less t!an -*, t!e 'S(T tem#late 6elo5 5ill out#ut i in e4ese
o$e. W!at 5oul$ 6e t!e out#ut o/ t!is tem#late i/ t!e o$e o/ t!e t5o tem#late calls
6et5een t!e t5o comments <QSTA)TH an$ QEN.H= 5ee e4ese$9
@Dsl1tem#late nameEF.oFC
@Dsl1#aam nameEFiFGC
@Dsl14aia6le nameEF8F selectEFsting+
lengt!<Ni=FGC @Dsl1c!ooseC
@Dsl15!en testEF N8 @-
JC @Dsl14alue+o/
selectEFNiFGC
@GDsI15!enC
@Dsl1ot!e5iseC
@Dsl14aia6le nameEF"F selectEFOoo<N8 $i4
-=FGC @!++ STA)T ++C
@Dsl1call+tem#late nameEF.oFC
@Dsl15it!+#aam nameEFiF selectEFsu6sting<Ni, N"P%,
NKP%=FGC @GDsl1call+tem#lateC
@Dsl1call+tem#late nameEF.oFC
@Dsl15it!+#aam nameEFiF selectEFsu6sting<Ni, %,
N"=FGC @GDsl1call+tem#lateC
@!++ EN. ++C
@GDsl1ot!e5ise
C
@GDsl1c!ooseC
@Dsl1tem#lateC
Copyrights 2005-2006 TestKingonline All Rights Reserved.
A - Alternate the value o# i and the value o# 4 &y the nu"&er o# ti"es indicated &y =. < -
Repeat the value o# i.
C - Reverse the value o# i.
- - -o nothing &ecause the value o# = cannot &e changed once assigned.
Ans5e1 :
0uestion1 MI
W!at is t!e esult o/ t!e /ollo5ing 'S(T
tem#late9 @Dsl\tem#late nameEF.oFC
@Dsl1#aam nameEF8F
selectEFIFGC @Dsl1#aam
nameEF"F selectEF%FGC
@Dsl1c!ooseC
@Dsl15!en testEF N8 ]lt, -
JC @Dsl14alue+o/
selectEFN"FGC
@GDsl15!enC
@Dsl1ot!e5iseC
@Dsl1call+tem#late nameEF.oFC
@Dsl15it!+#aam nameEF8F selectEFN8 + %
JGC @Dsl15it!+#aam nameEF"F
selectEFN8 X N"FGC @GDsl1call+tem#lateC
@GDsl1ot!e5ise
C
@GDsl1c!ooseC
@GDsl1tem#late
C
A - ) 2 N P 5
< - )5
C - 60
- - )20
Ans5e1 .
0uestion1 ML
&i4en t!e /ollo5ing .T. /agment, 5!ic! 'M( instance $ocument /agment 5ill PASS
4ali$ation9 @!E(EMENT #lanet <countyX=C
@!E(EMENT county EMPTZC
@!ATT(IST county cc I. A)E0BI)E.
name C.ATA A)E0BI)E.
6o$e I.)E? AIMP(IE.
C
A - HplanetM
Hcountry cc J CauB
na"e J CAustraliaB 0M
H0planetM
< - HplanetM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Hcountry cc J C4n nvB
na"e J Caint Kitts ' 5evisB0M
H0planetM
C - HplanetM
Hcountry cc J CNsB
na"e J C5painB0M
H0planetM
- - HplanetM
Hcountry cc J CcaB
&order J CusB0M
H0planetM
Ans5e1 A
0uestion1 MM
A We6 a##lication must su##ot a 4aiety o/ 6o5se ty#es an$ 4esions. In/omation
is stoe$ in
t!e $ata6ase as 'M( $ata. Ko5 an$ 5!ee s!oul$ t!e 'M( $ocument 6e #ocesse$
/o
en$eing9
A - *e& application supplies &oth the ;2. data and the stylesheet to &ro%sers1 and the lets the
&ro%sers "a4e the rendering.
< - *e& application only need to supply the ;2. data. <ro%sers can handle the rendering &y
the"selves.
C - /se ;.-9, to trans#or" ;2. data into 6-9 #or" so that all the contents have the sa"e loo4 and
#eel on di##erent &ro%sers.
- - *e& application trans#or"s the ;2. data into RT2. on the server side and then sends to
client &ro%sers.
Ans5e1 .
0uestion1 M3
&i4en t5o une7ual integes D an$ y, 5!ic! 'Pat! %.* eD#ession is e7ui4alent to
t!e /ollo5ing
'S(T9
@Dsl1 c!ooseC
@Dsl15!en testEFND ]gtE
NyFC @Dsl14alue+o/
selectEFNDFGC
@GDsl15!enC
@Dsl1ot!e5iseC
@Dsl14alue+o/
selectEFNyFGC
@GDsl1ot!e5iseC
@GDsl1c!ooseC
A + <ND ]lt\E Ny= X ND P <Ny ]lt\E ND= X Ny
Copyrights 2005-2006 TestKingonline All Rights Reserved.
< - @T( 'ltYJ TyA V T( ] @Ty 'gtYJ T(A V Ty
C - @T( 'gtYJ TyA V T( ] @Ty 'ltYJ T(A V Ty
- - @T( 'gtYJ TyA V T( ] @Ty 'gtYJ T(A V Ty
Ans5e1 .
0uestion1 M2
Consi$e t!e gi4en 'M( /agment1
@EDam#le Dmlns1names#ace%EF!tt#1GG55.5;.ogF
DmlnsEF!tt#1GG555.i6m.comFC
@Item % a$$ess % EJBSFGC
@names#ace%1Item-
a$$essEFBSFGC @GEDam#leC
To 5!ic! o/ t!e /ollo5ing names#aces $oes t!e element Item % 6elong9
A - http700%%.%N.org.
< - http700%%%.i&".co".
C - http700%%%.%N.org0na"espace.
- - 3t does not &elong to any na"espaces.
Ans5e1 :
0uestion1 3*
A .T. is moe con4enient t!an an 'M( sc!ema /o 5!ic! o/ t!e /ollo5ing #u#oses9
A - E(plicitly supporting a na"espace.
< - En#orcing si"ple data types #or attri&ute values. C -
.i"iting length o# content
- - -e#ining general entities.
Ans5e1 .
0uestion1 3%
A com#leD 'M( /omat is to 6e 5i$ely s!ae$ acoss ogani>ations t!at $o not
nomally inteact. At a minimum, 5!at "in$ o/ in/omation a6out t!e /omat s!oul$
6e s!ae$9
A - An ;-. docu"ent #or the #or"at.
< - The docu"ent?s e&;2. gra""ar.
C - 9or"al sche"as or -T-s #or the #or"at. - -
A stylesheet.
Ans5e1 C
0uestion1 3-
W!ic! o/ t!e /ollo5ing lists contains only 4ali$ W;C 'M( Sc!ema (anguage
sim#le sc!ema
ty#es9
Copyrights 2005-2006 TestKingonline All Rights Reserved.
A - any/R.1 char1 encoding1 /T9K
< - #ullna"e1 dou&le1 long1 int
C - T,KE51 ti"esta"p1 range1 char
- - &yte1 duration1 E5T3TY1 52T,KE51
Ans5e1 .
0uestion1 3;
An 'M( $ocument consists o/ one @:oo"C element an$ t!ee @PiceC elements
e#esenting
$iReent 4en$osH selling #ice. W!at is t!e 6est a##oac! to $eSne t!is 'M(
$ocument9
A - To di##erentiate vendors? prices1 add a pre#i( &e#ore each 6rice tag1 such as
H,neWendor6riceM.
< - *hen de#ining this ;2. docu"ents sche"a1 use di##erent date types #or ele"ent H6riceM.
C - At the &eginning o# the ;2. docu"ent1 add 6rice na"espace declarations #or di##erent
vendors.
- - 6ut three sa"e 6rice tags into the ;2. docu"ent1 ;2. processor has e"&edded
"echanis" to di##erentiate the".
Ans5e1 C
0uestion1 3,
A /om contains t!e /ollo5ing Sel$s1
%= ?ist name
-= Mi$$le name
;= (ast name
,= Steet
I= City
L= State
M= Postal co$e
W!ic! o/ t!e /ollo5ing is t!e most a##o#iate 'M( e#esentation9
A - H#or"M
Hna"eM
H#irstMEl%oodH0#irstM
H"iddleM6H0"iddleM
HlastMugginsH0lastM
H0na"eM
HlocationM
HstreetM)2N El" t.H0streetM
HcityM.l:ard .ic4H0cityM
HstateM5CH0stateM
HpostalCodeM2^6LLH0postalCodeM
HlocatlonM
H0#or"M
< - Haddr7#or" ("lns7locJBhttp00te"puri.org0inde(.ht"lBM
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Hna"eM
H#irstMEl%oodH0#irstM
H"iddleM 6H0"iddleM
HlastMugginsH0lastM
H0na"eM
HlocationM
HstreetM)2N El" t.H0streetM
HcityM.i:ard .ic4H0cityM
HstateM5CH0stateM
Hposta3CodeM2^6LLH0postalCodeM
H0locationM
H0addr7#or"M
C - H#or"M
Hna"e #ullna"eJBuggins1 El%ood 6BM
Hlocation addressJB)2N El" t.1 .i:ard .ic4. 5C 2^6LLBM
H0#or"M
- - Haddr7#or" ("lns7locJBhttp00te"puri.org0inde(.ht"lBM
Hna"e #ullna"eJBuggins1 El%ood 6BM
Hlocation addressJB)2N El" t.1 .i:ard .ic41 5C 2^6LLBM
H0addr7#or"M
Ans5e1 A
0uestion1 3I
&i4en an eDtenal .T. line1
@!ENTITZ ^ esi$ence Ja$$ess, 6e$ooms,
6at!sFC an$ an intenal .T. line1
!ENTITZ ^ esi$ence Ja$$ess, /ootage, 6e$ooms, 6at!s, a4aila6leT$ateFC
W!ic! o/ t!e /ollo5ing statements is tue concening t!e $ocument t!at e/es to t!ese .T.s9
A - -ocu"ent %ill not validate1 due to the con#licting declarations.
< - An availa&leXdate "ust &e present #or a residence to &e valid in the docu"ent. C -
An availa&leXdate is optional #or a residence to &e valid in the docu"ent.
- - The last declaration the parser encounters ta4es precedence.
Ans5e1 :
0uestion1 3L
An a##lication menu 6a 5ill contain a tee o/ la6ele$ comman$ JitemF elements
neste$ to an a6itay $e#t!. W!ic! o/ t!e /ol" $eSne t!e menu 6a9
A - H"7"enu ("lns7"enuJBhttp700te"puri.org0inde(.ht"lBM
H#ile ite"JB9ileBM
Hne% ite"JB5e%BM
H#ile ite"JB9ileB c"dJBne%9ile 0M
H#ile ite"JB9olderB c"dJBne%9olderB 0M
Copyrights 2005-2006 TestKingonline All Rights Reserved.
H0ne%M
Hopen ite"JB,penB c"dJBopen9ileB 0M
Hclose ite" JCCloseB c"dJBclose9ileB 0M
H0#ileM
Hedit ite"JBEditBM
Hcopy ite"JBCopyB c"dJBcopyB 0M
Hpaste ite"JB6asteB c"dJBpasteB 0M
H0editM
H0"7"enuM
< - H"7"enu ("lns7"JBhttp700te"puri.org0inde(.ht"lM
H#ile ite"JB9ileB0M
Hne% ite"JB5e%B0M
H#ile ite"JB9ileB c"dJBne%9ileB 0M
H#ile ite"JB9olderB c"dJBne%9olderB 0M
H0ne%M
Hopen ite"JB,penB c"dJBopen9ileB 0M
Hclose ite"JBCloseB c"dJBclose9ileB 0M
H0#ileM
Hedit ite"JBeditB0M
Hcopy ite"JBCopyB c"dJBcopyB 0M
Hpaste ite"JB6asteB c"dJBpasteB 0M
H0editM
H0"7"enuM
C - H"7"enu ("lns7"enuJBhttp700te"puri.org0inde(.ht"lBM
Hite" la&elJB9ileBM
Hite" la&elJB5e%BM
Hite" la&elJB9ileB c"dJBne%9ileB 0M
Hite" la&elJB9olderB c"dJBne%9olderB 0M
H0ite"M
Hite" la&elJB,penB c"dJopen9i3eB 0M
Hite" la&elJBCloseB c"dJBclose9ileB 0M
H0ite"M
Hite" la&elJBEditBM
Hite" la&elJBCopyB c"dJBcopyB 0M
Hite" la&elJB6asteB c"dJBpasteB 0M
H0ite"M
H0"7"enuM
- - H"7"enu ("lns7"JBhttp700te"puri.org0inde(.ht"lBM
Hite" la&elJB9ileBM
Hite" la&elJB5e%BM
Hite" la&elJB9i3eB c"dJBne%9ileB 0M
Hite" la&elJB9olderB c"dJBne%9olderB 0M
H0ite"M
Hite" la&elJB,penB c"dJBopen9ileB 0M
Hite" la&elJBCloseB c"dJBclose9ileB 0M
H0ite"M
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Hite" la&elJBEditBM
Hite" la&elJBCopyB c"dJBcopyB 0M
Hite" la&elJB6asteB c"dJBpasteB 0M
H0ite"M
H0"7"enuM
Ans5e1 .
0uestion1 3M
An K) a##lication 5ill cay out a6itay ea$+only 7ueies acoss em#loyees,
manages, an$ $e#atments. T!e $ata 5ill 6e sa4e$ in a #esistence stoe. W!ic! o/
t!e /ollo5ing su##ots 'M( as t!e KP a##licationHs $ata me$ium9
A - ;Guery supports insert1 update1 and delete operations.
< - ;Guery supports 9.*,6 =oin operations across three ;2. docu"ents.
C - ;.T supports trans#or"ation o# G. result sets. G. aliases cannot &e used #or
colu"n na"es and ta&le na"es.
- - G. supports $uerying the contents o# ;2. docu"ents stored as <.,<s. G. does not
support na"espaces.
Ans5e1 :
0uestion1 33
Assume t!at a W;C 'M( Sc!ema (anguage $ocument $esigne uses t!e
/ollo5ing #eSD $eclaation1
@Ds1sc!ema Dmlns1DsEF!tt#1GG555.5;.ogG-**%G'M(Sc!emaFC
T!e $esigne e4aluates t!e c!oice o/ atti6utes 4esus elements to $esci6e a
stuctue. W!ic! o/ t!e /ollo5ing is a 4ali$ eason to a4oi$ atti6utes /o a com#leD
stuctual e#esentation9
A - Ele"ents are appro(i"ately t%ice as concise as attri&utes.
< - An ele"ent is restricted to "eta-data representation.
C - An attri&ute value is restricted to representing string data. - -
An attri&ute value cannot contain ele"ents.
Ans5e1 .
0uestion1 32
A W;C Sc!ema (anguage $ocument $esigne must inco#oate $eclaations /om
an eDtenal
We6+!oste$ ty#e li6ay sc!ema 6elonging to anot!e names#ace. W!ic! sc!ema
element can
t!e $esigne use to inco#oate t!e eDtenal sc!ema so as to euse its ty#es an$
elements9
A - (s7re$uire
< - (s7include
C - (s7i"port
- - (s7rede#ine
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Ans5e1 C
0uestion1 2*
A We6 a##lication #e/oms a 7uey against a $ata6ase an$ uses t!e esults to 6uil$ Ja4a
o68ects. NeDt, t!e system sen$s t!e $ata to a 5ae!ouse system 5!ic! is also
Ja4a+6ase$. T!e 5ae!ouse t!en #asses t!e $ata to a CO:O(+6ase$ legacy
system. At 5!ic! #oint is it
necessay to con4et t!e $ata to 'M(9
A - 3""ediately a#ter retrieving it #ro" the data&ase. < -
<e#ore it is passed to the %arehouse.
C - As soon as it is received &y the %arehouse syste". - -
<e#ore it is sent to the legacy syste".
Ans5e1 .
0uestion1 2%
W!en #ocessing an 'M( $ocument, 5!y s!oul$ a $e4elo#e use .OM instea$ o/ SA'9
A - The docu"ent structure is "odi#ied.
< - The docu"ent si:e is large.
C - 2ultiple docu"ents need to &e "erged. -
- Walidation rules are si"ple.
E - 6arsing speed is critical.
Ans5e1 A, C
0uestion1 2-
A$$ing a $igital signatue to an 'M( $ocument #e/oms 5!at /unction9
A - 6roves that docu"ent has not &een altered since &eing signed.
< - .i"its decryption o# the ;2. docu"ent to the prede#ined recipient.
C - Ensures that only the signer can decrypt the docu"ent.
- - Ensures only the associated private 4ey can decrypt the docu"ent.
Ans5e1 A
0uestion1 2;
An 'M(+6ase$ a##lication is #e/oming #ooly. An analysis in$icates t!at #at o/ t!e
#e/omance #o6lem is elate$ to a lage amount o/ inte+se4e communication.
W!ic! o/ t!e /ollo5ing is t!e (EAST li"ely to cause a #e/omance #o6lem9
A - ;.T stylesheets are located on a re"ote server.
< - ;2. che"a docu"ents are located on a re"ote server.
C - 5a"espaces used in the docu"ents re#erence a re"ote server.
- - A -T- docu"ent is re#erring to e(ternal entities on re"ote servers.
Copyrights 2005-2006 TestKingonline All Rights Reserved.
Ans5e1 C
0uestion1 2,
An a##lication ea$s a small 'M( $ocument /om a custome in/omation $ata6ase. T!e
in/omation is #esente$ to t!e use in a We6 #age 5!ee it can 6e mo$iSe$. T!e
mo$iSe$ 'M( must 6e 5itten 6ac" to t!e $ata6ase. W!ic! o/ t!e /ollo5ing
tec!nologies s!oul$ 6e use$ to
#ocess t!e $ocument 5!en it is ea$ /om t!e $ata6ase9
A - -,2
< - A;
C - ;6ath
- - ;-<
Ans5e1 A
0uestion1 2I
An a##lication meges t!e contents o/ t5o 'M( $ocuments /om $iReent $e#atments
to #o$uce a single $ocument. Eac! $ocument uses its o5n 4oca6ulay o/ elements,
6ut 6ot! $ocuments
!a4e elements 5it! t!e same name, 6ut $iReent meanings. W!ic! o/ t!e /ollo5ing
solutions 6est $eals 5it! t!is #o6lem9
A - -e#ine the structure o# each docu"ent using -T-.
< - -e#ine the structure o# each docu"ent using ;2. che"a.
C - /se uni$ue ;.T trans#or"ation to create the "erged docu"ent.
- - -e#ine each o# the source docu"ents using uni$ue ;2. na"espaces.
Ans5e1 .
0uestion1 2L
W!ic! t5o o/ t!e /ollo5ing s!oul$ a $e4elo#e consi$e to im#o4e t!e
#e/omance o/ We6 a##lications t!at tans/om 'M( $ocuments9
A - /se -,2 instead o# A;.
< - Avoid the use o# ;.TC.
C - /se a style sheet cache.
- - Co"press the ;2. #ro" the client.
E - 2ini"i:e the use o# na"espaces.
Ans5e1 C, E
0uestion1 2M
W!ic! o/ t!e /ollo5ing is NOT a coe com#onent o/ a JA': im#lementation9
A - <inding co"piler
Copyrights 2005-2006 TestKingonline All Rights Reserved.
< - che"a-derived classes C
- ;2. sche"a
- - ;. stylesheet processor
Ans5e1 .
0uestion1 23
An 'M( $ocument 5it! an e4ol4ing 'M( Sc!ema is 6eing $esigne$. T!e system 5ill
stoe a lage 4olume o/ t!ese $ocuments. T!ee/oe, t!ey s!oul$ 6e "e#t as small as
#ossi6le. W!at is t!e
6est a##oac! to !an$le $ocument 4esioning9
A - 3denti#y the version o# the docu"ent &y the version attri&ute in the ;2. prologue.
< - The version in#or"ation should &e included in the na"espace.
C - The appropriate version o# ;2. che"a should &e inlined %ithin the docu"ent.
- - ;.T should &e used to trans#or" the di##erent versions o# the ;2. che"a docu"ents.
Ans5e1 :
Copyrights 2005-2006 TestKingonline All Rights Reserved.