0% found this document useful (0 votes)
43 views

Exam: 070-526 Ver: 04-09-08: Windows-Based Client Development

You are developing a Windows Forms application for Certkiller.com using Visual Studio 2005 where a test browser control has been added to the Certkiller Form to access exam content via the internet, and permissions have been set to demand full trust for the control. The application will be used internally at Certkiller.com to access exam materials. You need to configure the test browser control properly for secure access of exam content.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Exam: 070-526 Ver: 04-09-08: Windows-Based Client Development

You are developing a Windows Forms application for Certkiller.com using Visual Studio 2005 where a test browser control has been added to the Certkiller Form to access exam content via the internet, and permissions have been set to demand full trust for the control. The application will be used internally at Certkiller.com to access exam materials. You need to configure the test browser control properly for secure access of exam content.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 99

070-526 C#, Creating a UI for a Windows Forms Application !

Using "tandard Controls #$% &'estions( &U)"*I+, ) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000) as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to make s+re t-at t-e 1ict+re ox control2s $ro$erties cannot 3e c-an,ed wit- a lo,o t-at /o+ -a#e added to t-e 1ict+re ox in t-e desi,ner of t-e form 3ase. efore t-e time /o+ -a#e added a form to t-e Microsoft Windows Forms !ontrol 4i3rar/ $ro5ect and add a 1ict+re ox control to t-e form. T-e form is $resentin, !ertkiller.com2s lo,o. W-at action s-o+ld /o+ take6 .. *o+ s-o+ld set t-e 4ocked $ro$ert/ to False. . *o+ s-o+ld set t-e 4ocked $ro$ert/ to Tr+e. !. *o+ s-o+ld set t-e Modifiers $ro$ert/ to 1ri#ate. ". *o+ s-o+ld set t-e Modifiers $ro$ert/ to 1rotected. .nswer: !

Exam : 070-526

Ex$lanation: W-en /o+ t-e Modifiers .NET $ro$ert/ Framework to 1ri#ate7 t-e #al+e will Title : set Microsoft 2.0 -s-ow t-at onl/ t-e 3ase form can modif/ t-e control. 8ncorrect .nswers: Windows- ased !lient "e#elo$ment .: *o+ s-o+ld not set it to False7 3eca+se t-e control can 3e mo#ed and resi9ed. : 8f /o+ set t-e $ro$ert/ to Tr+e t-e control cannot 3e remo#ed of resi9ed. . %er : 0&-0'-0( ": 8f /o+ set t-e Modifiers $ro$ert/ to 1rotected7 t-e #al+e will s-ow t-at t-e 3ase form and an/ of t-e form /et to come can modif/ t-e control. &U)"*I+, 2 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. *o+ -a#e 5+st incl+ded a "ateTime1icker control to a form. *o+ t-en set t-e format $ro$ert/ to Time. "+rin, t-e ca+se of t-e da/7 /o+ c-eck -ow t-e "ateTime1icker control is workin,7 and learnt t-at it does not allow t-e !ertkiller .com +sers to c-an,e t-e selected time. W-at s-o+ld /o+ do to c-an,e t-e control so t-at it will allow t-e !ertkiller .com +ses to c-an,e t-e selected time6 .. *o+ s-o+ld set t-e 0-ow:$"own $ro$ert/ to Tr+e. Act'altests-com - *.e /ower of 0nowing

070-526 . *o+ s-o+ld set t-e 0-ow0elect ox $ro$ert/ to Tr+e. !. *o+ s-o+ld set t-e %isi3le $ro$ert/ to False. ". *o+ s-o+ld set t-e !-ecked $ro$ert/ to False. .nswer: . Ex$lanation: T-e 0-ow:$"own $ro$ert/ is 3/ defa+lt set on False. *o+ s-o+ld set it on Tr+e. ;n False it will s-ow t-e "ateTime1icker m+st sim+late a dro$-down control. T-is settin, will allow t-e +sers to set t-e Mont-!alender. 8f it is set to Tr+e t-e +sers can select t-e time. 8ncorrect .nswers: : T-e 0-ow0elect ox will not resol#e t-e $ro3lem. T-is will s-ow if a !-eck ox s-o+ld 3e dis$la/ed on t-e "ateTime1icker. !: 8f /o+ set t-e %isi3le $ro$ert/ to False7 it will -ide t-e "ateTime1icker. . ": *o+ s-o+ld not set t-e !-ecked $ro$ert/ to False. 8f t-is is set on Tr+e7 a !-eck ox control will 3e dis$la/ed on t-e "ateTime1icker. &U)"*I+, < *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000) as de#elo$in, collateral. T-e mana,er of !ertkiller .com wants to -a#e a 3orderless form wit- t-e 3ack,ro+nd s-own in t-e ex-i3it.

W-en t-e form is #iew7 t-e mana,er named =or/ .llen does not want t-e maroon area to 3e #isi3le. >e onl/ wants t-e 3l+e to 3e #isi3le w-en t-e form is dis$la/ed. W-ic- of t-e followin, code se,ments s-o+ld 3e +sed6

Act'altests-com - *.e /ower of 0nowing

070-526 .. t-is.Trans$arenc/?e/ @ !olor.MaroonA . t-is. ack!olor @ !olor.MaroonA !. t-is.Trans$arenc/?e/ @ !olor.!ornflower l+e ". t-is. ack!olor @ !olor.Trans$arentA .nswer: . Ex$lanation: T-e Trans$arenc/?e/ @ !olor.Maroon s$ecif/ t-e color t-at t-e trans$arent re$resents t-e area on t-e form. Wit- t-is settin, t-e 3l+e will res$ond to t-e mo+se. 8ncorrect .nswers: : *o+ s-o+ld not +se t-e ack!olor @ !olor.Maroon. T-is will determine t-e 3ack,ro+nd color of t-e form. !: *o+ s-o+ld not +se t-is code se,ment. T-e mana,er does not wan t-e 3l+e area to 3e trans$arent. ": *o+ s-o+ld not +se t-e ack!olor @ !olor.Trans$arent. T-e mana,er does not want t-e 3ack,ro+nd to 3e trans$arent. &U)"*I+, & *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ -a#e confi,+red t-ree col+mns to a form and add a Ta3le4a/o+t1anel to t-e form. *o+ want t-e two side col+mns to -a#e a fix widt- of 200 $ixels eac- and anc-or t-e fo+r ed,es of t-e form to t-e control. . !ertkiller .com mana,er wants t-e center col+mn to fill t-e remainin, s$ace7 w-en e#er t-e form is resi9ed. *o+ need to c-an,e t-e !ol+mn0t/le instance t-at re$resents t-e center col+mn6 >ow s-o+ld /o+ set t-e !ol+mn0t/le instance2s 0i9e T/$e $ro$ert/6 .. 0et it to .+to0i9e and t-e Widt- $ro$ert/ to )00F. . 0et it to .3sol+te and t-e Widt- $ro$ert/ to )00F. !. 0et it to 1ercent and t-e Widt- $ro$ert/ to )00F. ". 0et it to .+to0i9e and t-e Widt- $ro$ert/ to 0F. .nswer: ! Ex$lanation: T-is settin, will s-ow t-at t-e col+mn s-o+ld fill t-e remainin, s$ace. 8ncorrect .nswers: .: T-is settin, will allow t-e col+mn to 3e si9ed eno+,- so t-at not an/ of its c-ild controls are cli$$ed. 8n t-is settin, t-e middle will not occ+$/ t-e remainin, free s$ace. : 8f /o+ set it to .3sol+te7 t-e #al+e of t-e Widt- $ro$ert/ will s-ow t-e n+m3er of $ixels for t-e col+mn. ": *o+ need to set t-e !ol+mn0t/le instance2s 0i9e T/$e $ro$ert/ to .+to0i9e and t-e Widt- $ro$ert/ to )00F. Act'altests-com - *.e /ower of 0nowing

070-526

&U)"*I+, 5 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ -a#e added a 0$lit!ontainer control named !ertkiller 0$lit!ontainer to a form. *o+ t-en left t-e control to t-e defa+lt $ro$erties. To t-e ri,-t-most container of t-e 0$lit!ontainer control7 /o+ need to add a 1ro$ert/Brid. W-ic- of t-e followin, code se,ments s-o+ld /o+ +se6 .. 1ro$ert/Brid $ro$ert/Brid @ new 1ro$ert/BridCDA 1anel ri,-t1anel @ C1anelD !ertkiller 0$lit!ontainer.Bet!ontainer!ontrolCDA ri,-t1anel.!ontrol.ddC$or$ert/BridDA . 1ro$ert/Brid $ro$ert/Brid @ new 1ro$ert/BridCDA 1anel ri,-t1anel @ C1anelD !ertkiller 0$lit!ontainer.BetNext!ontrolC$ro$ert/Brid7 tr+eDA ri,-t1anel.!ontrol.ddC$or$ert/BridDA !. 1ro$ert/Brid $ro$ert/Brid @ new 1ro$ert/BridCDA !ertkiller 0$lit!ontainer.!ontainer..ddC$ro$ert/Brid7 E=i,-t1anelEDA ". 1ro$ert/Brid $ro$ert/Brid @ new 1ro$ert/BridCDA !ertkiller 0$lit!ontainer.1anel2.!ontrol..ddC$ro$ert/BridDA .nswer: " Ex$lanation: .n area can 3e di#ided into two containers7 w-ic- is se$arated 3/ a mo#a3le 3ar7 if /o+ +se t-e 0$lit!ontainer control. W-en t-e two 1anels are created7 t-e left one is t-e 1anel) and t-e ri,-t is 1anel2. *o+ are addin, a $anel so it will 3e on t-e ri,-t. *o+ t-en need to s$ecif/ 1anel2. 8ncorrect .nswers: .7 7 !: *o+ s-o+ld not +se t-e .dd met-od of t-e 0$lit!ontainer.!ontainer to add t-e 1ro$ert/Brid. *o+ also s-o+ld not $ass a 1ro$ert/Brid instance to t-e BetNext!ontrol met-od to ret+rn a 1anel instance. T-is will act+all/ retrie#e t-e next ta3-ordered control ,i#en t-e c+rrent control. *o+ also s-o+ld not call t-e Bet!ontainer!ontrol met-od to ret+rn a 1anel instance. T-is will ret+rn t-e lo,ical container of t-e 0$lit!ontainer control. &U)"*I+, 6 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms exam deli#er/ a$$lication. T-is is ,oin, to 3e +sed to access t-e content of t-e exam #ia t-e 8nternet. . We3 rowser named test3rowser is added to t-e control to a form named !ertkiller Form7 w-ic- is define Act'altests-com - *.e /ower of 0nowing

070-526 as follows: C1ermission0etC0ec+rit/.ction."emand7 Name@EF+llTr+stEDD C0/stem.=+ntime.8ntero$0er#ices.!om%isi3leCtr+eDD $+3lic !ertkiller Form : Form F $+3lic !ertkiller FormCD F 8nitiali9e!om$onentCDA G $+3lic #oid Ex$ireCD F G G T-e Ha#a0cri$t-3ased timer t-at is +sed 3/ t-e We3 site for t-e exam -as a f+nction to inform t-e exam deli#er/ a$$lication w-en t-e time -as ex$ired for t-e exam7 w-ic- is t-e followin,: window.external.Ex$ireCDA W-at s-o+ld /o+ do to make s+re t-at t-e Ex$ire met-od of !ertkiller Form is called w-en t-e Ha#a0cri$ f+nction is carr/ o+t6 .. *o+ s-o+ld set t-e "oc+ment."om"oc+ment $ro$ert/ of t-e 3rowser instance to t-e c+rrent instance of t-e !ertkiller Form class. . *o+ s-o+ld set t-e ;35ectFor0cri$tin, $ro$ert/ of t-e 3rowser instance to t-e c+rrent instance of t-e !ertkiller Form class. !. *o+ s-o+ld call t-e .ttac-E#ent>andler of t-e "oc+ment $ro$ert/ of t-e 3rowser instance. ". *o+ s-o+ld call t-e Exec!ommand met-od of t-e "oc+ment $ro$ert/ of t-e 3rowser instance. .nswer: Ex$lanation: *o+ m+st set t-e ;35ectFor0cri$tin, for t-e 3rowser instance to t-e c+rrent instance of t-e !ertkiller Form class. 8ncorrect .nswers: .: T-e $ro$ert/ of t-e "oc+ment."om"oc+ment re$resents t-e tr+e ";M o35ect of an >TM4 doc+ment. !: T-e .ttac-E#ent>andler allows /o+ to attac- a >TM4 "oc+ment ;35ect Model e#ent to an e#ent -andler. ": T-e Exec!ommand met-od allows /o+ to exec+te commands a,ainst ";M doc+ments. &U)"*I+, 7 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a Act'altests-com - *.e /ower of 0nowing

070-526 client com$+ter named !ertkiller -W000< as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to make s+re t-at t-e 1ict+re ox will dis$la/ d/namicall/ loaded ima,es. W-ic- $ro$ert/ will dis$la/ a static ima,e if an/ d/namic ima,e fails to load6 .. ack,ro+nd8ma,e . 8ma,e !. Error8ma,e ". 8nitail8ma,e .nswer: ! Ex$lanation: T-e Error8ma,e $ro$ert/ s$ecifies t-e ima,e t-at s-o+ld 3e dis$la/ed. T-is will -a$$ened onl/ if t-e ima,e t-at /o+ are tr/in, to load d/namicall/ fails. 8ncorrect .nswers: .: T-e ack,ro+nd8ma,e $ro$ert/ s$ecifies a 3ack,ro+nd ima,e w-ic- is +sed 3/ t-e control. : T-e 8ma,e $ro$ert/ s$ecifies t-e ima,e /o+ want t-e 1ict+re ox control to dis$la/. ": T-e 8nitail8ma,e s$ecifies t-e ima,e /o+ want t-e 1ict+re ox control to dis$la/ w-ile t-e ot-er one is loadin,. &U)"*I+, ( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ are de#elo$in, a We3 ser#ice for new +$dates to I+er/ a+tomaticall/7 3/ +se of a Microsoft Windows Forms a$$lication. *o+ t-en add a Notif/8con com$onent named !ertkiller notif/ to t-e a$$lication2s main form. W-ene#er a new +$date is a#aila3le /o+ want t-e followin, 3alloon ti$ to dis$la/ as seen in t-e ex-i3it for 5 seconds.

W-ic- se,ment s-o+ld /o+ +se to write a code to download t-e +$dates if t-e +sers click t-e 3alloon ti$6 .. !ertkiller notif/. allonTi$!lick J@dele,ate F KK "ownload t-e +$dates G !ertkiller notif/.0-ow allonTi$C50007 ENew :$date .#aila3leEA E!lick -ere to downloadE 7 ToolTi$8con.8nfoDA Act'altests-com - *.e /ower of 0nowing

070-526 . !ertkiller notif/.0-ow allonTi$C5DA !ertkiller notif/. alloonTi$8con @ ToolTi$8con.8nfoA !ertkiller . alloon Ti$Title @ ENew :$date .#aila3leEA !ertkiller . alloonTi$Text @ E!lick -ere to downloadEA !ertkiller .!lick J@ dele,ate F KK "ownload t-e +$dates G !. !ertkiller notif/. alloonTi$8con @ ToolTi$8con.8nfoA !ertkiller . alloon Ti$Title @ ENew :$date .#aila3leEA !ertkiller . alloonTi$Text @ E!lick -ere to downloadEA !ertkiller .!lick J@ dele,ate F KK "ownload t-e +$dates G !ertkiller notif/.0-ow allonTi$C5000DA ". !ertkiller notif/.0-ow allonTi$C57 New :$date .#aila3leE7 E!lick -ere to downloadE7 ToolTi$8con.8nfoDA !ertkiller . alloonTi$!lick J@ dele,ate F KK "ownload t-e +$dates G .nswer: . Ex$lanation: *o+ s-o+ld +se an e#ent -andler7 attac- t-e alloonTi$!licked to t-e e#ent and call t-e 0-ow alloon Ti$ met-od of t-e Notif/8con class. W-en a +ser clicks a 3alloon ti$7 a alloonTi$!licked e#ent is raised. 8ncorrect .nswers: 7 !7 ": *o+ s-o+ld not attac- t-e alloonTi$!licked e#en to an e#ent -andler after /o+ -a#e called t-e 0-ow alloonTi$ met-od. .lso note t-at t-e e#ent is raised w-en t-e icon is clicked and not t-e 3alloon ti$. &U)"*I+, ' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ are 3+s/ addin, a Men+0tri$ control7 w-ic- -as an instance of a Tool0tri$Men+ item named test5o38tem7 to a form in a Microsoft Windows Forms a$$lication. T-is item2s dis$la/ text is Ho3. *o+ -a#e recei#ed instr+ctions to add two men+ items to t-e Ho3 men+ item. T-e first item2s dis$la/ text s-o+ld 3e !reate New Ho37 and t-e second one is =+n Ho3. W-ic- code se,ment s-o+ld /o+ +se to $ro,rammaticall/ add t-e two men+ items6

Act'altests-com - *.e /ower of 0nowing

070-526 .. Tool0tri$Men+8tem createNewHo38tem @ new Tool0tri$Men+8temCE!reate New Ho3EDA Tool0tri$Men+8tem r+nHo38tem @ new Tool0tri$Men+8temCE=+n Ho3EDA 5o38tem.!ontainer..ddCcreateNewHo38temDA 5o38tem.!ontainer..ddCr+nHo38temDA . Tool0tri$Men+8tem createNewHo38tem @ new Tool0tri$Men+8temCE!reate New Ho3EDA Tool0tri$Men+8tem r+nHo38tem @ new Tool0tri$Men+8temCE=+n Ho3EDA 5o38tem.;wner.8tems..ddCcreateNewHo38temDA 5o38tem.;wner.8tems..ddCr+nHo38temDA !. Tool0tri$Men+8tem createNewHo38tem @ new Tool0tri$Men+8temCE!reate New Ho3EDA Tool0tri$Men+8tem r+nHo38tem @ new Tool0tri$Men+8temCE=+n Ho3EDA Tool0tri$Men+8temCD items @ new Tool0tri$Men+8temCDFcreate NewHo38tem7 r+nHo38temG 5o38tem."ro$"own8tems..dd=an,eCitemsDA ". Tool0tri$Men+8tem createNewHo38tem @ new Tool0tri$Men+8temCE!reate New Ho3EDA Tool0tri$Men+8tem r+nHo38tem @ new Tool0tri$Men+8temCE=+n Ho3EDA Tool0tri$Men+8temCD items @ new Tool0tri$Men+8temCDFcreate NewHo38tem7 r+nHo38temG 5o38tem.;wner.8tems..dd=an,eCitemsDA .nswer: ! Ex$lanation: For t-e 5o38tem instance /o+ s-o+ld call t-e .dd=an,e. T-e $ro$ert/ of t-e "ro$"own8tems re$resents a collection of c-ild items of t-e 5o38tem instance7 w-ic- allows /o+ to add t-e two items to t-e 5o3 men+ item. 8ncorrect .nswers: .: T-is $ro$ert/ ret+rns an instance of 8!ontainer7 w-ic- re$resents a lo,ical container for ot-er com$onents. : T-e ;wner $ro$ert/ ret+rns t-e Men+ scri$t instance t-at owns t-e Tool0tri$Men+8tem instance. ": T-is action will add t-e two new men+ at t-e same le#el as t-e Ho3 men+ item. &U)"*I+, )0 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0050 as de#elo$in, collateral. *o+ were 3+s/ wit- a task to add a !ontextMen+0tri$ control to a form. W-at s-o+ld /o+ do to dis$la/ a c+stom control as a men+ item of t-e !ontextMen+0tri$ control6 .. .dd a Toolstri$!ontainer control to t-e form and add t-e c+stom control to t-e Act'altests-com - *.e /ower of 0nowing

070-526 !ontrols collection residin, on t-e tool0tri$!ontainer control. *o+ s-o+ld t-en add t-e !ontextMeni0tri$ control to t-e controls of t-e Tool0tri$!ontainer control. . ;f Tool0tri$!ontrol>ost7 create an instance and s$ecif/ /o+r c+stom control instance as a $arameter to t-e cond+ctor. *o+ s-o+ld t-en t-e Tool0tri$!ontrol>ost instance to t-e 8tems collection of t-e !ontextMeni0tri$ control. !. .dd a Toolstri$!ontainer control to t-e form and add t-e c+stom control to t-e !ontrols collection residin, on t-e tool0tri$!ontainer control. *o+ s-o+ld t-en add t-e Toolstri$!ontainer control to t-e controls of t-e !ontextMeni0tri$ controls. ". ;f Tool0tri$!ontrol>ost7 create an instance and s$ecif/ /o+r c+stom control instance as a $arameter to t-e cond+ctor. *o+ s-o+ld t-en t-e !ontextMeni0tri$ controls to t-e collection of t-e Tool0tri$!ontrol>ost instance. .nswer: Ex$lanation: T-e Tool0tri$!ontrol>ost class to -ost a c+stom control as a men+ item in t-e !ontextMeni0tri$. *o+ s-o+ld also t-e c+stom control instance as t-e $arameter to t-e constr+ctor. 8ncorrect .nswers: .7 7 !: T-e Toolstri$!ontainer s-o+ld not 3e +sed to reac- /o+r ,oal. F+rt-ermore7 /o+ cannot -ost a Toolstri$!ontainer control as t-e men+ item in a !ontextMeni0tri$ controls. &U)"*I+, )) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0007 as de#elo$in, collateral. *o+ are 3+s/ addin, a We3 rowser control named7 !ertkiller 3rowser to a form in a Microsoft Windows Form a$$lication. To control t-e na#i,ation of t-e doc+ments7 /o+ add +tton controls and a Text ox control to t-e form7 5+st incase a >TM4 doc+ment needs to e $ro,rammaticall/ $arse t-ro+,- t-e content. W-ic- code se,ment s-o+ld 3e +sed to create an e#ent -andler6 .. 3rowser.Na#i,ated @J dele,ate F >tml"oc+ment doc+ment @ 3rowser."oc+mentA KK1arse t-e doc+ment G . 3rowser.File"ownload @J dele,ate F >tml"oc+ment doc+ment @ 3rowser."oc+mentA KK1arse t-e doc+ment G !. 3rowser."oc+ment!om$leted @J dele,ate F Act'altests-com - *.e /ower of 0nowing

070-526 >tml"oc+ment doc+ment @ 3rowser."oc+mentA KK1arse t-e doc+ment G ". 3rowser.Na#i,atin, @J dele,ate F >tml"oc+ment doc+ment @ 3rowser."oc+mentA KK1arse t-e doc+ment G .nswer: ! Ex$lanation: For t-e "oc+ment!om$lete e#ent7 /o+ s-o+ld create an e#ent -andler. W-en a doc+ment is com$lete in t-e We3 rowser control7 a "oc+ment!om$lete will 3e raised. 8ncorrect .nswers: .: . Na#i,ated for t-e e#ent -andler will raise after t-e We3 rowser control -as 3e,+n wit- t-e downloadin, of t-e >TM4 doc+ment. !: *o+ s-o+ld not create an e#ent -andler for t-e File"ownload e#ent. T-is will raise w-en t-e We3 rowser downloads a file. ": T-is will res+lt in t-e e#ent raise after t-e We3 rowser control na#i,ates to an >TM4 doc+ment. &U)"*I+, )2 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)00 as de#elo$in, collateral. . !ertkiller .com mana,er named .nd/ oot- -as asked /o+ to de#elo$ a c+stom control t-at ex$oses a c+stom e#ent. T-e c+stom e#ent s-o+ld 3e of s+c- a cali3er t-at t-e e#ent -andler for t-e e#ent is a+tomaticall/ added to t-e code w-en /o+ do+3le-click t-e control in t-e desi,ner. >ow s-o+ld /o+ confi,+re t-e control6 .. .$$l/ t-e "efa+ltE#ent attri3+te t-e class t-at $resents t-e c+stom control and s$ecif/ t-e name of t-e e#ent as a $arameter to t-e attri3+te. . ;#erride t-e ;n"+33le!lick met-od on t-e !ontrol class and call t-e .ddE#ent>andler met-od of t-e E#ent"escri$tor class. !. ;#erride t-e ;n"+33le!lick met-od on t-e !ontrol class and call t-e .ddE#ent>andler met-od of t-e E#ent8nfo class. ". .$$l/ t-e "efa+ltE#ent attri3+te t-e class t-at $resents t-e c+stom control and s$ecif/ t-e name of t-e e#ent -andler met-od as a $arameter to t-e attri3+te. .nswer: . Ex$lanation: T-e "efa+ltE#ent attri3+te s$ecifies t-e name of t-e e#ent for w-icAct'altests-com - *.e /ower of 0nowing

070-526 an e#ent -andler s-o+ld 3e created7 w-en do+3le-clickin, t-e control in t-e desi,ner. 8ncorrect .nswers: : *o+ s-o+ld not do t-is. T-is allows /o+ to $ro,rammaticall/ attac- eac- e#ent -andler to an e#ent7 disco#ered #ia reflection. !: "oin, t-is7 will allow /o+ to $ro,rammaticall/ attac- eac- e#ent -andler to an e#ent7 disco#ered #ia reflection. *o+ t-en cannot +se t-is to ,enerate a code for t-e e#ent. ": T-is s$ecifies t-e name of t-e e#ent as a $arameter. &U)"*I+, )< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)<< as de#elo$in, collateral. . !ertkiller .com mana,er named .nd/ oot- -as asked /o+ to create a c+stom control. *o+ want to c+stom control to take action w-en a +ser $resses t-e .ltJ" ke/s. 8t m+st 3e of s+ca nat+re t-at it allows /o+ to $re#ent ot-er control from recei#in, instr+ctions t-at t-e .ltJ" ke/s are $ressed. W-at s-o+ld /o+ do6 .. >andle t-e ?e/"own e#ent. . ;#erride t-e ;n?e/"own met-od. !. ;#erride t-e ;n?e/1ress met-od. ". >andle t-e ?e/1ress e#ent. .nswer: Ex$lanation: T-e ;n?e/"own met-od s$ecifies a ?e/E#ent.r,s instance as a $arameter. T-e ?e/E#ent.r,s class also contains a Modifier ke/s t-at were $ressed. 8ncorrect .nswers: .: T-is will sto$ ot-er controls from ,ettin, instr+ctions t-at t-e .ltJ" ke/s were $ressed. !: T-e ;n?e/1ress is in#oked w-en /o+ $ress a ke/. ;#erridin, t-e ;n?e/1ress will not allow /o+ to find t-e com3ination of t-e modifier ke/s t-at was $ressed. ": T-e ?e/1ress e#ent is raised w-en a ke/ is $ressed. T-is will not allow /o+ to find t-e com3ination of t-e modifier ke/s t-at was $ressed. &U)"*I+, )& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)<< as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication. T-e a$$lication will 3e Act'altests-com - *.e /ower of 0nowing

070-526 s-rink-wra$$ed and sold to end +sers. T-e a$$lication is s$ecified so t-at if a +ser installs it7 it will +ses t-e +ser2s dis$la/ $references to create >el$ ima,es for eacform in t-e a$$lication. W-ic- of t-e followin, code se,ments s-o+ld /o+ +se to allow t-e a$$lication to +$date t-e ima,e if a +ser c-an,es s/stem colors6 L0elect twoM .. 0/stem!olors!-an,ed J@dele,ate F KK:$date t-e >el$ ima,es G . 0/stemE#ents.:ser1reference!-an,ed J@ dele,ateCo35ect sender7 :ser1reference!-an,edE#ent.r,s eD F if Ce.!ate,or/ @@ :ser:ser1reference!ate,or/.!olorD F 0/stem!olor!-an,ed J@ dele,ate F KK:$date t-e >el$ ima,es G G G !. 0/stemE#ents.:ser1reference!-an,ed J@ dele,ateCo35ect sender7 :ser1reference!-an,edE#ent.r,s eD F if Ce.!ate,or/ @@ :ser:ser1reference!ate,or/.!olorD F KK:$date t-e >el$ ima,es G G ". 0/stemE#ents.:ser1reference!-an,ed J@ dele,ate F KK:$date t-e >el$ ima,es G .nswer: .7 ! Ex$lanation: W-en a $reference is c-an,ed7 t-e common lan,+a,e r+ntime raises t-e :ser1reference!-an,ed e#ent. .nd e#en t-e -andler s-o+ld 3e attac-ed to t-e e#ent and +$date t-e >el$ ima,es if t-e !ate,or/ $ro$ert/ is set to color. 8ncorrect .nswers: 7 ": 8t is not necessar/ to +$date t-e >el$ ima,es w-en t-e :ser1reference!-an,ed e#ent is raised. W-en t-e :ser1reference!-an,ed e#ent is raised7 /o+ s-o+ld not -andle t-e 0/stem!olor!-an,e and +$date t-e >el$ ima,es. C#, Integrating 1ata in a Windows Forms Application #$0 &'estions(

Act'altests-com - *.e /ower of 0nowing

070-526 &U)"*I+, )5 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000) as de#elo$in, collateral. *o+ are 3+s/ addin, a Text ox control named !ertkiller Text ox to a form. *o+ are doin, t-is 3/ dra,,in, a !ontact field from t-e "ata 0o+rces window to t-e form. T-e data of t-e Text $ro$erties of t-e !ertkiller Text ox is $art of t-e !ontact field. To na#i,ate t-e records in a data so+rce7 /o+ added two +tton controls to t-e form. W-ic- code se,ment s-o+ld /o+ +se to $ro,rammaticall/ mo#e t-e next record and dis$la/ t-e new #al+e of t-e !ertkiller Text ox2s !ontact field w-en t-e !ertkiller .com +sers click one of t-e +tton controls6 .. indin, 3indin, @ !ertkiller Text ox."ata indin,sCETextEDA 3indin,. indin,Mana,er ase.1osition J@ )A . indin, 3indin, @ !ertkiller Text ox."ata indin,sCE!ontactEDA 3indin,. indin,Mana,er ase.1osition J@ )A !. !ertkiller Text ox. indin,!ontextCETextED.1osition J@ )A ". !ertkiller Text ox. indin,!ontextCE!ontactED.1osition J@ )A .nswer: . Ex$lanation: T-e Windows Forms control -as a "ata indin,s $ro$ert/ t-at re$resents a collection of indin, instances. W-en data so+rce mem3ers c-an,e7 t-e indin, class allows a control2s $ro$ert/ to 3e +$dated a+tomaticall/. 8ncorrect .nswers: 7 !7 ": W-en /o+ $ass t-e #al+e !ontact as t-e $arameter to t-e "ata indin,s $ro$ert/7 /o+ s-o+ld not ,et a indin, instance Mana,er ase instance. F+rt-ermore /o+ s-o+ld not $ass t-e name of t-e $ro$ert/ as a $arameter to t-e indin,!ontext $ro$ert/. &U)"*I+, )6 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ -a#e called a stored $roced+re t-at ret+rns a row set t-at -as data a3o+t electrical c-i$s. *o+ t-en load t-e $art data in a "ata0et instance named testdata0et. T-e "ata0et -as a sin,le "ata Ta3le instance. T-e "ataTa3le instance2s Ta3leName $ro$ert/ is set to 1art. W-ic- code se,ment s-o+ld /o+ +se to dis$la/ t-e $art data in a "ataBrid%iew control named testdataBrid%iew6 .. testdataBrid%iew."ata0o+rce @ testdata0et. Ta3lesC0DA testdataBrid%iew."ataMem3er @ E1artEA Act'altests-com - *.e /ower of 0nowing

070-526 . testdataBrid%iew."ata0o+rce @ testdata0et. Ta3les CE1artEDA testdataBrid%iew."ataMem3er @ E"ataTa3leEA !. testdataBrid%iew."ata0o+rce @ testdata0etA testdataBrid%iew."ataMem3er @ E1artEA ". testdataBrid%iew."ata0o+rce @ testdata0etA testdataBrid%iew."ataMem3er @ ETa3leName.1artEA .nswer: ! Ex$lanation: To o3tain /o+r o35ecti#e /o+ s-o+ld set t-e "ataBrid%iew control "ata0o+rce $ro$ert/ to t-e "ata0et instance. *o+ also s-o+ld set t-e "ataBrid%iew control "ata0o+rce $ro$ert/ to t-e"ataMem3er $ro$ert/ to $art. 8ncorrect .nswers: .7 7 ": 8t is not ,ood if /o+ set t-e "ataMem3er $ro$ert/ if /o+ set e- "ata0o+rce $ro$ert/ to t-e "ataTa3le instance w-ic- si,nifies t-e 1art data. F+rt-ermore7 /o+ s-o+ld not set t-e "ataMem3er $ro$ert/ to Ta3leName.1art. &U)"*I+, )7 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ are 3+s/ addin, a !om3o ox control name test!om3o ox to a form. W-ic- code se,ment s-o+ld /o+ +se to $o$+late t-e !om3o ox wit- a list of #alid Microsoft 0N4 0er#er instances w-ic- is re,istered on t-e s/stem w-ere t-e a$$lication is r+nnin,6 .. "ataTa3le dataTa3le @ 0Il"ata0o+rceEn+merator.8nstance.Bet"ata0o+rceCDA test!om3o ox."ata0o+rce @ dataTa3leA test!om3o ox."is$la/Mem3er @ OEF0er#erNameGPF8nstanceNameGEA test!om3o ox.%al+eMem3er @ E8nstanceNameEA test!om3o ox.Format0trin, @ EF0GF)GEA . "ataTa3le dataTa3le @ 0Il"ata0o+rceEn+merator.8nstance.Bet"ata0o+rceCDA Foreac- C"ata=ow row in dataTa3le.=owsD F strin, data0o+rce @ Cstrin,D rowCE8nstanceNameEDA if CrowCE8nstanceNameED Q@ " N+ll.%al+eD F data0o+rce J@ strin,.FormatOEPF0GE7rowCE0er#erNameEDD2 G test!om3o ox.8tems..ddCdata0o+rceDA G !. "ataTa3le dataTa3le @ 0Il"ata0o+rceEn+merator.8nstance.Bet"ata0o+rceCDA test!om3o ox."ata0o+rce @ dataTa3leA test!om3o ox."is$la/Mem3er @ E0er#erNameEA Act'altests-com - *.e /ower of 0nowing

070-526 test!om3o ox.%al+eMem3er @ E8nstanceNameEA ". "ataTa3le dataTa3le @ 0Il"ata0o+rceEn+merator.8nstance.Bet"ata0o+rceCDA Foreac- C"ata=ow row in dataTa3le.=owsD F strin, data0o+rce @ Cstrin,D rowCE0er#erNameEDA if CrowCE8nstanceNameED Q@ " N+ll.%al+eD F data0o+rce J@ strin,.FormatOEPF0GE7rowCE8nstanceNameEDD2 G test!om3o ox.8tems..ddCdata0o+rceDA G .nswer: . Ex$lanation: T-e 0Il"ata0o+rceEn+merator class $ermits /o+ to en+merate re,istered 0N4 ser#er instances. 8f /o+ want to ,et -old of t-e instance7 /o+ s-o+ld call t-e Bet"ata0o+rce met-od. T-is will ret+rn an instance of fo+r col+mns. 8ncorrect .nswers: 7 !7 ": *o+ do not need to set t-e "ata0o+rce $ro$ert/ of test!om3o ox to t-e "ataTa3le instance ret+rned from Bet"ata0o+rce. T-is will not dis$la/ t-e #al+es from t-e 0er#erName and 8nstanceName field as a sin,le #al+e. &U)"*I+, )( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0002 as de#elo$in, collateral. ;ne of t-e assistant a$$lication de#elo$ers named =or/ .llen were asked to exec+te two 0N4 commands w-ic- can +$date t-e data in se$arate Microsoft 0N4 0er#er 2005 data3ases. W-en e#er t-e second command fails7 t-e first command s-o+ld 3e rolled 3ack. W-at s-o+ld =or/ .llen do6 .. Exec+te 3ot- t-e commands wit-in a sin,le Transaction0co$e 3lock and call t-e !om$lete met-od of t-e Transaction0co$e instance if 3ot- commands exec+te s+ccessf+ll/. . Exec+te 3ot- t-e commands in se$arate Transaction0co$e 3lock and call t-e !om$lete met-od of t-e second Transaction0co$e instance if 3ot- commands exec+te s+ccessf+ll/. !. Exec+te 3ot- t-e commands wit-in a sin,le Transaction0co$e 3lock and call t-e !om$lete met-od of t-e Transaction0co$e instance if eac- command exec+ted s+ccessf+ll/. ". Exec+te 3ot- t-e commands in se$arate Transaction0co$e 3lock and call t-e !om$lete met-od of t-e Transaction0co$e instance if eac- command exec+ted s+ccessf+ll/. .nswer: . Act'altests-com - *.e /ower of 0nowing

070-526

Ex$lanation: ot- of t-e commands s-o+ld 3e exec+ted wit-in a sin,le Transaction0co$e 3lock. T-is will allow 3ot- of t-e commands to exec+te wit-in t-e same context of t-e same transaction. 8ncorrect .nswers: 7 ": *o+ s-o+ld not exec+te eac- command in a se$arate Transaction0co$e 3lock. otof t-e commands s-o+ld 3e exec+ted wit-in a sin,le Transaction0co$e 3lock. !: efore t-e second command s+cceeds7 /o+ s-o+ld not call t-e !om$lete met-od. &U)"*I+, )' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0002 as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to call a stored $roced+re t-at ret+rn ima,es from a Microsoft 0N4 0er#er 2005 data3ase. *o+ want to +se t-e 0Il"ata=eader class to read t-e ret+rned ima,es. To ens+re t-at eac- ima,e is ret+rned as a 0tream instance t-at can 3e read on demand7 w-at s-o+ld /o+ do6 .. To t-e Exec+te=eader met-od of a 0Il!ommand instance7 s$ecif/ !ommand e-a#ior.0eI+ential.ccess as a $arameter. . For t-e 0Il!onnection instance t-at re$resents t-e data3ase connection7 set t-e 1acket 0i9e connection strin, $ro$ert/ to 0. !. For a 0Il!ommand instance7 call t-e 1re$are met-od followed 3/ t-e Exec+teNonN+er/ met-od. ". !all t-e e,inTransaction met-od of a 0Il!onnection instance and s$ecif/ 8solation4e#el.0eriali9a3le as a $arameter. .nswer: . Ex$lanation: *o+ need to s$ecif/ !ommand e-a#ior.0eI+ential.ccess as a $arameter. T-e Microsoft .NET "ata1ro#ider for 0N4 0er#er will load t-e ret+rned data as steam. 8ncorrect .nswers: : *o+ s-o+ld not set t-e si9e to 0. T-is will not instr+ct t-e Microsoft .NET "ata1ro#ider for 0N4 0er#er will load t-e ret+rned data as steam. !: T-e Exec+teNonN+er/ met-od exec+tes 0N4 commands and does not ret+rn row sets. ": T-e 8solation4e#el.0eriali9a3le en+meration mem3er s-ows t-at a lock s-o+ld 3e $laced to $re#ent transactions from +$datin, or insertin, rows into t-e "ata0et instance. &U)"*I+, 20 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com Act'altests-com - *.e /ower of 0nowing

070-526 consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0002 as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to im$ort data from a flat file into a into a Microsoft 0N4 0er#er 2005 data3ase ta3le. W-at s-o+ld /o+ do to +se t-e 0Il +lk!o$/ class to im$ort t-e data6 .. From t-e flat file7 im$ort data into a "ataTa3le instance. . Make s+re t-at t-e col+mn order in t-e data3ase ta3le matc-es t-e field order in t-e flat file. !. !reate a stored $roced+re to co$/ t-e data to t-e data3ase ta3le. ". 1+t t-e c$.exe tool in t-e o+t$+t director/ of t-e assem3l/ t-at -as t-e code. .nswer: . Ex$lanation: *o+ need to im$ort data into a "ataTa3le instance. 8ncorrect .nswers: : *o+ do not need to make s+re t-at t-e col+mn order in t-e data3ase ta3le matc-es t-e field order in t-e flat file. !: T-ere is no need to create a stored $roced+re to co$/ t-e data to t-e data3ase ta3le. ": T-e c$.exe tool is a command line t-at is t-e eI+i#alent of t-e mana,ed 0Il +lk!o$/ class. *o+ do not need t-at. &U)"*I+, 2) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0002 as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to create a "ata0et dia,ram t-at models a one-to-man/ relations-i$ 3etween $atients and treatments as seen in t-e ex-i3it:

Act'altests-com - *.e /ower of 0nowing

070-526

W-en /o+ seriali9e instance of t-e created "ata0et com$onent /o+7 /o+ recei#ed t-e followin, RM4: S1atientT S1atient8"T )00SK1atient8"T S1atientNameT.m/ BoodSK1atientNameT SK1atientT STreatmentT STreatment8"T )000SKTreatment8"T S1atient8"T )00SK1atient8"T S!odeT"T1SK!odeT SKTreatmentT T-e R4M s-o+ld 3e as follows S1atientT S1atient8"T )00SK1atient8"T S1atientNameT.m/ BoodSK1atientNameT STreatmentT STreatment8"T )000SKTreatment8"T S!odeT"T1SK!odeT SKTreatmentT SK1atientT W-at s-o+ld /o+ do to c-an,e t-e dialo, 3ox so t-at t-e R4M in ,enerated correctl/6 .. *o+ s-o+ld select t-e Treatment from t-e 1arent Ta3le list and t-e 1atient from t-e !-ild Ta3le list. . *o+ s-o+ld select t-e ot- =elation and Forei,n ?e/ !onstraint o$tion. Act'altests-com - *.e /ower of 0nowing

070-526 !. *o+ s-o+ld select t-e Forei,n ?e/ !onstraint ;nl/ o$tion. ". *o+ s-o+ld select t-e Nested =elation o$tion. .nswer: " Ex$lanation: T-e Nested =elation o$tion will indicate t-at elements t-at is t-e same as t-e c-ild rows of t-e relation s-o+ld 3e nested as c-ild elements t-at corres$onds to t-e $arent row. 8ncorrect .nswers: .: *o+ s-o+ld not do t-is. . one-to-man/ relation exits 3etween t-e $atients and treatments. : T-is will s-ow t-at no relation exits 3etween t-e two ta3les. !: T-is will create a forei,n ke/ constraint 3etween t-e c-ild ta3le and t-e $arent ta3le. &U)"*I+, 22 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ are 3+s/ +sin, t-e Rml"oc+ment class to control an RM4 doc+ment. 8f t-e RM4 attri3+te is modified and inserted7 /o+ need to $erform #alidation and ret+rn t-e Rml"oc+mant instance to t-e ori,inal state if t-e #alidation fails. W-ic- of t-e followin, e#ents s-o+ld /o+ +se to -andle t-e e#ents of t-e Rml"oc+ment class6 .. Node!-an,ed and Node8nsertin, . Node!-an,ed and Node8nserted !. Node!-an,in, and Node8nserted ". Node!-an,in, and Node8nsertin, .nswer: " Ex$lanation: W-en t-e Rml node is a3o+t to c-an,e7 an Node!-an,in, e#ent is raised. 0o /o+ need to -andle t-e Node!-an,in, and Node8nsertin, e#ents. 8ncorrect .nswers: .: W-en t-e node -as c-an,ed and t-en t-e e#ent is raised7 it will 3e too late. *o+ s-o+ld not -andle t-e Node!-an,ed e#ent. : W-en t-e node -as c-an,ed and t-en t-e e#ent is raised7 it will 3e too late. *o+ s-o+ld not -andle t-e Node!-an,ed e#ent. T-e Node8nserted will also raise after t-e e#ent -as -a$$ened. !: *o+ s-o+ld not -andle t-e Node!-an,ed e#ent. T-e Node8nserted will also raise after t-e e#ent -as -a$$ened. &U)"*I+, 2< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com Act'altests-com - *.e /ower of 0nowing

070-526 network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ -a#e to read lar,e amo+nts of RM4 data. T-e data resides on an external data so+rce. *o+ need to read t-e RM4 data and #alidate it as it is read. W-ic- of t-e followin, classes s-o+ld /o+ +se w-ic- will 3e most memor/-efficient wa/6 .. "ata0et . Rml=eader !. Rml"ata"oc+ment ". Rml"oc+ment .nswer: Ex$lanation: 8f lar,e amo+nt of data is read7 /o+ s-o+ld +se t-e RM4=eader class. 8t re$resents a forward-onl/ and read-onl/. T-is is a #er/ efficient wa/ 3eca+se t-e doc+ment does not need to 3e loaded into t-e memor/. 8ncorrect .nswers: .: T-e "ata0et re$resents disconnected relational data and t-e data need to 3e in t-e memor/. !: T-e Rml"ata"oc+ment im$lements t-e f+nctionalit/ of t-e Rml"oc+ment class and t-e "ata0et class. ": T-e Rml"oc+ment im$lements t-e RM 4"oc+ment ;35ect Model. &U)"*I+, 2& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ are 3+s/ +sin, t-e RmlWriter class to write lar,e amo+nt of RM4 data to a $-/sical de#ice #ia a 3+ffer stream. W-ic- met-od s-o+ld /o+ +se to write all 3+ffered data in t-e stream to t-e de#ice wit-o+t losin, an/ 3+ffered data6 .. WriteF+llEndElement . Fl+s!. !lose ". WriteEnd"oc+ment .nswer: Ex$lanation: T-e fl+s- met-od fl+s-es t-e +nderl/in, stream 3/ writin, all 3+ffered data to t-e +nderl/in, de#ice and it does not loose an/ data. Act'altests-com - *.e /ower of 0nowing

070-526 8ncorrect .nswers: .: T-e WriteF+llEndElement met-od closes t-e c+rrent doc+ment w-ic- is o$en. !: T-e !lose met-od closes t-e +nderl/in, stream. T-is will ca+se /o+ to loose data. ": T-e WriteEnd"oc+ment met-od closes all t-e o$en doc+ments. C#, Implementing /rinting and 2eporting F'nctionalit! in a Windows Forms Application #$0&'estions( &U)"*I+, 25 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. T-e mana,er -as told /o+ to de#elo$ a Microsoft Windows Forms a$$lication w-ic- -as $rintin, ca$a3ilities. From w-ic- of t-e followin, 3ase s-o+ld /o+ deri#e /o+ class to create a class t-at will s-ow /o+ t-e reI+ired dialo, 3ox6 .. 1a,e0et+$"ialo, . 1rint!ontrollerWit-0tat+s"ialo, !. 1rint"ialo, ". 1rint1re#iew"ialo, .nswer: Ex$lanation: *o+ s-o+ld ,et /o+ class from t-e 1rint!ontrollerWit-0tat+s"ialo,. T-is will allow /o+ to extend t-e 1rint!ontroller. 8ncorrect .nswers: .: T-e 1a,e0et+$"ialo, $resent t-e standard 1a,e 0et+$ dialo, 3ox. T-e dialo, 3ox does not s-ow t-e stat+s of a $rint. !: T-e 1rint"ialo, s-ows t-e 1rint dialo, 3ox. ": T-e 1rint1re#iew"ialo, s-ows t-e 1rint 1re#iew dialo, 3ox. T-is will not dis$la/ t-e stat+s of t-e $rint 5o3. &U)"*I+, 26 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms res+me 3+ilder a$$lication. W-ic- code se,ment s-o+ld /o+ +se to allow +sers to see a $rinted res+me wit-o+t $rintin, t-e doc+ment6 L:se a modal dialo, 3oxM .. 1rint1re#iew"ialo, dialo, @ new 1rint1re#iew"ialo,CDA Act'altests-com - *.e /ower of 0nowing

070-526 dialo,."oc+ment @ doc+mentA dialo,.0-ow"ialo,CDA . 1rint1re#iew"ialo, dialo, @ new 1rint1re#iew"ialo,CDA dialo,."oc+ment @ doc+mentA dialo,.0-owCDA !. 1rint"ialo, dialo, @ new 1rint"ialo,CDA dialo,."oc+ment @ doc+mentA dialo,.0-owCDA ". 1rint"ialo, dialo, @ new 1rint"ialo,CDA dialo,."oc+ment @ doc+mentA dialo,.:seER"ialo, @ tr+e dialo,.0-ow"ialo,CDA .nswer: Ex$lanation: T-e 1rint1re#iew"ialo, class re$resents t-e standard 1rint 1re#iew dialo, 3ox. Wit- t-is /o+ can $re#iew t-e doc+ment 3efore /o+ $rint it. 8ncorrect .nswers: .7 !7 ": T-e 0-ow met-od s-ows a modeless dialo, 3ox and not t-e modal dialo, 3ox. T-e 1rint"ialo, class re$resents t-e standard 1rint dialo, 3ox. 8t does not allow /o+ to $re#iew t-e doc+ment. &U)"*I+, 27 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ creatin, a 1rint"oc+ment instance t-at re$resents a re$ort to $rint. W-ic- of t-e followin, e#ent will $ro,rammaticall/ c-an,e t-e $a,e settin,s of indi#id+al $a,es as t-e/ are $rinted6 .. N+er/1a,e0ettin,s . e,in1rint !. 1rint1a,e ". End1a,e .nswer: . Ex$lanation: T-e N+er/1a,e0ettin,s is raised 3efore t-e $rintin, starts. *o+ can t-en modif/ t-e $a,e. 8ncorrect .nswers: : T-e e,in1rint is raised 3efore t-e first $a,e is $rint. *o+ need t-is for m+lti$le $a,e settin,s. !: T-e 1rint1a,e raise an e#ent w-en a $a,e is $rint7 /o+ cannot c-an,e settin,s at t-at sta,e. Act'altests-com - *.e /ower of 0nowing

070-526

&U)"*I+, 2( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ were ,i#en instr+ctions to de#elo$ a $rint dri#er license. T-e com$onent t-at /o+ will +se s-o+ld ,rant $ermission to access all t-e $rinters t-at are connected to t-e client com$+ters. W-at s-o+ld /o+ do to ste$ 3/ ste$ s$ecif/ sec+rit/ to make s+re t-at a$$lications cannot +se /o+r com$onent +nless t-e/ are ,ranted an +nrestricted $rintin, $ermission6 .. !all t-e "emand met-od on a 1rintin,1ermission instance wit- t-e 4e#el $ro$ert/ set to 1rintin,1ermission4e#el..ll1rintin,. . !all t-e "emand met-od on a 1rintin,1ermission instance wit- t-e 4e#el $ro$ert/ set to 1rintin,1ermission4e#el.Nol1rintin,. !. !all t-e .ssert met-od on a 1rintin,1ermission instance wit- t-e 4e#el $ro$ert/ set to 1rintin,1ermission4e#el..ll1rintin,. ". !all t-e .ssert met-od on a 1rintin,1ermission instance wit- t-e 4e#el $ro$ert/ set to 1rintin,1ermission4e#el.No1rintin,. .nswer: . Ex$lanation: W-en +sin, t-e "emand met-od7 ill demand t-e callers in a -i,-er stack a s$ecific $ermission. T-e a$$lications t-at are ,ranted +nrestricted $rintin, $ermissions can +se t-e $rint dri#er license. 8ncorrect .nswers: : T-e "emand met-od on a 1rintin,1ermission is t-e same as $ermission to $rint. !7 ": T-e .ssert met-od7 /o+ can make s+re t-at t-e code is sec+re and $re#ent a f+ll stack walk from w-et-er all callers in t-e call stack are ,ranted t-e $ermission. &U)"*I+, 2' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ creatin, a Microsoft Windows Forms a$$lications for t-e sec+rit/ a,enc/. T-e a$$lication is +sed to $rint sec+rit/-related doc+ments. T-e/ also want t-e doc+ment to 3e watermarked on eac- $a,e. From w-ic- 3ase class wo+ld /o+ o3tain /o+r class to create a class t-at meets t-e reI+irements6 .. 1rint"oc+ment Act'altests-com - *.e /ower of 0nowing

070-526 . 1rint1re#iew!ontrol !. 1rint!ontroller ". 1rint1re#iew"ialo, .nswer: . Ex$lanation: T-e 1rint"oc+ment allows /o+ to o#erride t-e ;n1rint1a,e met-od w-ic- will $rint a sec+re watermark on eac- $a,e. 8ncorrect .nswers: : T-e 1rint1re#iew!ontrol re$resents a c+stomi9ed $rint $re#iew control. *o+ t-en can add t-is to t-e form 3+t /o+ cannot c+stomi9e t-e $rintin, $rocess. !: T-e 1rint!ontroller allow /o+ to control t-e $rintin, $rocess 3+t cannot force sec+re watermarks. ": T-e 1rint1re#iew"ialo, s-ows t-e 1rint 1re#iew dialo, 3ox. *o+ cannot c+stomi9e t-e $rintin, $rocess. &U)"*I+, <0 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment and a Finance de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ creatin, a com$onent t-at allows t-e +sers in t-e Finance de$artment to $rint dail/ re$orts. *o+ want t-e com$onent to ,rant $ermission to access all t-e $rinters on t-e client com$+ters of t-e +sers. W-at s-o+ld /o+ do to $ro,rammaticall/ s$ecif/ sec+rit/ to sto$ a f+ll stack walk from 3ein, $erformed w-en t-e com$onent $rints t-e re$ort6 .. !all t-e "emand met-od on a f+ll/-restricted 1rintin,1ermission instance. . !all t-e "emand met-od on an +nrestricted 1rintin,1ermission instance. !. !all t-e .ssert met-od on a f+ll/-restricted 1rintin,1ermission instance. ". !all t-e .ssert met-od on an +nrestricted 1rintin,1ermission instance. .nswer: " Ex$lanation: For /o+ to create an +nrestricted 1rintin,1ermission7 /o+ s-o+ld create an instance of t-e 1rintin,1ermission class and $ass t-e 1rintin,1ermission4e#el..ll1rintin, en+meration mem3er or t-e 1ermission0tate.:nrestricted en+meration mem3er as a $arameter. 8ncorrect .nswers: .7 : T-e "emand met-od will demand t-at a stack walk 3e $erformed to find o+t if all callers -i,-er in t-e stack -a#e $ermission to $rint. T-is is t-en done for eac- doc+ment t-at needs to 3e $rinted. !: T-e .ssert met-od on a f+ll/-restricted 1rintin,1ermission instance is t-e same as not demandin, $ermission to $rint.

Act'altests-com - *.e /ower of 0nowing

070-526 &U)"*I+, <) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment and a Finance de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00)7 as de#elo$in, collateral. *o+ are +sin, t-e 1rint1re#iew"ialo, class to $ermit t-e +sers in t-e Finance de$artment to -a#e a $re#iew of t-ere doc+ments. *o+ need to sto$ a #iewed $a,e in t-e doc+ment from 3ein, a+tomaticall/ resi9ed w-en t-e dialo, 3ox re$resented 3/ t-e 1rint1re#iew"ialo, instance is resi9ed. W-at s-o+ld /o+ do to confi,+re t-e 1rint1re#iew!ontrol instance of t-e 1rint1re#iew"ialo, instance6 .. *o+ s-o+ld set t-e .+toUoom $ro$ert/ to Tr+e. . *o+ s-o+ld set t-e Uoom $ro$ert/ to )00. !. *o+ s-o+ld set t-e Uoom $ro$ert/ to ). ". *o+ s-o+ld set t-e .+toUoom $ro$ert/ to False. .nswer: " Ex$lanation: 8f it is set to False7 it will s-ow t-at t-e $a,e s-o+ld not a+tomaticall/ 3e resi9ed w-en t-e dialo, 3ox is resi9ed. 8ncorrect .nswers: .: 8f t-e .+toUoom $ro$ert/ is set to Tr+e7 it will s-ow t-at t-e $a,e 3e resi9ed w-en t-e dialo, 3ox is resi9ed. 7 !: 0ettin, t-e #al+e to )00 $ercent w-ic- is t-e same as )7 will s+$$ort a decimal #al+e t-at s-ows t-e 9oom le#el of t-e $re#iewed $a,e. T-is -as not effect w-en t-e $a,e is a+tomaticall/ resi9ed. &U)"*I+, <2 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment and a Bra$-ics de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ creatin, an instance of t-e 1rint1re#iew!ontrol class named ,ra$-ic$rint1re#iew!ontrol to allow t-e +sers in t-e Bra$-ics de$artment to $re#iew t-eir $rinted doc+ments. W-ic- code se,ment is +sed to defa+lt t-e $re#iew to a 9oom le#el of 50 $ercent and a#ert text from a$$earin, 5a,,ed6 .. $rint1re#iew!ontrolUoom @ 0.5A $rint1re#iew!ontrol.:se.nti.lias @ tr+eA . $rint1re#iew!ontrolUoom @ 0.5A $rint1re#iew!ontrol.:se.nti.lias @ falseA !. $rint1re#iew!ontrolUoom @ 50A Act'altests-com - *.e /ower of 0nowing

070-526 $rint1re#iew!ontrol.:se.nti.lias @ falseA ". $rint1re#iew!ontrolUoom @ 0.05A $rint1re#iew!ontrol.:se.nti.lias @ tr+eA .nswer: . Ex$lanation: T-e 0.5 is t-e same as 50 $ercent. *o+ m+st set t-e :se.nti.lias to tr+e. 8ncorrect .nswers: 7 !: *o+ m+st not set t-e :se.nti.lias to false. T-is will disa3le anti-aliasin,. ": T-is settin, id wron,7 0.05 is not 50 $ercent. &U)"*I+, << *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ creatin, a Microsoft Windows Forms a$$lications wit- $rintin, s+$$ort. *o+ were asked to raise a c+stom e#ent named 1a,e!-an,ed. From w-ic- 3ase class wo+ld /o+ o3tain /o+r class to create a class t-at meets t-e reI+irements wit- t-e minimal code c-an,es6 .. 1rint"oc+ment . 1rint1re#iew!ontrol !. 1rint!ontroller ". 1rint1re#iew"ialo, .nswer: Ex$lanation: T-e 1rint1re#iew!ontrol re$resents a c+stomi9ed $rint $re#iew control. *o+ can also raise c+stom e#ents. 8ncorrect .nswers: .: T-e 1rint"oc+ment is a doc+ment t-at can 3e $rinted. !: T-e 1rint!ontroller allow /o+ to control t-e $rintin, $rocess 3+t not to $re#iew t-e doc+ment. ": T-e 1rint1re#iew"ialo, s-ows t-e 1rint 1re#iew dialo, 3ox. &U)"*I+, <& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. T-e followin, code was added to add a 1rint1re#iew!ontrol instance to a 1anel control named test$anel. Act'altests-com - *.e /ower of 0nowing

070-526 1rint1re#iew!ontrol $rint1re#iew @ new 1rint1re#iew!ontrolCDA $rint1re#iew.!ol+mns @ 2A $rint1re#iew.=ows @ 2A $rint1re#iew."ock @ "ock0t/le.FillA test$anel.!ontrols..ddC$rint1re#iewDA W-en /o+ r+n t-e a$$lication t-at -as t-is code7 /o+ recei#ed t-e followin, messa,e on t-e 1anel control. "oc+ment does not contain an/ $a,es. W-at m+st /o+ do to allow a $a,e to 3e dis$la/ed7 w-en r+nnin, t-e a$$lication6 .. *o+ s-o+ld set t-e 0tart1a,e $ro$ert/ of $rint1re#iew to ) . *o+ s-o+ld set t-e %isi3le $ro$ert/ of $rint1re#iew to tr+e !. *o+ s-o+ld call t-e 0-ow met-od of $rint1re#iew ". *o+ s-o+ld set t-e "oc+ment $ro$ert/ of $rint1re#iew to an instance of 1rint"oc+ment .nswer: " Ex$lanation: To dis$la/ a $re#iew of a doc+ment w-en t-e "oc+ment $ro$ert/ is set7 /o+ s-o+ld +se t-e 1rint1re#iew!ontrol. 8ncorrect .nswers: .: T-e 0tart1a,e $ro$ert/ -as no effect if t-e "oc+ment$ro$ert/ is not set to a 1rint"oc+ment instance. : T-is s-ows t-at t-e controls s-o+ld 3e #isi3le. !: T-e $ro$ert/ -as no effect if t-e "oc+ment$ro$ert/ is not set. C#, )n.ancing Usa ilit! #7 &'estions( &U)"*I+, <5 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at allows t-e com$+ter en,ineers to desi,n circ+it 3oards for different t/$es of -ardware. *o+ t-en create a c+stom control t-at $ortra/s t-e desi,n s+rface. W-ic- of t-e followin, e#ent s-o+ld /o+ -andle so t-at /o+ can -i,-li,-t t-e a#aila3le areas on t-e desi,n s+rface w-ere a com$onent can 3e dro$$ed6 .. "ra,Enter . N+er/!ontin+e"ra, !. Bi#eFeed3ack ". "ra,;#er .nswer: " Act'altests-com - *.e /ower of 0nowing

070-526

Ex$lanation: T-e "ra,;#er e#ent will 3e raised if t-e mo+se $ointer will mo#e o#er a control d+rin, a dra,-and-dro$ action. 8ncorrect .nswers: .: T-e "ra,Enter e#ent will raise onl/ if t-e mo+se $ointer enters a control d+rin, a dra,-and-dro$ action. : T-e N+er/!ontin+e"ra, e#ent is raise w-en t-e mo+se or ke/3oard 3+tton state c-an,es. !: T-e Bi#eFeed3ack e#ent is raised w-en a dra,-and-dro$ action is started. &U)"*I+, <6 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at allows t-e com$+ter en,ineers to desi,n circ+it 3oards for different t/$es of -ardware. T-e electronic $arts exits as nodes7 on t-e main form7 w-ic- reside in a Tree%iew control named testtree%iew. T-e Tree%iew2s .llow"ro$ $ro$ert/ is set to false and a 1anel control $ro#ides t-e drawin, s+rface. *o+ want t-e "e#elo$ment +sers to dra, t-e com$onents to t-e drawin, s+rface. W-ic- of t-e followin, code se,ments is +sed to write code to 3e,in a dra,-and-dro$ o$eration6 .. testtree%iew."ra,Enter J@ dele,ateCo35ect sender7 "ra,E#ent.r,s eD F "o"ra,"ro$Ce."ata7 "ra,"ro$Effects.!o$/DA G . testtree%iew."ra,4ea#e J@ dele,ate F "o"ra,"ro$Ctesttree%iew.0electedNode7 "ra,"ro$Effects.!o$/DA G !. testtree%iew."ra,Enter J@ dele,ateCo35ect sender7 "ra,E#ent.r,s eD F "o"ra,"ro$Ce.8tem7 "ra,"ro$Effects.!o$/DA G ". testtree%iew."ra,Enter J@ dele,ateCo35ect sender7 "ra,E#ent.r,s eD F "o"ra,"ro$Ctesttree%iew.0electedNode7 "ra,"ro$Effects.!o$/DA G .nswer: ! Ex$lanation: 8f /o+ -andle t-e 8tem"ra, e#ent of t-e Tree%iew control7 an e#ent will raise w-en t-e +ser 3e,ins to dra, a node in t-e Tree%iew control. Act'altests-com - *.e /ower of 0nowing

070-526 8ncorrect .nswers: .7 ": T-e Mo+seEnter e#ent of t-e Tree%iew control s-o+ld not 3e +sed. 8t will raise an e#ent e#er/ time t-e mo+se $ointer enterst-e area w-ic- is occ+$ied 3/ t-e Tree%iew control. T-e "ra,Enter e#ent of t-e Tree%iew control s-o+ld not 3e +sed7 3eca+se t-e .llow"ro$ is set to false. : T-e "ra,4ea#e of t-e Tree%iew control s-o+ld not 3e +sed7 3eca+se t-e .llow"ro$ is set to false. &U)"*I+, <7 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00)' as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at -as locali9ed reso+rces for t-e .ra3ic lan,+a,e. W-ic- code se,ment is +sed to dis$la/ all c+rrencies in t-e format +sed 3/ E,/$t6 .. T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEarEDA . T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEarEDA !. T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEar-EBEDA ". T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEar-EBEDA .nswer: " Ex$lanation: T-e !+rrent!+lt+re $ro$ert/ s$ecifies t-e c+lt+re to +se for formattin, n+m3ers7 c+rrencies7 dates7 and time. T-e c+lt+re ar-EB is for t-e .ra3ic lan,+a,e inE,/$t. 8ncorrect .nswers: .7 7 !: T-e !+rrent:8!+lt+re identifies t-e c+lt+re to 3e +sed 3/ a reso+rce mana,er7 w-ic- load locali9ed reso+rces. F+rt-ermore7 /o+ s-o+ld not s$ecif/ t-e ar to t-e constr+ct+re of !+lt+re8nfo. T-e ar #al+e re$resents a ne+tral for t-e .ra3ic lan,+a,e. &U)"*I+, <( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00&' as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at -as locali9ed reso+rces for t-e Frenc- lan,+a,e. W-ic- code se,ment is +sed to a+tomaticall/ load Frenc- reso+rces 3+t +se t-e :nited 0tates format for all c+rrencies7 n+m3ers7 dates and times6 .. T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEen-:0EDA T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEfrEDA Act'altests-com - *.e /ower of 0nowing

070-526 . T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEF=EDA T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCE:0EDA !. T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCE:0EDA T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEF=EDA ". T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEfr-F=EDA T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEen-:0EDA .nswer: . Ex$lanation: T-e !+rrent:8!+lt+re s-o+ld 3e set to t-e !+lt+re8nfo instance t-at re$resents t-e fr ne+tral c+lt+re. T-e fr ne+tral c+lt+re re$resents t-e Frenclan,+a,e. 8ncorrect .nswers: 7 !7 ": T-e !+rrent!+lt+re $ro$ert/ m+st 3e a#oided7 t-at re$resents t-e fr-F= c+lt+re. T-is will ,i#e t-e format for all c+rrencies7 n+m3ers7 dates and times in Frenc-7 /o+ want to lea#e it o t-e :nited 0tates format. T-e en-:0 will s-ow t-at t-e En,lis- reso+rces will 3e locked. F+rt-ermore7 /o+ s-o+ld not set t-e !+rrent!+lt+re $ro$ert/ to :0. 8t s-o+ld 3e set to s$ecif/ t-e c+lt+re. &U)"*I+, <' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W002< as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at -as to s+$$ort t-e ne+tral En,lis- and all .ra3ic c+lt+res. W-at s-o+ld /o+ do to make s+re t-at t-e +ser interface s+$$orts t-e text flow for t-e .ra3ic lan,+a,e6 .. *o+ s-o+ld set t-e 4ocali9a3le $ro$ert/ of eac- form to Tr+e. . *o+ s-o+ld set t-e 4an,+a,e $ro$ert/ of eac- form to .ra3ic. !. *o+ s-o+ld set t-e =i,-tTo4eft4a/o+t $ro$ert/ of eac- form to Tr+e. ". *o+ s-o+ld set t-e =i,-tTo4eft $ro$ert/ of eac- form to Tr+e. .nswer: " Ex$lanation: T-e .ra3ic scri$t is written from ri,-t to left. *o+ -a#e to s+$$ort t-e lan,+a,e flow. 8ncorrect .nswers: .: T-e 4ocali9a3le s-ows w-et-er t-e desi,ner s-o+ld create locali9e reso+rces to sa#e $ro$ert/ #al+e for different c+lt+res. 8t s-o+ld not 3e +sed. : T-e 4an,+a,e $ro$ert/ s$ecifies t-at c+lt+re for t-e reso+rces to w-ic- a desi,ner wo+ld sa#e $ro$ert/ #al+es. !: T-e Tr+e settin, of =i,-tTo4eft4a/o+t will c-an,e t-e control flow from ri,-t to left. *o+ want to c-an,e t-e text flow. Act'altests-com - *.e /ower of 0nowing

070-526

&U)"*I+, &0 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00<& as de#elo$in, collateral. *o+ are 3+s/ to create a Men+0tri$ control named testmen+0tri$ to a container form named testcontainerForm in a Microsoft Windows Forms a$$lication. T-e testcontainerForm contains tree c-ild forms. W-ic- code se,ment s-o+ld /o+ s+e to create a windows list men+ so t-at eacname of eac- c-ild window is dis$la/ed on a Tool0tri$Men+8tem control w-ic- was named testmen+8tem6 .. testmen+0tri$.MdiWindow4ist8tem @ men+8temA . testcontainerFrom.8sMdi!ontainer @ tr+eA !. foreac- C!ontrol c-ildForm in testcontainerForm.!ontrolsD F Tool0tri$Men+8tem item @ new Tool0tri$Men+8temCc-ildForm.TextDA testmen+8tem."ro$"own8tems..ddCitemDA G ". foreac- CForm c-ildForm in .$$lication.;$enFormsD F Tool0tri$Men+8tem item @ new Tool0tri$Men+8temCc-ildForm.TextDA testmen+8tem."ro$"own8tems..ddCitemDA G .nswer: . Ex$lanation: *o+ need to set t-e MdiWindow4ist8tem $ro$ert/ to t-e Tool0tri$Men+8tem t-at -as t-e window list items. 8ncorrect .nswers: !7 ": . Tool0tri$Men+8tem s-o+ld not 3e $+t in man+all/ of eac- Form instance. T-is collection -as all t-e o$en form7 w-ic- -as t-e container form. *o+ also s-o+ld not add t-e Tool0tri$Men+8tem man+all/ for eac- !ontrol instance. : T-e 8sMdi!ontainer s-o+ld not 3e set to accom$lis- t-e ,oal. &U)"*I+, &) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment and a Marketin, de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00<& as de#elo$in, collateral. . !ertkiller .com +ser named Mia >amm is workin, for t-e Marketin, de$artment. *o+ need to $ro#ide -er assistance for an in$+t control 3/ Act'altests-com - *.e /ower of 0nowing

070-526 a+tomaticall/ s-ow toolti$ w-en s-e +ses t-e F) ke/. *o+ want t-e toolti$ to s-ow eno+,- information. T-is is7 so t-at Mia >amm not ca+sin, errors 3/ enterin, t-e wron, or in#alid data. W-at s-o+ld /o+ do to add a com$onent to t-e form7 wit-o+t man+al codin,6 .. *o+ s-o+ld add a ToolTi$ com$onent to t-e form. . *o+ s-o+ld add a >el$1ro#ider com$onent to t-e form. !. *o+ s-o+ld add a Notif/8con com$onent to t-e form. ". *o+ s-o+ld add an Error1ro#ider com$onent to t-e form. .nswer: Ex$lanation: T-e >el$1ro#ider com$onent allows /o+ to dis$la/ a toolti$ w-en e#er a +ser $resses t-e F) ke/. 8ncorrect .nswers: .: T-is com$onent will s-ow a toolti$ w-en t-e mo+se $ointer -o#er o#er a control. !: T-e Notif/8con allows /o+ to s-ow icons in t-e task3ar. ": T-e Error1ro#ider dis$la/s a 3linkin, icon w-en /o+ call its 0etError met-od. C#, Implementing As!nc.rono's /rogramming *ec.ni3'es to Impro4e t.e User )5perience #$2 &'estions( &U)"*I+, &2 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00<& as de#elo$in, collateral. *o+ are 3+s/ +sin, a ack,ro+ndWorker com$onent7 set to its defa+lt #al+e7 to exec+te an as/nc-rono+s o$eration. W-at s-o+ld /o+ do to recei#e notification w-en t-e o$eration com$letes6 .. *o+ s-o+ld -andle t-e 1ro,ress!-an,ed e#ent. . *o+ s-o+ld -andle t-e =+nWorker!om$leted e#ent. !. *o+ s-o+ld call t-e Wait.n/ met-od of t-e Wait>andle class. ". *o+ s-o+ld call t-e Wait.ll met-od of t-e Wait>andle class. .nswer: Ex$lanation: T-e ack,ro+ndWorker class -as a met-od called =+nWorker!om$leted7 w-en calledA it raises a "oWork e#ent in a se$arate t-read. W-en e#er t-e 3ack,ro+nd t-read is com$lete7 t-e com$onent raises t-e =+nWorker!om$leted e#ent. 8ncorrect .nswers: .: T-e 1ro,ress!-an,ed is raised w-en t-e 3ack,ro+nd t-read calls t-e =e$ort1ro,ress met-od. Act'altests-com - *.e /ower of 0nowing

070-526 !: T-e Wait.n/ ca+ses t-e c+rrent t-read to 3lock +ntil at least one wait -andle in t-e s$ecified Wait>andle arra/ is si,naled as com$lete. ": T-e Wait.ll ca+ses t-e c+rrent t-read to 3lock +ntil one wait -andle in t-e s$ecified Wait>andle arra/ is si,naled as com$lete. &U)"*I+, &< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0))& as de#elo$in, collateral. *o+ are 3+s/ +sin, a ack,ro+ndWorker com$onent to call a met-od named "ownloadHo3 in a 3ack,ro+nd t-read. W-ic- code se,ment is +sed to dis$la/ a messa,e 3ox to alert t-e +sers w-en t-e 3ack,ro+nd t-read is com$lete6 .. ifC3ack,ro+ndWorker.Worker.Worker=e$orts1ro,ress @@falseD F Messa,e ox.0-owCET-e download is com$lete.EDA G . 3ack,ro+ndWorker."oWork J@dele,ate F Messa,e ox.0-owCET-e download is com$lete.EDA G !. if C3ack,ro+ndWorker.8s +s/@@falseD F Messa,e ox.0-owCET-e download is com$lete.EDA G ". 3ack,ro+ndWorker.=+nWorker!om$leted J@ dele,ate F Messa,e ox.0-owCET-e download is com$lete.EDA G .nswer: " Ex$lanation: T-e ack,ro+ndWorker allow /o+ to $erform task in a 3ack,ro+nd t-read. T-e ack,ro+ndWorker class -as a met-od called =+nWorker.s/nc t-at raises a "oWork e#ent. 8ncorrect .nswers: .: T-e messa,e onl/7 s-o+ld not 3e dis$la/ed. T-is s-ows w-et-er t-e ack,ro+ndWorker s-o+ld raise t-e 1ro,ress!-an,e e#ent w-en t-e 3ack,ro+nd t-read calls t-e =e$ort1ro,ress met-od. : T-e "oWork does not dis$la/ t-e messa,e. 8t raises t-e 3ack,ro+nd t-read to start. !: T-e 8s +s/s-ows w-et-er t-e 3ack,ro+nd t-reads are 3+s/.

Act'altests-com - *.e /ower of 0nowing

070-526 &U)"*I+, && *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W005& as de#elo$in, collateral. *o+ are 3+s/ +sin, a ack,ro+ndWorker com$onent to exec+te an as/nc-rono+s o$eration. T-e 5o3 of t-e 3ack,ro+nd t-read is to call t-e =e$ort1ro,ress met-od to +$date t-e fore,ro+nd t-read. *o+ -a#e -andled t-e 1ro,ress!-an,ed e#ent and set t-e %al+e $ro$ert/ of a 1ro,ress ar. T-e $ro3lem is t-at t-e 1ro,ress ar dis$la/ 3/ no means ,ets +$dated. "+rin, t-e in#esti,ation /o+ find o+t t6-at#t-e e#ent -andler t-at works wit- t-e 1ro,ress!-an,ed e#ent ne#er ,ets called. W-at s-o+ld /o+ do to make s+re t-at t-e e#ent -andler ,ets called6 .. *o+ s-o+ld call t-e =e$ort1ro,ress met-od in t-e fore,ro+nd t-read. . *o+ s-o+ld set t-e Worker=e$orts1ro,ress $ro$ert/ to Tr+e. !. *o+ s-o+ld set t-e ack,ro+ndWorker com$onent to t-e #al+e of t-e 0ite $ro$ert/ ret+rned from t-e 1ro,ress ar control. ". *o+ s-o+ld set t-e ack,ro+ndWorker com$onent to t-e #al+e of t-e 0ite $ro$ert/ ret+rned from Form control t-at -ost t-e com$onent. .nswer: Ex$lanation: T-e Worker=e$orts1ro,ress $ro$ert/ s-ows w-et-er t-e ack,ro+ndWorker com$onent s-o+ld raise t-e 1ro,ress!-an,ed e#ent w-en t-e 3ack,ro+n, t-read calls t-e =e$ort1ro,ress met-od. 8ncorrect .nswers: .: T-e ack,ro+ndWorker s-o+ld call t-e =e$ort1ro,ress. *o+ s-o+ld not $+t it to t-e fore,ro+nd. !7 ": T-e 0ite $ro$ert/ s-o+ld not 3e c-an,ed. 8t defined t-e 3indin, 3etween a control or com$onent and its associate container. &U)"*I+, &5 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00)< as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at $erforms lon,-r+nnin, task t-at $erforms in t-e 3ack,ro+nd t-read. T-e a$$lication is of s+c- a kind7 t-at it does not intero$erate wit- !om$onent ;35ect Model F!;MG. W-at s-o+ld /o+ do to confi,+re t-e a$$lication so t-at t-e 3ack,ro+nd t-read can re$ort t-e stat+s of t-e task 3/ callin, t-e =e$ort1ro,ress met-od of t-e ack,ro+ndWorker class6 .. *o+ s-o+ld add a 1ro,ress ar control to t-e form t-at -osts t-e ack,ro+ndWorker Act'altests-com - *.e /ower of 0nowing

070-526 com$onent. . *o+ s-o+ld a$$l/ t-e MT.TT-read attri3+te to t-e Main met-od of t-e a$$lication. !. *o+ s-o+ld a$$l/ t-e 0T.TT-read attri3+te to t-e Main met-od of t-e a$$lication. ". *o+ s-o+ld set Worker=e$ort1ro,ress $ro$ert/ of t-e ack,ro+ndWorker class to tr+e. .nswer: " Ex$lanation: *o+ need to set t-e Worker=e$ort1ro,ress $ro$ert/ of t-e ack,ro+ndWorker class to tr+e7 w-ic- will raise t-e 1ro,ress!-an,e e#ent w-ene#er t-e =e$ort1ro,ress met-od is called. 8ncorrect .nswers: .: T-e 1ro,ress ar s-o+ld not 3e added. T-is also will not re$ort t-e stat+s of t-e 3ack,ro+nd task. : T-e MT.TT-read s-o+ld not 3e a$$lied to t-e Main met-od. F+rt-ermore7 t-e a$$lication does not intero$erate wit- !;M. !: T-e 0T.TT-read s-o+ld not 3e a$$lied to t-e Main met-od. 8t is t-ere 3/ defa+lt. &U)"*I+, &6 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0065 as de#elo$in, collateral. *o+ were asked to +se t-e ack,ro+n,Worker com$onent to do an as/nc-rono+s task. W-at s-o+ld /o+ do to define t-e si,nat+re of t-e met-od t-at will contain t-e code to $erform t-e as/nc-rono+s task6 .. *o+ s-o+ld create a met-od t-at matc-es t-e T-read0tart dele,ate2s si,nat+re. . *o+ s-o+ld create a met-od t-at matc-es t-e .s/nc!all3ack dele,ate2s si,nat+re. !. *o+ s-o+ld create a met-od t-at matc-es t-e 1arameteri9edT-read0tart dele,ate2s si,nat+re. ". *o+ s-o+ld create a met-od t-at matc-es t-e "oWorkE#ent>andler dele,ate2s si,nat+re. .nswer: " Ex$lanation: *o+ s-o+ld create a met-od t-at matc-es t-e "oWorkE#ent>andler dele,ate2s si,nat+re. T-e ack,ro+n,Worker allows /o+ to do 5o3s in a 3ack,ro+nd t-read I+ite t-en t-e interface t-read. 8ncorrect .nswers: .: T-e T-read0tart allows /o+ to define a met-od for exec+tin, codes in se$arate t-reads. *o+ m+st in t-is case a#oid creatin, a met-od t-at matc-es t-e T-read0tart si,nat+re. : T-e .s/nc!all3ack allows /o+ to define a met-od t-at re$resents an as/nc-rono+s o$eration2s call3ack. *o+ m+st in t-is case a#oid creatin, a met-od t-at matc-es t-e Act'altests-com - *.e /ower of 0nowing

070-526 .s/nc!all3ack si,nat+re. !: T-e 1arameteri9edT-read0tart allows /o+ to define a met-od t-at re$resents an as/nc-rono+s o$eration2s call3ack. *o+ m+st in t-is case a#oid creatin, a met-od t-at matc-es t-e .s/nc!all3ack si,nat+re. &U)"*I+, &7 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W002) as de#elo$in, collateral. *o+ are +sin, t-e 0ema$-ore class to s/nc-roni9e access to a reso+rce $ool. "+rin, an ins$ection /o+ find o+t t-at an exce$tion of t/$e :na+t-ori9ed.ccessExce$tion is t-rown w-en /o+ call t-e ;$enExistin, met-od of t-e 0ema$-ore class7 w-ic- is onl/ t-rown for one +ser. W-at s-o+ld /o+ do to sto$ t-e exce$tion from 3ein, t-rown6 .. *o+ s-o+ld call t-e "emand met-od of an +nrestricted 0ec+rit/1ermission instance. . *o+ s-o+ld ,rant t-e +ser $ermission to read t-e sema$-ore t-at $rotects t-e reso+rce $ool. !. *o+ s-o+ld ,rant t-e +ser $ermission to access t-e reso+rce $ool. ". *o+ s-o+ld call t-e .ssert met-od of an +nrestricted 0ec+rit/1ermission instance. .nswer: Ex$lanation: T-e +ser2s $ermissions are ,ranted to read t-e sema$-ore t-at $rotects t-e reso+rce $ool. .n access control list is t-ere to $rotect t-e 0ema$-ores. T-e 0et.ccess!ontrol met-od of t-e 0ema$-ore class is t-ere to ,rant t-e +sers $ermissions to read t-e sema$-ore. 8ncorrect .nswers: .: T-e "emand met-od is not +sed for an +nrestricted 0ec+rit/1ermission instance. !: T-e +ser $ermission is not +se to access t-e reso+rce to correct t-e $ro3lem. ": T-e 0ec+rit/1ermission $re#ents a code from $erformin, a stack walk $ast t-e $resent stack. &U)"*I+, &( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W002< as de#elo$in, collateral. *o+ are 3+s/ creatin, an instance of 0ema$-ore 3/ means of callin, its constr+ctor. W-ile t-e 0ema$-ore instance was created7 /o+ s$ecif/ fo+r reso+rces from a reso+rce $ool and reser#e t-e t-ree reso+rces. *o+ want to call t-e =elease met-od of t-e 0ema$-ore instance to allocate fo+r a#aila3le reso+rces from t-e reso+rce $ool. W-ic- of t-e followin, n+m3ers s-o+ld /o+ $ass to t-e =elease met-od6 Act'altests-com - *.e /ower of 0nowing

070-526

.. < .& !. ) ". 0 .nswer: . Ex$lanation: E#er/ time /o+ call t-e =elease met-od7 t-e sema$-ore will exit and makes a reso+rce a#aila3le. W-en a $arameter -as $assed to t-e =elease met-od7 /o+ indicate t-e n+m3er of times t-at t-e sema$-ore exits7 w-ic- is t-ree times. 8ncorrect .nswers: : T-e 0ema$-oreF+llExce$tion can onl/ free t-ree reso+rces in t-is case. !: 8f it was one7 t-en it wo+ld -a#e onl/ release one reso+rce. ": T-is n+m3er wo+ld ca+se an exce$tion of t/$e .r,+ment;+t;f=an,eExce$tion to 3e t-rown 3eca+se t-e sema$-ore -as to release one reso+rce. &U)"*I+, &' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000< as de#elo$in, collateral. *o+ need to im$lement an as/nc-rono+s met-od to t-e "ownload met-od. *o+ -a#e t-e followin, class: $+3lic class Ho3 F $+3lic #oid "ownloadCD F G G W-ic- of t-e followin, se,ments s-o+ld /o+ +se6 L:se t-e e#ent-3ase as/nc-rono+s $atternM .. $+3lic V.s/nc=es+lt 8n#oke"ownloadCD F =et+rn n+llA G . $+3lic V.s/nc=es+lt "ownload.s/ncCD F =et+rn n+llA G !. $+3lic V.s/nc=es+lt e,in"ownloadCD F =et+rn n+llA G Act'altests-com - *.e /ower of 0nowing

070-526 ". $+3lic %oid "ownload.s/ncCD F =et+rn n+llA G .nswer: " Ex$lanation: 8f it is an e#ent-3ase as/nc-rono+s $attern7 a worker t-read raises an e#ent to si,nal com$letion of an as/nc-rono+s $rocess. T-e e#ent s-o+ld -a#e t-e same name of t-e s/nc-rono+s met-od s+ffixed wit- E!om$letedE. 8ncorrect .nswers: .7 7 !: To ad-ere to t-e $attern7 /o+ s-o+ld name t-e met-od "ownload.s/nc. *o+ also s-o+ld not ret+rn a #al+e from t-e met-od. &U)"*I+, 50 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0<<< as de#elo$in, collateral. *o+ are +sin, t-e followin, class to download 5o3s. $+3lic class Ho3 F $+3lic #oid "ownloadCD F G G *o+ need to +se t-e e#ent-3ased as/nc-rono+s $attern to s+$$ort as/nc-rono+s 5o3 downloads. W-ic- of t-e followin, code se,ments s-o+ld /o+ +se to define a mem3er of t-at class to si,nal as/nc-rono+s com$letion6 .. $+3lic 3ool "ownload!om$letedA . $+3lic #oid "ownload!om$letedCD F G !. $+3lic "ownload!om$letedE#ent>andler "ownload!om$letedCD F =et+rn n+llA G ". $+3lic "ownload!om$letedE#ent>andler "ownload!om$letedA .nswer: " Ex$lanation: 8f /o+ -a#e t-e e#ent-3ased as/nc-rono+s $atter7 a worker t-read raises an e#ent to indicate com$letion of an as/nc-rono+s $rocess. T-e e#ent s-o+ld Act'altests-com - *.e /ower of 0nowing

070-526 -a#e t-e same name of t-e s/nc-rono+s met-od s+ffixed wit- E!om$letedE. 8ncorrect .nswers: .7 7 !: *o+ s-o+ld not define a met-od or field named "ownload!om$leted. . e#ent m+st 3e define to si,nal notification. &U)"*I+, 5) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0<<< as de#elo$in, ,+arantee. *o+ are 3+s/ writin, a code to $erform an as/nc-rono+s o$eration. *o+ m+st ad5+st t-e $riorit/ of t-e t-read t-at exec+tes t-e as/nc-rono+s o$eration. T-e o$eration is m+st 3e s$ecified to +se in$+t data from t-e main t-read. W-at s-o+ld /o+ do to define t-e si,nat+re of t-e met-od t-at will contain t-e code to $erform t-e as/nc-rono+s o$eration6 .. *o+ s-o+ld create a met-od t-at matc-es t-e .s/nc!all3ack dele,ate2s si,nat+re. . *o+ s-o+ld create a met-od t-at matc-es t-e 1arameteri9edT-read0tart dele,ate2s si,nat+re. !. *o+ s-o+ld create a met-od t-at matc-es t-e T-read0tart dele,ate2s si,nat+re. ". *o+ s-o+ld create a met-od t-at matc-es t-e "oWorkE#ent>andler dele,ate2s si,nat+re. .nswer: Ex$lanation: *o+ need to create a met-od t-at matc-es t-e 1arameteri9edT-read0tart dele,ate2s si,nat+re. T-is will t-en acce$ts a sin,le ;35ect instance as a $arameter. 8ncorrect .nswers: .: T-e .s/nc!all3ack allows /o+ to define a met-od t-at re$resents an as/nc-rono+s o$eration2s call3ack. !: T-e $arameters are not acce$ted 3/ t-e T-read0tart. eca+se of t-is7 /o+ cannot +se it to s+$$l/ in$+t data to t-e as/nc-rono+s o$eration. ": T-e "oWorkE#ent>andler dele,ate2s si,nat+re is s+$$orted 3/ t-e ack,ro+ndWorker. T-e ack,ro+ndWorker do not a5+st $riorit/ of t-e ack,ro+ndWorker t-read &U)"*I+, 52 T-read0tart t-read0tart @ dele,ate FG 1arameteri9edT-read0tart $arameteri9edT-read0tart @ dele,ateCo35ect ar,sD FG int t-read1oolT-read!o+nt @ 0 T-read t-read) @ new T-readCt-read0tartDA Act'altests-com - *.e /ower of 0nowing

070-526 T-read t-read2 @ new T-readC$arameteri9edT-read0tartDA T-read t-read< @ new T-readCt-read0tartDA t-read).0tartCDA t-read2.0tartCn+llDA t-read<70tartCDA if Ct-read).8sT-read1oolT-readD F t-read1oolT-read!o+ntJJA G if Ct-read2.8sT-read1oolT-readD F t-read1oolT-read!o+ntJJA G if Ct-read<.8sT-read1oolT-readD F t-read1oolT-read!o+ntJJA G W-at #al+e of t-e t-read1oolT-read!o+nt s-o+ld /o+ identif/ after t-e code is exec+ted6 .. 0 .2 !. < ". ) .nswer: . Ex$lanation: T-e #al+e of t-e t-read1oolT-read!o+nt is set at 0. T-e t-reads t-at are man+all/ made are not class as t-read $ool t-reads. T-e t-reads t-at are created 3/ callin, t-e N+e+e:serWork8tem met-od of t-e T-read1ool are class t-read $ool t-reads. &U)"*I+, 5< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows From a$$lication. T-is Windows Forms a$$lication will allow electrical en,ineers to #is+all/ desi,n circ+it 3oards. T-e +sers in t-e "e#elo$ment de$artment connect to !ertkiller -W0005 and download t-eir res$ecti#e desi,ned circ+it 3oard for t-e -ardware t-e/ de#elo$ed. W-ic- of t-e followin, code se,ments s-o+ld /o+ s+e to allow +sers to download all desi,ned circ+it 3oards in a 3ack,ro+nd t-read wit- !ommon 4an,+a,e =+ntime to man,e t-e t-read6

Act'altests-com - *.e /ower of 0nowing

070-526 .. 1arameteri9edT-read0tart t-read0tart @ dele,ate F KK"ownload t-e 5o3s G New T-readCt-read0tartD.0tartCn+llDA . .s/nc!all3ack callk3ack @ dele,ate F KK"ownload t-e 5o3s G .$$lication.;$enFormsC0D. e,in8n#okeCcall3ackDA !. T-read0tart t-read0tart @ dele,ate F KK"ownload t-e 5o3s G New T-readCt-read0tartD.0tartCDA ". T-read1ool.N+e+e:serWork8temCdele,ate F KK"ownload t-e 5o3s G .nswer: " Ex$lanation: T-e N+e+e:serWork8tem will allow /o+ for exec+tion in a t-read $ool. 8ncorrect .nswers: .7 !: T-e 0tart metod of t-e t-read class will create and exec+te a t-read. T-e !4= do not man,e man+all/-create t-reads. : T-e $arameters are not acce$ted 3/ t-e T-read0tart. eca+se of t-is7 /o+ cannot +se it to s+$$l/ in$+t data to t-e as/nc-rono+s o$eration. !: T-e e,in8n#oke will allow /o+ to set t-e $ro$erties and in#oke met-ods from t-e 3ack,ro+nd t-reads. C#, 1e4eloping Windows Forms Controls #7&'estions( &U)"*I+, 5& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a com$osite control. *o+ do not want t-e controls to 3e dis$la/ed w-en certain conditions are met. W-ic- code se,ment s-o+ld /o+ +se to write code to sto$ t-e co troll from 3ein, dis$la/ed6 .. t-is. ack!olor @ !olor7 Trans$arentA Act'altests-com - *.e /ower of 0nowing

070-526 . t-is.%isi3le @ falseA !. t-is.0et0t/leC!ontrol0t/les.0+$$ortTran$arent ack!olor7 tr+eDA ". t-is.0et0t/leC!ontrol0t/les.;$aI+e7 tr+eDA .nswer: Ex$lanation: T-e %isi3le control s-o+ld 3e on false. T-is settin, will not allow dis$la/in,. 8ncorrect .nswers: .: T-is will $re#ent t-e 3ack,ro+nd from 3ein, dis$la/edA -owe#er it cannot -ide t-e entire control. !: T-is will $re#ent t-e 3ack,ro+nd from 3ein, dis$la/edA -owe#er it cannot -ide t-e entire control. ": T-is will $re#ent t-e 3ack,ro+nd from 3ein, dis$la/edA -owe#er it cannot -ide t-e entire control. &U)"*I+, 55 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a com$osite control7 w-ic- -as a read-onl/ $ro$ert/ named !o+nt. W-ic- code se,ment s-o+ld /o+ +se to a$$l/ an attri3+te to t-e !o+nt $ro$ert/ to sto$ it from 3ein, dis$la/ed in t-e %is+al 0t+dio 2005 $ro$ert/ 3rowser6 .. S!ate,or/CNon rowsa3leEDT . SEditorCE%isi3leE7EFalseEDT !. S rowsa3leCFalseDT ". CT/$e!on#erterCE>iddenEDT .nswer: ! Ex$lanation: T-is settin, will indicate t-at t-e $ro$ert/ s-o+ld not 3e #isi3le in t-e %is+al 0t+dio 2005 $ro$ert/ 3rowser. 8ncorrect .nswers: .: T-is -as not-in, to do wit- t-e #isi3ilit/ of t-e $ro$ert/. : T-is defines an editor t-at is +sed to edit t-e #al+es of t-e $ro$erties. ": T-is allows /o+ to define t-e $ro$ert/. &U)"*I+, 56 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)05 as de#elo$in, collateral. *o+ are 3+s/ Act'altests-com - *.e /ower of 0nowing

070-526 de#elo$in, a c+stom control7 w-ic- dis$la/s t-e time in di,ital and analo, formats. *o+ need to a$$l/ t-e control in a class named !lock. T-e !lock control will 3e $lace on forms and confi,+re t-e $ro$erties to s-ow t-e time. W-ic- code se,ment s-o+ld /o+ +se to define t-e !lock class6 .. $+3lic class !lock F G . $+3lic class !lock : !om$onent F G !. $+3lic class !lock : !ontrol F G ". $+3lic class !lock : Timer F G .nswer: ! Ex$lanation: T-e controls t-at are o3tained from t-e !lock class are dis$la/ed on t-e form. 8ncorrect .nswers: .: *o+ s-o+ld not o3tain it from t-e !lock. T-e controls t-at are o3tained from t-e !lock class are dis$la/ed on t-e form. : T-e controls t-at are o3tained from t-e !lock class are dis$la/ed on t-e form. ": T-e controls t-at are o3tained from t-e !lock class are dis$la/ed on t-e form. &U)"*I+, 57 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0205 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a c+stom control from a class from !ontrol7 w-ic- is not a com$osite control and $erforms all of its renderin, 3/ +sin, B"J. W-at s-o+ld /o+ do to make s+re t-at $ortions of t-e control are a+tomaticall/ re$ainted w-en a s$ecific $ro$ert/ c-an,es6 .. *o+ s-o+ld call t-e ;n$aint met-od. . *o+ s-o+ld call t-e 8n#alidate met-od. !. *o+ s-o+ld call t-e :$date met-od. ". *o+ s-o+ld call t-e =efres- met-od. .nswer:

Act'altests-com - *.e /ower of 0nowing

070-526 Ex$lanation: T-is met-od is o#erloaded to define t-e $ortions of a control t-at is a3o+t to 3e re$ainted. 8ncorrect .nswers: .: T-e 8n#alidate met-od calls t-e ;n$aint met-od. !: T-e :$date met-od does not allow /o+ to s$ecif/ t-e $otions of t-e control t-at m+st 3e $re$ared. ": T-e =efres- met-od does not allow /o+ to s$ecif/ t-e $otions of t-e control t-at m+st 3e $re$ared. &U)"*I+, 5( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)05 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a c+stom control from a class from !ontrol7 w-ic- is not a com$osite control and $erforms all of its renderin, 3/ +sin, B"J. W-at s-o+ld /o+ do to write code to render t-e control7 $re#entin, ot-er controls from modif/in, t-e renderin, 3e-a#ior of /o+r control6 .. *o+ s-o+ld attac- t-e 1aint e#ent to an e#ent -andler in t-e constr+ctor and $erform all renderin, in t-e e#ent -andler. . *o+ s-o+ld create a Bra$-ic instance in t-e contract+re and $erform all renderin, #ia t-e Bra$-ic instance. !. *o+ s-o+ld o#erride t-e ;n$aint met-od and do all renderin, in t-e o#erridden met-od. ". *o+ s-o+ld o#erride t-e 8nit4a/o+t met-od7 attac- t-e 1aint e#ent to t-e e#ent -andler and do all renderin, in t-e e#ent -andler. .nswer: ! Ex$lanation: W-en /o+ o#erride t-e ;n$aint met-od7 /o+ can render t-e control #ia t-e 0+$$lied 1aintE#ent.r,s $arameter. 8ncorrect .nswers: .7 ": T-e e#ent -andler in not needed. *o+ cannot sto$ t-e ot-er controls from attac-in, to t-e e#ent -andlers. : *o+ s-o+ld not create a ,ra$-ic instance. &U)"*I+, 5' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)05 as de#elo$in, collateral. *o+ are 3+s/ creatin, an extended control deri#in, class from Text ox. *o+ did o#erride t-e ;n1aint met-od of t-e Text ox7 3+t it ne#er is called. Act'altests-com - *.e /ower of 0nowing

070-526 W-at s-o+ld /o+ do to set or +nset a fla, in t-e !ontrol0t/les en+meration to sol#e t-is $ro3lem6 .. *o+ s-o+ld set t-e .ll1aint8nWm1aint fla,. . *o+ s-o+ld +nset t-e :ser1aint. !. *o+ s-o+ld +nset t-e .ll1aint8nWm1aint fla,. ". *o+ s-o+ld set t-e :ser1aint. .nswer: " Ex$lanation: T-e :ser1aint fla, s-ows t-at t-e control $aints itself t-en -a#in, t-e o$eratin, s/stem $erforms t-e 5o3. 8f t-e fla, is not set7 t-e ;n1aint met-od is not called. 8ncorrect .nswers: .7 !: 8t does not matter if /o+ set or +nset t-e .ll1aint8nWm1aint fla,. 8t s-ows t-at t-e control s-o+ld red+ce flickerin, t-e WMWE=.0E ?BN" window messa,e. : T-e :ser1aint fla, s-o+ld 3e set for t-e ;n1aint met-od to 3e called. &U)"*I+, 60 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)05 as de#elo$in, collateral. *o+ are 3+s/ creatin, an extended control deri#in, class from +tton. W-at s-o+ld /o+ do to render /o+r control wit- an o#al s-a$e w-ic- m+st $re#ent ot-er control from modif/in, t-e renderin, 3e-a#ior of /o+r control6 .. *o+ s-o+ld o#erride t-e ;n1aint met-od and call t-e 3ase im$lementation and render t-e control. . *o+ s-o+ld o#erride t-e ;n1aint ack,ro+nd met-od and render t-e control 3+t not call t-e 3ase im$lementation. !. *o+ s-o+ld o#erride t-e ;n1aint met-od and render t-e control 3+t not call t-e 3ase im$lementation. ". *o+ s-o+ld o#erride t-e ;n1aint ack,ro+nd met-od and call t-e 3ase im$lementation and render t-e control. .nswer: ! Ex$lanation: T-e :ser1aint met-od is +sed w-ene#er re,ions of a control are in#alidated. T-e 3ase ;n1aint met-od raise t-e 1aint e#ent. 8ncorrect .nswers: .: *o+ s-o+ld not call t-e ;n1aint met-od. T-is wo+ld raise t-e ;n1aint met-od. 7 ": *o+ s-o+ld not o#erride t-e ;n1aint ack,ro+nd met-od. C#, Config'ring and 1eplo!ing Applications #6 &'estions( Act'altests-com - *.e /ower of 0nowing

070-526

&U)"*I+, 6) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0222 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication t-at +ses t-e !lick;nce tec-nolo,/. *o+ did s$ecif/ se#eral assem3lies. T-e assem3lies are +sed 3/ t-e a$$lication as o$tional so t-at t-e/ do not ,et de$lo/ed initiall/. T-e a$$lication is s$ecified to loads t-ese assem3lies d/namicall/. W-at s-o+ld /o+ do to modif/ t-e a$$lication so t-at t-e assem3lies are a+tomaticall/ downloaded w-en t-e a$$lication reI+ires t-em6 .. *o+ s-o+ld -andle t-e .ssem3l/=esol#e e#ent of t-e .$$"omain class and call t-e "own4oadFileBro+$ met-od of t-e .$$lication"e$l$o/ment class. . *o+ s-o+ld -andle t-e T/$e=esol#e e#ent of t-e .$$"omain class and call t-e "own4oadFileBro+$ met-od of t-e .$$lication"e$l$o/ment class. !. *o+ s-o+ld -andle t-e .ssem3l/4oad e#ent of t-e .$$"omain class and call t-e :$date met-od of t-e .$$lication"e$l$o/ment class. ". *o+ s-o+ld -andle t-e =eso+rce=esol#e e#ent of t-e .$$"omain class and call t-e :$date met-od of t-e .$$lication"e$l$o/ment class. .nswer: . Ex$lanation: T-e .ssem3l/=esol#e e#ent is raised w-en t-e c+rrent a$$lication domain fails to load an assem3l/ reI+ested 3/ t-e a$$lication. *o+ need to s$ecif/ t-e name of t-e de$lo/ment ,ro+$ to w-ic- t-e assem3l/ 3elon,s. 8ncorrect .nswers: : T-e T/$e=esol#e is raised after an assem3l/ is s+ccessf+ll/ loaded. !: T-e .ssem3l/4oad is raised after an assem3l/ is loaded. ": T-e =eso+rce=esol#e e#ent is raised w-en t-e c+rrent a$$lication domain fails to load a reso+rce. &U)"*I+, 62 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0222 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication named TestBrade ook to de$lo/ment ser#er. W-at s-o+ld /o+ do to +se a 3atc- file to $ro,rammaticall/ c-an,e t-e +$date reI+irement of t-e a$$lication6 .. *o+ s-o+ld +se t-e Manifest Beneration and Editin, Bra$-ical Tool FMa,e:8.exeG to Act'altests-com - *.e /ower of 0nowing

070-526 c-an,e t-e Brade ook.a$$lication settin,s. . *o+ s-o+ld +se t-e Manifest Beneration and Editin, Tool FMa,e.exeG to c-an,e t-e Brade ook..exe.man+fest settin,s. !. *o+ s-o+ld +se t-e Manifest Beneration and Editin, Tool FMa,e.exeG to c-an,e t-e Brade ook.a$$lication settin,s. ". *o+ s-o+ld +se t-e Manifest Beneration and Editin, Bra$-ical Tool FMa,e:8.exeG to c-an,e t-e Brade ook.exe.manifest settin,s. .nswer: ! Ex$lanation: T-e Ma,e.exe is +sed to c-an,e t-e Brade ook.a$$lication settin,s. 8t also -el$s to mana,e a $+3lis-ed a$$lication. 8ncorrect .nswers: .: T-e Ma,e:8.exe $ro#ides a ,ra$-ical +ser interface for mana,in, a $+3lis-ed a$$lication. 7 ": T-e Brade ook.exe cannot c-an,e t-e +$date reI+irements. T-e Brade ook.exe.manifest allows /o+ to s$ecif/ an a$$lication2s associated files. &U)"*I+, 6< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)<2 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication named !ertkiller Brade ook to de$lo/ment ser#er. *o+ first de$lo/ed t-e a$$lication so t-at it s+$$orts offline +se. W-at s-o+ld /o+ do to c-an,e t-e a$$lication so t-at it is onl/ a#aila3le w-en t-e !ertkiller .com +ser2s com$+ter is connected to t-e 8nternet6 .. *o+ s-o+ld +se t-e Manifest Beneration and Editin, Bra$-ical Tool FMa,e:8.exeG to c-an,e t-e Brade ook.a$$lication settin,s. . *o+ s-o+ld +se t-e Manifest Beneration and Editin, Tool FMa,e.exeG to c-an,e t-e Brade ook..exe.man+fest settin,s. !. *o+ s-o+ld +se t-e Manifest Beneration and Editin, Bra$-ical !lient Tool FMa,e:8.exeG to c-an,e t-e Brade ook.exe.manifest settin,s. ". *o+ s-o+ld +se t-e Manifest Beneration and Editin, Tool FMa,e.exeG to c-an,e t-e Brade ook.a$$lication settin,s. .nswer: . Ex$lanation: T-e Ma,e.exe is +sed to c-an,e t-e Brade ook.a$$lication settin,s. 8t also -el$s to mana,e a $+3lis-ed a$$lication. 8ncorrect .nswers: .: T-e Ma,e:8.exe $ro#ides a ,ra$-ical +ser interface for mana,in, a $+3lis-ed a$$lication. 7 ": T-e Brade ook.exe cannot c-an,e t-e +$date reI+irements. T-e Act'altests-com - *.e /ower of 0nowing

070-526 Brade ook.exe.manifest allows /o+ to s$ecif/ an a$$lication2s associated files. 8t also cannot c-an,e t-e la+nc- reI+irements of t-e a$$lication wit- t-e Brade ook.exe.manifest file. &U)"*I+, 6& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0002 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a 0et+$ $ro5ect. W-at s-o+ld /o+ do to confi,+re t-e $ro5ect so t-at t-e 3+ilt $acka,e can 3e installed on <2-3it and 6&-3it com$+ters6 .. *o+ s-o+ld set t-e Tar,et1latform $ro$ert/ to X6&. . *o+ s-o+ld set t-e Tar,et1latform $ro$ert/ to X(6. !. *o+ s-o+ld set t-e %ersion $ro$ert/ to 6&. ". *o+ s-o+ld set t-e %ersion $ro$ert/ to <2. .nswer: Ex$lanation: T-e X(6 settin, allows a $acka,e to 3e installed on <2-3it and 6&-3it com$+ters. 8ncorrect .nswers: .: T-e X(6 settin, will ca+se an error to 3e raised w-en t-e $acka,e is installed on a <2-3it s/stem.. !7 ": T-e %ersion $ro$ert/ identifies t-e #ersion of t-e installer $acka,e itself. &U)"*I+, 65 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication. *o+ want t-e +sers to download or r+n a Microsoft Windows 8nstaller $acka,e from !ertkiller .com2s We3 site to install t-e a$$lication. W-ic- of t-e followin, de$lo/ment $ro5ect s-o+ld /o+ create6 .. 0et+$ 1ro5ect . !. 1ro5ect !. Mer,e Mod+le 1ro5ect ". We3 0et+$ 1ro5ect .nswer: .

Act'altests-com - *.e /ower of 0nowing

070-526 Ex$lanation: T-e 0et+$ 1ro5ect allows /o+ to install Window-3ased a$$lications. 8ncorrect .nswers: : T-e !. 1ro5ect is +sed to $acka,e com$onents. !: T-e Mer,e Mod+le 1ro5ect allows /o+ to install s-ared com$onents. ": T-e We3 0et+$ 1ro5ect allows /o+ to install We3 a$$lications. &U)"*I+, 66 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication. T-e a$$lications t-at /o+ are de#elo$in, are +sin, s-ared assem3lies t-at m+st 3e installed into t-e Blo3al .ssem3l/ !ac-e LB.!M. W-at s-o+ld /o+ do to de#elo$ a de$lo/ment strate,/6 .. *o+ s-o+ld create a !. $ro5ect t-at contains t-e a$$lication. . *o+ s-o+ld +se t-e R!;1* to de$lo/ t-e a$$lication. !. *o+ s-o+ld +se t-e !lick;nce to de$lo/ t-e a$$lication. ". *o+ s-o+ld create a Window Forms 0et+$ a$$lication .nswer: " Ex$lanation: T-e Window Forms 0et+$ a$$lication can accom$lis- t-is 3/ creatin, and confi,+rin, a 0et+$ $ro5ect to de$lo/ a Microsoft Windows 8nstaller $acka,e. 8ncorrect .nswers: .: T-e !. 1ro5ect is +sed to $acka,e com$onents. : T-e R!;1* cannot install assem3lies into t-e B.! 3/ +sin, R!;1*. !: T-e !lick;nce cannot 3e +sed to install s-ared assem3lies into t-e B.!. &U)"*I+, 67 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication. *o+ t-en c-an,e t-e defa+lt confi,+ration to $acka,e files as loose +ncom$ressed files. *o+ also need to make s+re t-at t-e .NET Framework 2.0 redistri3+ta3le com$onent exits after /o+ 3+ild t-e 0et+$ $ro5ect. W-ic- of t-e followin, com$onents s-o+ld look for in t-e 0et+$ $ro5ect2s o+t$+t director/6 .. =e,0#cs.exe . "otnetfx.exe Act'altests-com - *.e /ower of 0nowing

070-526 !. 8nstall:til.exe ". =e,.sm.exe .nswer: Ex$lanation: T-e "otnetfx.exe needs to exits in t-e o+t$+t director/7 w-ic- +ses t-e .NET Framework 2.0 redistri3+ta3le $acka,e. 8ncorrect .nswers: .: T-e =e,0#cs.exe is t-e .NET 0er#ices 8nstallation tool. 8t allows /o+ to re,ister an assem3l/ for +se wit- !;MJ. !: T-e 8nstall:til.exe allows /o+ to exec+te c+stom installers t-at are associated wit- an assem3l/. . ": T-e =e,.sm.exe allows /o+ to re,ister an assem3l/ for +se wit- !;MJ. &U)"*I+, 6( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W020' as de#elo$in, collateral. *o+ are 3+s/ creatin, a class t-at deri#es from 8nstaller. T-e class t-at /o+ created is +sed 3/ Microsoft Windows Forms a$$lication to install a c+stom com$onent w-ic- +ses an existin, Micrsoft .ccess data3ase. W-ic- exce$tion t/$e s-o+ld /o+ +se if t-e data3ase does not exist at installation time and /o+ need to t-row an exce$tion and -a#e t-e installation rolled 3ack6 .. *o+ s-o+ld install 8nstallExce$tion . *o+ s-o+ld install .$$licationExce$tion !. *o+ s-o+ld install 0IlExce$tion ". *o+ s-o+ld install FileNtFo+ndExce$tion .nswer: . Ex$lanation: T-e 8nstallExce$tion $asses information to t-e Microsoft Windows 8nstaller and ca+ses t-e installation to 3e rolled 3ack. 8ncorrect .nswers: : T-e .$$licationExce$tion will not ca+se t-e installation to roll 3ack. !: T-e 0IlExce$tion will not ca+se t-e installation to roll 3ack. ": T-e FileNtFo+ndExce$tion will not ca+se t-e installation to roll 3ack. &U)"*I+, 6' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W020' as de#elo$in, collateral. *o+ are 3+s/ Act'altests-com - *.e /ower of 0nowing

070-526 creatin, a class t-at deri#es from 8nstaller. T-e class t-at /o+ created is +sed 3/ Microsoft Windows Forms set+$ a$$lication to install a c+stom com$onent w-ic+ses an existin, Microsoft 0N4 0er#er 2005 data3ase. T-e com$onent t-rows a 0IlExce$tion instance w-en it cannot connect to t-e data3ase d+rin, installation. W-at s-o+ld /o+ do to a+tomaticall/ roll3ack t-e installation is t-e com$onent t-rows a 0IlExce$tion instance6 .. *o+ s-o+ld catc- t-e 0IlExce$tion instance and create an instance of 8nstallExce$tion and $ass t-e 0IlExce$tion instance as t-e inner exce$tion and t-en t-row t-e 8nstallExce$tion instance. . *o+ s-o+ld catc- t-e 0IlExce$tion instance and create an instance of .$$licationExce$tion and $ass t-e 0IlExce$tion instance as t-e inner exce$tion and t-en t-row t-e .$$licationExce$tion instance. !. *o+ s-o+ld catc- t-e 0IlExce$tion instance and re-t-row it. ". *o+ do not nee to catc- t-e 0IlExce$tion instance as it will $ro$a,ate +$ t-e call stack. .nswer: . Ex$lanation: T-is action will $ass information to t-e Microsoft Windows 8nstaller and ca+ses t-e installation to 3e rolled 3ack. 8ncorrect .nswers: : T-e .$$licationExce$tion will not ca+se t-e installation to roll 3ack. !: T-e 0IlExce$tion will not ca+se t-e installation to roll 3ack. ": T-e FileNtFo+ndExce$tion will not ca+se t-e installation to roll 3ack. 78, Creating a UI for a Windows Forms Application ! Using "tandard Controls #$2 &'estions( &U)"*I+, 70 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000) as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to make s+re t-at t-e 1ict+re ox control2s $ro$erties cannot 3e c-an,ed wit- a lo,o t-at /o+ -a#e added to t-e 1ict+re ox in t-e desi,ner of t-e form 3ase. efore t-e time /o+ -a#e added a form to t-e Microsoft Windows Forms !ontrol 4i3rar/ $ro5ect and add a 1ict+re ox control to t-e form. T-e form is $resentin, !ertkiller.com2s lo,o. W-at action s-o+ld /o+ take6 .. *o+ s-o+ld set t-e 4ocked $ro$ert/ to False. . *o+ s-o+ld set t-e 4ocked $ro$ert/ to Tr+e. !. *o+ s-o+ld set t-e Modifiers $ro$ert/ to 1ri#ate. ". *o+ s-o+ld set t-e Modifiers $ro$ert/ to 1rotected. Act'altests-com - *.e /ower of 0nowing

070-526

.nswer: ! Ex$lanation: W-en /o+ set t-e Modifiers $ro$ert/ to 1ri#ate7 t-e #al+e will s-ow t-at onl/ t-e 3ase form can modif/ t-e control. 8ncorrect .nswers: .: *o+ s-o+ld not set it to False7 3eca+se t-e control can 3e mo#ed and resi9ed. : 8f /o+ set t-e $ro$ert/ to Tr+e t-e control cannot 3e remo#ed of resi9ed. . ": 8f /o+ set t-e Modifiers $ro$ert/ to 1rotected7 t-e #al+e will s-ow t-at t-e 3ase form and an/ of t-e form /et to come can modif/ t-e control. &U)"*I+, 7) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000) as de#elo$in, collateral. *o+ -a#e 5+st incl+ded a "ateTime1icker control to a form. *o+ t-en set t-e format $ro$ert/ to Time. "+rin, t-e ca+se of t-e da/7 /o+ c-eck -ow t-e "ateTime1icker control is workin,7 and learnt t-at it does not allow t-e !ertkiller .com +sers to c-an,e t-e selected time. W-at s-o+ld /o+ do to c-an,e t-e control so t-at it will allow t-e !ertkiller .com +ses to c-an,e t-e selected time6 .. *o+ s-o+ld set t-e 0-ow:$"own $ro$ert/ to Tr+e. . *o+ s-o+ld set t-e 0-ow0elect ox $ro$ert/ to Tr+e. !. *o+ s-o+ld set t-e %isi3le $ro$ert/ to False. ". *o+ s-o+ld set t-e !-ecked $ro$ert/ to False. .nswer: . Ex$lanation: T-e 0-ow:$"own $ro$ert/ is 3/ defa+lt set on False. *o+ s-o+ld set it on Tr+e. ;n False it will s-ow t-e "ateTime1icker m+st sim+late a dro$-down control. T-is settin, will allow t-e +sers to set t-e Mont-!alender. 8f it is set to Tr+e t-e +sers can select t-e time. 8ncorrect .nswers: : T-e 0-ow0elect ox will not resol#e t-e $ro3lem. T-is will s-ow if a !-eck ox s-o+ld 3e dis$la/ed on t-e "ateTime1icker. !: 8f /o+ set t-e %isi3le $ro$ert/ to False7 it will -ide t-e "ateTime1icker. . ": *o+ s-o+ld not set t-e !-ecked $ro$ert/ to False. 8f t-is is set on Tr+e7 a !-eck ox control will 3e dis$la/ed on t-e "ateTime1icker. &U)"*I+, 72 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. Act'altests-com - *.e /ower of 0nowing

070-526 !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000) as de#elo$in, collateral. T-e mana,er of !ertkiller .com wants to -a#e a 3orderless form wit- t-e 3ack,ro+nd s-own in t-e ex-i3it.

W-en t-e form is #iew7 t-e mana,er named =or/ .llen does not want t-e maroon area to 3e #isi3le. >e onl/ wants t-e 3l+e to 3e #isi3le w-en t-e form is dis$la/ed. W-ic- of t-e followin, code se,ments s-o+ld 3e +sed6 .. Me.Trans$arenc/?e/ @ !olor.MaroonA . Me. ack!olor @ !olor.MaroonA !. Me.Trans$arenc/?e/ @ !olor.!ornflower l+e ". Me. ack!olor @ !olor.Trans$arentA .nswer: . Ex$lanation: T-e Trans$arenc/?e/ @ !olor.Maroon s$ecif/ t-e color t-at t-e trans$arent re$resents t-e area on t-e form. Wit- t-is settin, t-e 3l+e will res$ond to t-e mo+se. 8ncorrect .nswers: : *o+ s-o+ld not +se t-e ack!olor @ !olor.Maroon. T-is will determine t-e 3ack,ro+nd color of t-e form. !: *o+ s-o+ld not +se t-is code se,ment. T-e mana,er does not wan t-e 3l+e area to 3e trans$arent. ": *o+ s-o+ld not +se t-e ack!olor @ !olor.Trans$arent. T-e mana,er does not want t-e 3ack,ro+nd to 3e trans$arent.

Act'altests-com - *.e /ower of 0nowing

070-526 &U)"*I+, 7< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ -a#e confi,+red t-ree col+mns to a form and add a Ta3le4a/o+t1anel to t-e form. *o+ want t-e two side col+mns to -a#e a fix widt- of 200 $ixels eac- and anc-or t-e fo+r ed,es of t-e form to t-e control. . !ertkiller .com mana,er wants t-e center col+mn to fill t-e remainin, s$ace7 w-en e#er t-e form is resi9ed. *o+ need to c-an,e t-e !ol+mn0t/le instance t-at re$resents t-e center col+mn6 >ow s-o+ld /o+ set t-e !ol+mn0t/le instance2s 0i9e T/$e $ro$ert/6 .. 0et it to .+to0i9e and t-e Widt- $ro$ert/ to )00F. . 0et it to .3sol+te and t-e Widt- $ro$ert/ to )00F. !. 0et it to 1ercent and t-e Widt- $ro$ert/ to )00F. ". 0et it to .+to0i9e and t-e Widt- $ro$ert/ to 0F. .nswer: ! Ex$lanation: T-is settin, will s-ow t-at t-e col+mn s-o+ld fill t-e remainin, s$ace. 8ncorrect .nswers: .: T-is settin, will allow t-e col+mn to 3e si9ed eno+,- so t-at not an/ of its c-ild controls are cli$$ed. 8n t-is settin, t-e middle will not occ+$/ t-e remainin, free s$ace. : 8f /o+ set it to .3sol+te7 t-e #al+e of t-e Widt- $ro$ert/ will s-ow t-e n+m3er of $ixels for t-e col+mn. ": *o+ need to set t-e t-e !ol+mn0t/le instance2s 0i9e T/$e $ro$ert/ to .+to0i9e and t-e Widt- $ro$ert/ to )00F. &U)"*I+, 7& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ -a#e added a 0$lit!ontainer control named !ertkiller 0$lit!ontainer to a form. *o+ t-en left t-e control to t-e defa+lt $ro$erties. To t-e ri,-t-most container of t-e 0$lit!ontainer control7 /o+ need to add a 1ro$ert/Brid. W-ic- of t-e followin, code se,ments s-o+ld /o+ +se6 .. "im $ro$ert/Brid .s 1ro$ert/Brid @ New 1ro$ert/Brid "im ri,-t1anel .s 1anel @ W !T/$eC !ertkiller 0$lit!ontainer.Bet!ontainer!ontrol7 1anelD ri,-t1anel.!ontrols..ddC$ro$ert/BridD . "im $ro$ert/Brid .s 1ro$ert/Brid @ New 1ro$ert/Brid !ertkiller 0$lit!ontainer.!ontainer..ddC$ro$ert/Brid7 E=i,-t1anelED Act'altests-com - *.e /ower of 0nowing

070-526 !. "im $ro$ert/Brid .s 1ro$ert/Brid @ New 1ro$ert/Brid "im ri,-t1anel .s 1anel @ W !T/$eC !ertkiller 0$lit!ontainer.BetNext!ontrolC$ro$ert/Brid7 Tr+eD7 1anelD ri,-t1anel.!ontrols..ddC$ro$ert/BridD ". "im $ro$ert/Brid .s 1ro$ert/Brid @ New 1ro$ert/Brid !ertkiller 0$lit!ontainer.1anel2.!ontrols..ddC$ro$ert/BridD .nswer: " Ex$lanation: .n area can 3e di#ided into two containers7 w-ic- is se$arated 3/ a mo#a3le 3ar7 if /o+ +se t-e 0$lit!ontainer control. W-en t-e two 1anels are created7 t-e left one is t-e 1anel) and t-e ri,-t is 1anel2. *o+ are addin, a $anel so it will 3e on t-e ri,-t. *o+ t-en need to s$ecif/ 1anel2. 8ncorrect .nswers: .7 7 !: *o+ s-o+ld not +se t-e .dd met-od of t-e 0$lit!ontainer.!ontainer to add t-e 1ro$ert/Brid. *o+ also s-o+ld not $ass a 1ro$ert/Brid instance to t-e BetNext!ontrol met-od to ret+rn a 1anel instance. T-is will act+all/ retrie#e t-e next ta3-ordered control ,i#en t-e c+rrent control. *o+ also s-o+ld not call t-e Bet!ontainer!ontrol met-od to ret+rn a 1anel instance. T-is will ret+rn t-e lo,ical container of t-e 0$lit!ontainer control. &U)"*I+, 75 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms exam deli#er/ a$$lication. T-is is ,oin, to 3e +sed to access t-e content of t-e exam #ia t-e 8nternet. . We3 rowser named test3rowser is added to t-e control to a form named !ertkiller Form7 w-ic- is define as follows: S1ermission0etC0ec+rit/.ction."emand7 Name:@EF+llTr+stEDT W S0/stem.=+ntime.8ntero$0er#ices.!om%isi3leCtr+eDT W 1artial 1+3lic !lass !ertkiller Form 8n-erits Form 1+3lic 0+3 NewCD 8nitiali9e!om$onentCD End 0+3 1+3lic 0+3 Ex$ireCD End 0+3 End !lass T-e Ha#a0cri$t-3ased timer t-at is +sed 3/ t-e We3 site for t-e exam -as a f+nction to inform t-e exam deli#er/ a$$lication w-en t-e time -as ex$ired for t-e exam7 w-ic- is t-e followin,: window.external.Ex$ireCDA W-at s-o+ld /o+ do to make s+re t-at t-e Ex$ire met-od of !ertkiller Form is called Act'altests-com - *.e /ower of 0nowing

070-526 w-en t-e Ha#a0cri$ f+nction is carr/ o+t6 .. *o+ s-o+ld set t-e "oc+ment."om"oc+ment $ro$ert/ of t-e 3rowser instance to t-e c+rrent instance of t-e !ertkiller Form class. . *o+ s-o+ld set t-e ;35ectFor0cri$tin, $ro$ert/ of t-e 3rowser instance to t-e c+rrent instance of t-e !ertkiller Form class. !. *o+ s-o+ld call t-e .ttac-E#ent>andler of t-e "oc+ment $ro$ert/ of t-e 3rowser instance. ". *o+ s-o+ld call t-e Exec!ommand met-od of t-e "oc+ment $ro$ert/ of t-e 3rowser instance. .nswer: Ex$lanation: *o+ m+st set t-e ;35ectFor0cri$tin, for t-e 3rowser instance to t-e c+rrent instance of t-e !ertkiller Form class. 8ncorrect .nswers: .: T-e $ro$ert/ of t-e "oc+ment."om"oc+ment re$resents t-e tr+e ";M o35ect of an >TM4 doc+ment. !: T-e .ttac-E#ent>andler allows /o+ to attac- a >TM4 "oc+ment ;35ect Model e#ent to an e#ent -andler. ": T-e Exec!ommand met-od allows /o+ to exec+te commands a,ainst ";M doc+ments. &U)"*I+, 76 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000< as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to make s+re t-at t-e 1ict+re ox will dis$la/ d/namicall/ loaded ima,es. W-ic- $ro$ert/ will dis$la/ a static ima,e if an/ d/namic ima,e fails to load6 .. ack,ro+nd8ma,e . 8ma,e !. Error8ma,e ". 8nitail8ma,e .nswer: ! Ex$lanation: T-e Error8ma,e $ro$ert/ s$ecifies t-e ima,e t-at s-o+ld 3e dis$la/ed. T-is will -a$$ened onl/ if t-e ima,e t-at /o+ are tr/in, to load d/namicall/ fails. 8ncorrect .nswers: .: T-e ack,ro+nd8ma,e $ro$ert/ s$ecifies a 3ack,ro+nd ima,e w-ic- is +sed 3/ t-e control. Act'altests-com - *.e /ower of 0nowing

070-526 : T-e 8ma,e $ro$ert/ s$ecifies t-e ima,e /o+ want t-e 1ict+re ox control to dis$la/. ": T-e 8nitail8ma,e s$ecifies t-e ima,e /o+ want t-e 1ict+re ox control to dis$la/ w-ile t-e ot-er one is loadin,. &U)"*I+, 77 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ are de#elo$in, a We3 ser#ice for new +$dates to I+er/ a+tomaticall/7 3/ +se of a Microsoft Windows Forms a$$lication. *o+ t-en add a Notif/8con com$onent named !ertkiller notif/ to t-e a$$lication2s main form. W-ene#er a new +$date is a#aila3le /o+ want t-e followin, 3alloon ti$ to dis$la/ as seen in t-e ex-i3it for 5 seconds.

W-ic- se,ment s-o+ld /o+ +se to write a code to download t-e +$dates if t-e +sers click t-e 3alloon ti$6 .. 1ri#ate 0+3 0-ow. allonTi$CD !ertkiller notif/.0-ow allonTi$C5000D !ertkiller notif/. alloonTi$8con @ ToolTi$8con.8nfo !ertkiller . alloon Ti$Title @ ENew :$date .#aila3leE !ertkiller . alloonTi$Text @ E!lick -ere to downloadE .dd>andler !ertkiller notif/.!lick7.ddress;f >andler End 0+3 1+3lic 0+3 >andlerC /%al sender .s ;35ect7 /%al e .s E#ent.r,sD 2"ownload t-e +$dates End 0+3 . 1ri#ate 0+3 0-ow. allonTi$CD !ertkiller notif/. alloonTi$8con @ ToolTi$8con.8nfo !ertkiller . alloon Ti$Title @ ENew :$date .#aila3leE !ertkiller . alloonTi$Text @ E!lick -ere to downloadE .dd>andler !ertkiller notif/.!lick7.ddress;f >andler !ertkiller notif/.0-ow allonTi$C5000D End 0+3 1+3lic 0+3 >andlerC /%al sender .s ;35ect7 /%al e .s E#ent.r,sD 2"ownload t-e +$dates End 0+3 !. 1+3lic 0+3 >andlerC /%al sender .s ;35ect7 /%al e .s E#ent.r,sD 2"ownload t-e +$dates End 0+3 1ri#ate 0+3 0-ow. allonTi$CD Act'altests-com - *.e /ower of 0nowing

070-526 .dd>andler !ertkiller notif/. alloonTi$!licked7.ddress;f >andler !ertkiller notif/.0-ow allonTi$C50007 ENew :$date .#aila3leE7 W E!lick -ere to downloadE7 ToolTi$8con.8nfoDA End 0+3 ". 1ri#ate 0+3 0-ow. allonTi$CD !ertkiller notif/.0-ow allonTi$C57 ENew :$date .#aila3leE7 W E!lick -ere to downloadE7 ToolTi$8con.8nfoD .dd>andler !ertkiller notif/. alloonTi$!licked7.ddress;f >andler End 0+3 1+3lic 0+3 >andlerC /%al sender .s ;35ect7 /%al e .s E#ent.r,sD 2"ownload t-e +$dates End 0+3 .nswer: ! Ex$lanation: *o+ s-o+ld +se an e#ent -andler7 attac- t-e alloonTi$!licked to t-e e#ent and call t-e 0-ow alloon Ti$ met-od of t-e Notif/8con class. W-en a +ser clicks a 3alloon ti$7 a alloonTi$!licked e#ent is raised. 8ncorrect .nswers: 7 !7 ": *o+ s-o+ld not attac- t-e alloonTi$!licked e#en to an e#ent -andler after /o+ -a#e called t-e 0-ow alloonTi$ met-od. .lso note t-at t-e e#ent is raised w-en t-e icon is clicked and not t-e 3alloon ti$. &U)"*I+, 7( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ are 3+s/ addin, a Men+0tri$ control7 w-ic- -as an instance of a Tool0tri$Men+ item named test5o38tem7 to a form in a Microsoft Windows Forms a$$lication. T-is item2s dis$la/ text is Ho3. *o+ -a#e recei#ed instr+ctions to add two men+ items to t-e Ho3 men+ item. T-e first item2s dis$la/ text s-o+ld 3e !reate New Ho37 and t-e second one is =+n Ho3. W-ic- code se,ment s-o+ld /o+ +se to $ro,rammaticall/ add t-e two men+ items6 .. "im createNewHo38tem .s Tool0tri$Men+8tem @ W NewTool0tri$Men+8temCE!reate New Ho3ED "im r+nHo38tem .s Tool0tri$Men+8tem @ New Tool0tri$Men+8tem CE=+n Ho3ED "im itemCD .s Tool0tri$Men+8tem @ W New Tool0tri$Men+8temCD Fcreate NewHo38tem7 r+nHo38temG 5o38tem."ro$"own8tem..dd=an,rC8temsD . "im createNewHo38tem .s Tool0tri$Men+8tem @ W NewTool0tri$Men+8temCE!reate New Ho3ED "im r+nHo38tem .s Tool0tri$Men+8tem @ New Tool0tri$Men+8tem CE=+n Ho3ED 5o38tem.!ontainer..ddCcreateNewHo38tem Act'altests-com - *.e /ower of 0nowing

070-526 5o38tem.!ontainer..ddCr+nHo38temD !. "im createNewHo38tem .s Tool0tri$Men+8tem @ W NewTool0tri$Men+8temCE!reate New Ho3ED "im r+nHo38tem .s Tool0tri$Men+8tem @ New Tool0tri$Men+8tem CE=+n Ho3ED "im itemCD .s Tool0tri$Men+8tem @ W New Tool0tri$Men+8temCD Fcreate NewHo38tem7 r+nHo38temG 5o38tem.;wner.8tems..dd=an,eCitemsD ". "im createNewHo38tem .s Tool0tri$Men+8tem @ W NewTool0tri$Men+8temCE!reate New Ho3ED "im r+nHo38tem .s Tool0tri$Men+8tem @ New Tool0tri$Men+8tem CE=+n Ho3ED 5o38tem.;wner.8tems..ddCcreate NewHo38temD 5o38tem.;wner.8tems..ddCr+nHo38temD .nswer: ! Ex$lanation: For t-e 5o38tem instance /o+ s-o+ld call t-e .dd=an,e. T-e $ro$ert/ of t-e "ro$"own8tems re$resents a collection of c-ild items of t-e 5o38tem instance7 w-icallows /o+ to add t-e two items to t-e 5o3 men+ item. 8ncorrect .nswers: .: T-is $ro$ert/ ret+rns an instance of 8!ontainer7 w-ic- re$resents a lo,ical container for ot-er com$onents. : T-e ;wner $ro$ert/ ret+rns t-e Men+ scri$t instance t-at owns t-e Tool0tri$Men+8tem instance. ": T-is action will add t-e two new men+ at t-e same le#el as t-e Ho3 men+ item. &U)"*I+, 7' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0020 as de#elo$in, collateral. *o+ were 3+s/ wit- a task to add a !ontextMen+0tri$ control to a form. W-at s-o+ld /o+ do to dis$la/ a c+stom control as a men+ item of t-e !ontextMen+0tri$ control6 .. .dd a Toolstri$!ontainer control to t-e form and add t-e c+stom control to t-e !ontrols collection residin, on t-e tool0tri$!ontainer control. *o+ s-o+ld t-en add t-e !ontextMeni0tri$ control to t-e controls of t-e Tool0tri$!ontainer control. . ;f Tool0tri$!ontrol>ost7 create an instance and s$ecif/ /o+r c+stom control instance as a $arameter to t-e cond+ctor. *o+ s-o+ld t-en t-e Tool0tri$!ontrol>ost instance to t-e 8tems collection of t-e !ontextMeni0tri$ control. !. .dd a Toolstri$!ontainer control to t-e form and add t-e c+stom control to t-e !ontrols collection residin, on t-e tool0tri$!ontainer control. *o+ s-o+ld t-en add t-e Toolstri$!ontainer control to t-e controls of t-e !ontextMeni0tri$ controls. ". ;f Tool0tri$!ontrol>ost7 create an instance and s$ecif/ /o+r c+stom control instance Act'altests-com - *.e /ower of 0nowing

070-526 as a $arameter to t-e cond+ctor. *o+ s-o+ld t-en t-e !ontextMeni0tri$ controls to t-e collection of t-e Tool0tri$!ontrol>ost instance. .nswer: Ex$lanation: T-e Tool0tri$!ontrol>ost class to -ost a c+stom control as a men+ item in t-e !ontextMeni0tri$. *o+ s-o+ld also t-e c+stom control instance as t-e $arameter to t-e constr+ctor. 8ncorrect .nswers: .7 7 !: T-e Toolstri$!ontainer s-o+ld not 3e +sed to reac- /o+r ,oal. F+rt-ermore7 /o+ cannot -ost a Toolstri$!ontainer control as t-e men+ item in a !ontextMeni0tri$ controls. &U)"*I+, (0 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)0< as de#elo$in, collateral. . !ertkiller .com mana,er named .nd/ oot- -as asked /o+ to de#elo$ a c+stom control t-at ex$oses a c+stom e#ent. T-e c+stom e#ent s-o+ld 3e of s+c- a cali3er t-at t-e e#ent -andler for t-e e#ent is a+tomaticall/ added to t-e code w-en /o+ do+3le-click t-e control in t-e desi,ner. >ow s-o+ld /o+ confi,+re t-e control6 .. .$$l/ t-e "efa+ltE#ent attri3+te t-e class t-at $resents t-e c+stom control and s$ecif/ t-e name of t-e e#ent as a $arameter to t-e attri3+te. . ;#erride t-e ;n"+33le!lick met-od on t-e !ontrol class and call t-e .ddE#ent>andler met-od of t-e E#ent"escri$tor class. !. ;#erride t-e ;n"+33le!lick met-od on t-e !ontrol class and call t-e .ddE#ent>andler met-od of t-e E#ent8nfo class. ". .$$l/ t-e "efa+ltE#ent attri3+te t-e class t-at $resents t-e c+stom control and s$ecif/ t-e name of t-e e#ent -andler met-od as a $arameter to t-e attri3+te. .nswer: . Ex$lanation: T-e "efa+ltE#ent attri3+te s$ecifies t-e name of t-e e#ent for w-ican e#ent -andler s-o+ld 3e created7 w-en do+3le-clickin, t-e control in t-e desi,ner. 8ncorrect .nswers: : *o+ s-o+ld not do t-is. T-is allows /o+ to $ro,rammaticall/ attac- eac- e#ent -andler to an e#ent7 disco#ered #ia reflection. !: "oin, t-is7 will allow /o+ to $ro,rammaticall/ attac- eac- e#ent -andler to an e#ent7 disco#ered #ia reflection. *o+ t-en cannot +se t-is to ,enerate a code for t-e e#ent. ": T-is s$ecifies t-e name of t-e e#ent as a $arameter. Act'altests-com - *.e /ower of 0nowing

070-526

&U)"*I+, () *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)<< as de#elo$in, collateral. . !ertkiller .com mana,er named .nd/ oot- -as asked /o+ to create a c+stom control. *o+ want to c+stom control to take action w-en a +ser $resses t-e .ltJ" ke/s. 8t m+st 3e of s+ca nat+re t-at it allows /o+ to $re#ent ot-er control from recei#in, instr+ctions t-at t-e .ltJ" ke/s are $ressed. W-at s-o+ld /o+ do6 .. >andle t-e ?e/"own e#ent. . ;#erride t-e ;n?e/"own met-od. !. ;#erride t-e ;n?e/1ress met-od. ". >andle t-e ?e/1ress e#ent. .nswer: Ex$lanation: T-e ;n?e/"own met-od s$ecifies a ?e/E#ent.r,s instance as a $arameter. T-e ?e/E#ent.r,s class also contains a Modifier ke/s t-at were $ressed. 8ncorrect .nswers: .: T-is will sto$ ot-er controls from ,ettin, instr+ctions t-at t-e .ltJ" ke/s were $ressed. !: T-e ;n?e/1ress is in#oked w-en /o+ $ress a ke/. ;#erridin, t-e ;n?e/1ress will not allow /o+ to find t-e com3ination of t-e modifier ke/s t-at was $ressed. 78, Integrating 1ata in a Windows FormsApplication #$0 &'estions( &U)"*I+, (2 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ -a#e called a stored $roced+re t-at ret+rns a row set t-at -as data a3o+t electrical c-i$s. *o+ t-en load t-e $art data in a "ata0et instance named testdata0et. T-e "ata0et -as a sin,le "ata Ta3le instance. T-e "ataTa3le instance2s Ta3leName $ro$ert/ is set to 1art. W-ic- code se,ment s-o+ld /o+ +se to dis$la/ t-e $art data in a "ataBrid%iew control named testdataBrid%iew6 .. testdataBrid%iew."ata0o+rce @ testdata0et. Ta3lesC0D testdataBrid%iew."ataMem3er @ E1artE Act'altests-com - *.e /ower of 0nowing

070-526 . testdataBrid%iew."ata0o+rce @ testdata0et. Ta3les CE1artED testdataBrid%iew."ataMem3er @ E"ataTa3leE !. testdataBrid%iew."ata0o+rce @ testdata0et testdataBrid%iew."ataMem3er @ E1artE ". testdataBrid%iew."ata0o+rce @ testdata0et testdataBrid%iew."ataMem3er @ ETa3leName.1artE .nswer: ! Ex$lanation: To o3tain /o+r o35ecti#e /o+ s-o+ld set t-e "ataBrid%iew control "ata0o+rce $ro$ert/ to t-e "ata0et instance. *o+ also s-o+ld set t-e "ataBrid%iew control "ata0o+rce $ro$ert/ to t-e"ataMem3er $ro$ert/ to $art. 8ncorrect .nswers: .7 7 ": 8t is not ,ood if /o+ set t-e "ataMem3er $ro$ert/ if /o+ set e- "ata0o+rce $ro$ert/ to t-e "ataTa3le instance w-ic- si,nifies t-e 1art data. F+rt-ermore7 /o+ s-o+ld not set t-e "ataMem3er $ro$ert/ to Ta3leName.1art. &U)"*I+, (< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000< as de#elo$in, collateral. *o+ are 3+s/ addin, a Text ox control named !ertkiller Text ox to a form. *o+ are doin, t-is 3/ dra,,in, a !ontact field from t-e "ata 0o+rces window to t-e form. T-e data of t-e Text $ro$erties of t-e !ertkiller Text ox is $art of t-e !ontact field. To na#i,ate t-e records in a data so+rce7 /o+ added two +tton controls to t-e form. W-ic- code se,ment s-o+ld /o+ +se to $ro,rammaticall/ mo#e t-e next record and dis$la/ t-e new #al+e of t-e !ertkiller Text ox2s !ontact field w-en t-e !ertkiller .com +sers click one of t-e +tton controls6 .. "im 3indin, .s indin, @ !ertkiller Text ox."ata indin,sCETextED 3indin,. indin,Mana,er ase.1osition J@ ) . "im 3indin, .s indin, @ !ertkiller Text ox."ata indin,sCE!ontactED 3indin,. indin,Mana,er ase.1osition J@ ) !. !ertkiller Text ox. indin,!ontextCETextED.1osition J@ ) ". !ertkiller Text ox. indin,!ontextCE!ontactED.1osition J@ ) .nswer: . Ex$lanation: T-e Windows Forms control -as a "ata indin,s $ro$ert/ t-at re$resents a collection of indin, instances. W-en data so+rce mem3ers c-an,e7 t-e indin, class allows a control2s $ro$ert/ to 3e +$dated a+tomaticall/. 8ncorrect .nswers: 7 !7 ": W-en /o+ $ass t-e #al+e !ontact as t-e $arameter to t-e "ata indin,s

Act'altests-com - *.e /ower of 0nowing

070-526 $ro$ert/7 /o+ s-o+ld not ,et a indin, instance Mana,er ase instance. F+rt-ermore /o+ s-o+ld not $ass t-e name of t-e $ro$ert/ as a $arameter to t-e indin,!ontext $ro$ert/. &U)"*I+, (& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ are 3+s/ addin, a !om3o ox control name test!om3o ox to a form. W-ic- code se,ment s-o+ld /o+ +se to $o$+late t-e !om3o ox wit- a list of #alid Microsoft 0N4 0er#er instances w-ic- is re,istered on t-e s/stem w-ere t-e a$$lication is r+nnin,6 .. "imdataTa3le .s "ataTa3le @ 0Il"ata0o+rceEn+merator.8nstance.Bet"ata0o+rceCD test!om3o ox."ata0o+rce @ dataTa3le test!om3o ox."is$la/Mem3er @ EF0er#erNameGPF8nstanceNameGE test!om3o ox.%al+eMem3er @ E8nstanceNameE test!om3o ox.Format0trin, @ EF0GF)GE . "im dataTa3le .s "ataTa3le @ 0Il"ata0o+rceEn+merator.8nstance.Bet"ata0o+rceCD "im row .s "ata=ow For Eac- row 8n dataTa3le.=ows "im data0o+rce .s 0trin, @ !T/$eCrowCE0er#erNameED7 0trin,D 8f rowCE8nstanceNameED 8sNot " N+ll.%al+e T-en data0o+rce J@ strin,.FormatEPF0GE7rowCE0er#erNameED End 8f test!om3o ox.8tems..ddCdata0o+rceD Next !. "imdataTa3le .s "ataTa3le @ 0Il"ata0o+rceEn+merator.8nstance.Bet"ata0o+rceCD test!om3o ox."ata0o+rce @ dataTa3le test!om3o ox."is$la/Mem3er @ E0er#erNameE test!om3o ox.%al+eMem3er @ E8nstanceNameE ". "im dataTa3le .s "ataTa3le @ 0Il"ata0o+rceEn+merator.8nstance.Bet"ata0o+rceCD "im row .s "ata=ow For Eac- row 8n dataTa3le.=ows "im data0o+rce .s 0trin, @ !T/$eCrowCE8nstanceNameED7 0trin,D 8f rowCE8nstanceNameED 8sNot " N+ll.%al+e T-en data0o+rce J@ strin,.FormatEPF0GE7rowCE0er#erNameED End 8f test!om3o ox.8tems..ddCdata0o+rceD Next .nswer: Ex$lanation: T-e 0Il"ata0o+rceEn+merator class $ermits /o+ to en+merate re,istered 0N4 ser#er instances. 8f /o+ want to ,et -old of t-e instance7 /o+ s-o+ld Act'altests-com - *.e /ower of 0nowing

070-526 call t-e Bet"ata0o+rce met-od. T-is will ret+rn an instance of fo+r col+mns. 8ncorrect .nswers: .7 !7 ": *o+ do not need to set t-e "ata0o+rce $ro$ert/ of test!om3o ox to t-e "ataTa3le instance ret+rned from Bet"ata0o+rce. T-is will not dis$la/ t-e #al+es from t-e 0er#erName and 8nstanceName field as a sin,le #al+e. &U)"*I+, (5 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. ;ne of t-e assistant a$$lication de#elo$ers named =or/ .llen were asked to exec+te two 0N4 commands w-ic- can +$date t-e data in se$arate Microsoft 0N4 0er#er 2005 data3ases. W-en e#er t-e second command fails7 t-e first command s-o+ld 3e rolled 3ack. W-at s-o+ld =or/ .llen do6 .. Exec+te 3ot- t-e commands wit-in a sin,le Transaction0co$e 3lock and call t-e !om$lete met-od of t-e Transaction0co$e instance if 3ot- commands exec+te s+ccessf+ll/. . Exec+te 3ot- t-e commands in se$arate Transaction0co$e 3lock and call t-e !om$lete met-od of t-e second Transaction0co$e instance if 3ot- commands exec+te s+ccessf+ll/. !. Exec+te 3ot- t-e commands wit-in a sin,le Transaction0co$e 3lock and call t-e !om$lete met-od of t-e Transaction0co$e instance if eac- command exec+ted s+ccessf+ll/. ". Exec+te 3ot- t-e commands in se$arate Transaction0co$e 3lock and call t-e !om$lete met-od of t-e Transaction0co$e instance if eac- command exec+ted s+ccessf+ll/. .nswer: . Ex$lanation: ot- of t-e commands s-o+ld 3e exec+ted wit-in a sin,le Transaction0co$e 3lock. T-is will allow 3ot- of t-e commands to exec+te wit-in t-e same context of t-e same transaction. 8ncorrect .nswers: 7 ": *o+ s-o+ld not exec+te eac- command in a se$arate Transaction0co$e 3lock. otof t-e commands s-o+ld 3e exec+ted wit-in a sin,le Transaction0co$e 3lock. !: efore t-e second command s+cceeds7 /o+ s-o+ld not call t-e !om$lete met-od. &U)"*I+, (6 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0002 as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to call a stored $roced+re t-at ret+rn ima,es from a Microsoft Act'altests-com - *.e /ower of 0nowing

070-526 0N4 0er#er 2005 data3ase. *o+ want to +se t-e 0Il"ata=eader class to read t-e ret+rned ima,es. To ens+re t-at eac- ima,e is ret+rned as a 0tream instance t-at can 3e read on demand7 w-at s-o+ld /o+ do6 .. To t-e Exec+te=eader met-od of a 0Il!ommand instance7 s$ecif/ !ommand e-a#ior.0eI+ential.ccess as a $arameter. . For t-e 0Il!onnection instance t-at re$resents t-e data3ase connection7 set t-e 1acket 0i9e connection strin, $ro$ert/ to 0. !. For a 0Il!ommand instance7 call t-e 1re$are met-od followed 3/ t-e Exec+teNonN+er/ met-od. ". !all t-e e,inTransaction met-od of a 0Il!onnection instance and s$ecif/ 8solation4e#el.0eriali9a3le as a $arameter. .nswer: . Ex$lanation: *o+ need to s$ecif/ !ommand e-a#ior.0eI+ential.ccess as a $arameter. T-e Microsoft .NET "ata1ro#ider for 0N4 0er#er will load t-e ret+rned data as steam. 8ncorrect .nswers: : *o+ s-o+ld not set t-e si9e to 0. T-is will not instr+ct t-e Microsoft .NET "ata1ro#ider for 0N4 0er#er will load t-e ret+rned data as steam. !: T-e Exec+teNonN+er/ met-od exec+tes 0N4 commands and does not ret+rn row sets. ": T-e 8solation4e#el.0eriali9a3le en+meration mem3er s-ows t-at a lock s-o+ld 3e $laced to $re#ent transactions from +$datin, or insertin, rows into t-e "ata0et instance. &U)"*I+, (7 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0002 as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to im$ort data from a flat file into a into a Microsoft 0N4 0er#er 2005 data3ase ta3le. W-at s-o+ld /o+ do to +se t-e 0Il +lk!o$/ class to im$ort t-e data6 .. From t-e flat file7 im$ort data into a "ataTa3le instance. . Make s+re t-at t-e col+mn order in t-e data3ase ta3le matc-es t-e field order in t-e flat file. !. !reate a stored $roced+re to co$/ t-e data to t-e data3ase ta3le. ". 1+t t-e c$.exe tool in t-e o+t$+t director/ of t-e assem3l/ t-at -as t-e code. .nswer: . Ex$lanation: *o+ need to im$ort data into a "ataTa3le instance. 8ncorrect .nswers: Act'altests-com - *.e /ower of 0nowing

070-526 : *o+ do not need to make s+re t-at t-e col+mn order in t-e data3ase ta3le matc-es t-e field order in t-e flat file. !: T-ere is no need to create a stored $roced+re to co$/ t-e data to t-e data3ase ta3le. ": T-e c$.exe tool is a command line t-at is t-e eI+i#alent of t-e mana,ed 0Il +lk!o$/ class. *o+ do not need t-at. &U)"*I+, (( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0002 as de#elo$in, collateral. *o+ -a#e recei#ed instr+ctions to create a "ata0et dia,ram t-at models a one-to-man/ relations-i$ 3etween $atients and treatments as seen in t-e ex-i3it:

W-en /o+ seriali9e instance of t-e created "ata0et com$onent /o+7 /o+ recei#ed t-e followin, RM4: S1atientT S1atient8"T526SK1atient8"T S1atientNameT.m/ Wals-SK1atientNameT SK1atientT STreatmentT STreatment8"T )000SKTreatment8"T S1atient8"T526SK1atient8"T S!odeT"T1SK!odeT SKTreatmentT T-e R4M s-o+ld 3e as follows Act'altests-com - *.e /ower of 0nowing

070-526 S1atientT S1atient8"T526SK1atient8"T S1atientNameT.m/ Wals-SK1atientNameT STreatmentT STreatment8"T )000SK1atient8"T S!odeT"T1SK!odeT SKTreatmentT SK1atientT W-at s-o+ld /o+ do to c-an,e t-e dialo, 3ox so t-at t-e R4M in ,enerated correctl/6 .. *o+ s-o+ld select t-e Treatment from t-e 1arent Ta3le list and t-e 1atient from t-e !-ild Ta3le list. . *o+ s-o+ld select t-e ot- =elation and Forei,n ?e/ !onstraint o$tion. !. *o+ s-o+ld select t-e Forei,n ?e/ !onstraint ;nl/ o$tion. ". *o+ s-o+ld select t-e Nested =elation o$tion. .nswer: " Ex$lanation: T-e Nested =elation o$tion will indicate t-at elements t-at is t-e same as t-e c-ild rows of t-e relation s-o+ld 3e nested as c-ild elements t-at corres$onds to t-e $arent row. 8ncorrect .nswers: .: *o+ s-o+ld not do t-is. . one-to-man/ relation exits 3etween t-e $atients and treatments. : T-is will s-ow t-at no relation exits 3etween t-e two ta3les. !: T-is will create a forei,n ke/ constraint 3etween t-e c-ild ta3le and t-e $arent ta3le. &U)"*I+, (' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000< as de#elo$in, collateral. *o+ are 3+s/ +sin, t-e Rml"oc+ment class to control an RM4 doc+ment. 8f t-e RM4 attri3+te is modified and inserted7 /o+ need to $erform #alidation and ret+rn t-e Rml"oc+mant instance to t-e ori,inal state if t-e #alidation fails. W-ic- of t-e followin, e#ents s-o+ld /o+ +se to -andle t-e e#ents of t-e Rml"oc+ment class6 .. Node!-an,ed and Node8nsertin, . Node!-an,ed and Node8nserted !. Node!-an,in, and Node8nserted ". Node!-an,in, and Node8nsertin, .nswer: " Act'altests-com - *.e /ower of 0nowing

070-526

Ex$lanation: W-en t-e Rml node is a3o+t to c-an,e7 an Node!-an,in, e#ent is raised. 0o /o+ need to -andle t-e Node!-an,in, and Node8nsertin, e#ents. 8ncorrect .nswers: .: W-en t-e node -as c-an,ed and t-en t-e e#ent is raised7 it will 3e too late. *o+ s-o+ld not -andle t-e Node!-an,ed e#ent. : W-en t-e node -as c-an,ed and t-en t-e e#ent is raised7 it will 3e too late. *o+ s-o+ld not -andle t-e Node!-an,ed e#ent. T-e Node8nserted will also raise after t-e e#ent -as -a$$ened. !: *o+ s-o+ld not -andle t-e Node!-an,ed e#ent. T-e Node8nserted will also raise after t-e e#ent -as -a$$ened. &U)"*I+, '0 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ -a#e to read lar,e amo+nts of RM4 data. T-e data resides on an external data so+rce. *o+ need to read t-e RM4 data and #alidate it as it is read. W-ic- of t-e followin, classes s-o+ld /o+ +se w-ic- will 3e most memor/-efficient wa/6 .. "ata0et . Rml=eader !. Rml"ata"oc+ment ". Rml"oc+ment .nswer: Ex$lanation: 8f lar,e amo+nt of data is read7 /o+ s-o+ld +se t-e RM4=eader class. 8t re$resents a forward-onl/ and read-onl/. T-is is a #er/ efficient wa/ 3eca+se t-e doc+ment does not need to 3e loaded into t-e memor/. 8ncorrect .nswers: .: T-e "ata0et re$resents disconnected relational data and t-e data need to 3e in t-e memor/. !: T-e Rml"ata"oc+ment im$lements t-e f+nctionalit/ of t-e Rml"oc+ment class and t-e "ata0et class. ": T-e Rml"oc+ment im$lements t-e RM 4"oc+ment ;35ect Model. &U)"*I+, ') *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ are 3+s/ Act'altests-com - *.e /ower of 0nowing

070-526 +sin, t-e RmlWriter class to write lar,e amo+nt of RM4 data to a $-/sical de#ice #ia a 3+ffer stream. W-ic- met-od s-o+ld /o+ +se to write all 3+ffered data in t-e stream to t-e de#ice wit-o+t losin, an/ 3+ffered data6 .. WriteF+llEndElement . Fl+s!. !lose ". WriteEnd"oc+ment .nswer: Ex$lanation: T-e fl+s- met-od fl+s-es t-e +nderl/in, stream 3/ writin, all 3+ffered data to t-e +nderl/in, de#ice and it does not loose an/ data. 8ncorrect .nswers: .: T-e WriteF+llEndElement met-od closes t-e c+rrent doc+ment w-ic- is o$en. !: T-e !lose met-od closes t-e +nderl/in, stream. T-is will ca+se /o+ to loose data. ": T-e WriteEnd"oc+ment met-od closes all t-e o$en doc+ments. 78, Implementing /rinting and 2eporting F'nctionalit! in a Windows Forms Application #$0&'estions( &U)"*I+, '2 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0066 as de#elo$in, collateral. T-e mana,er -as told /o+ to de#elo$ a Microsoft Windows Forms a$$lication w-ic- -as $rintin, ca$a3ilities. From w-ic- of t-e followin, 3ase s-o+ld /o+ deri#e /o+ class to create a class t-at will s-ow /o+ t-e reI+ired dialo, 3ox6 .. 1a,e0et+$"ialo, . 1rint!ontrollerWit-0tat+s"ialo, !. 1rint"ialo, ". 1rint1re#iew"ialo, .nswer: Ex$lanation: *o+ s-o+ld ,et /o+ class from t-e 1rint!ontrollerWit-0tat+s"ialo,. T-is will allow /o+ to extend t-e 1rint!ontroller. 8ncorrect .nswers: .: T-e 1a,e0et+$"ialo, $resent t-e standard 1a,e 0et+$ dialo, 3ox. T-e dialo, 3ox does not s-ow t-e stat+s of a $rint. !: T-e 1rint"ialo, s-ows t-e 1rint dialo, 3ox. Act'altests-com - *.e /ower of 0nowing

070-526 ": T-e 1rint1re#iew"ialo, s-ows t-e 1rint 1re#iew dialo, 3ox. T-is will not dis$la/ t-e stat+s of t-e $rint 5o3. &U)"*I+, '< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms res+me 3+ilder a$$lication. W-ic- code se,ment s-o+ld /o+ +se to allow +sers to see a $rinted res+me wit-o+t $rintin, t-e doc+ment6 L:se a modal dialo, 3oxM .. "im dialo, .s 1rint"ialo, @ New 1rint1re#iew"ialo, dialo,."oc+ment @ doc+ment dialo,.0-owCD . "im dialo, .s 1rint"ialo, @ New 1rint1re#iew"ialo, dialo,."oc+ment @ doc+ment dialo,.0-ow"ialo,CD !. "im dialo, .s 1rint"ialo, @ New 1rint"ialo, dialo,."oc+ment @ doc+ment dialo,.0-ow"ialo,CD ". "im dialo, .s 1rint"ialo, @ New 1rint"ialo, dialo,."oc+ment @ doc+ment dialo,.:seER"ialo, @ tr+e dialo,.0-ow"ialo,CD .nswer: Ex$lanation: T-e 1rint1re#iew"ialo, class re$resents t-e standard 1rint 1re#iew dialo, 3ox. Wit- t-is /o+ can $re#iew t-e doc+ment 3efore /o+ $rint it. 8ncorrect .nswers: .7 !7 ": T-e 0-ow met-od s-ows a modeless dialo, 3ox and not t-e modal dialo, 3ox. T-e 1rint"ialo, class re$resents t-e standard 1rint dialo, 3ox. 8t does not allow /o+ to $re#iew t-e doc+ment. &U)"*I+, '& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ creatin, a 1rint"oc+ment instance t-at re$resents a re$ort to $rint. W-ic- of t-e followin, e#ent will $ro,rammaticall/ c-an,e t-e $a,e settin,s of Act'altests-com - *.e /ower of 0nowing

070-526 indi#id+al $a,es as t-e/ are $rinted6 .. N+er/1a,e0ettin,s . e,in1rint !. 1rint1a,e ". End1a,e .nswer: . Ex$lanation: T-e N+er/1a,e0ettin,s is raised 3efore t-e $rintin, starts. *o+ can t-en modif/ t-e $a,e. 8ncorrect .nswers: : T-e e,in1rint is raised 3efore t-e first $a,e is $rint. *o+ need t-is for m+lti$le $a,e settin,s. !: T-e 1rint1a,e raise an e#ent w-en a $a,e is $rint7 /o+ cannot c-an,e settin,s at t-at sta,e. ": T-e End1a,e is s-own w-en t-e $rint 5o3 is finis-ed. &U)"*I+, '5 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. !ertkiller .com consists of a "e#elo$ment de$artment and a Finance de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000< as de#elo$in, collateral. *o+ are 3+s/ creatin, a com$onent t-at allows t-e +sers in t-e Finance de$artment to $rint dail/ re$orts. *o+ want t-e com$onent to ,rant $ermission to access all t-e $rinters on t-e client com$+ters of t-e +sers. W-at s-o+ld /o+ do to $ro,rammaticall/ s$ecif/ sec+rit/ to sto$ a f+ll stack walk from 3ein, $erformed w-en t-e com$onent $rints t-e re$ort6 .. !all t-e "emand met-od on a f+ll/-restricted 1rintin,1ermission instance. . !all t-e "emand met-od on an +nrestricted 1rintin,1ermission instance. !. !all t-e .ssert met-od on a f+ll/-restricted 1rintin,1ermission instance. ". !all t-e .ssert met-od on an +nrestricted 1rintin,1ermission instance. .nswer: " Ex$lanation: For /o+ to create an +nrestricted 1rintin,1ermission7 /o+ s-o+ld create an instance of t-e 1rintin,1ermission class and $ass t-e 1rintin,1ermission4e#el..ll1rintin, en+meration mem3er or t-e 1ermission0tate.:nrestricted en+meration mem3er as a $arameter. 8ncorrect .nswers: .7 : T-e "emand met-od will demand t-at a stack walk 3e $erformed to find o+t if all callers -i,-er in t-e stack -a#e $ermission to $rint. T-is is t-en done for eac- doc+ment t-at Act'altests-com - *.e /ower of 0nowing

070-526 needs to 3e $rinted. !: T-e .ssert met-od on a f+ll/-restricted 1rintin,1ermission instance is t-e same as not demandin, $ermission to $rint. &U)"*I+, '6 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ creatin, a Microsoft Windows Forms a$$lications for t-e sec+rit/ a,enc/. T-e a$$lication is +sed to $rint sec+rit/-related doc+ments. T-e/ also want t-e doc+ment to 3e watermarked on eac- $a,e. From w-ic- 3ase class wo+ld /o+ o3tain /o+r class to create a class t-at meets t-e reI+irements6 .. 1rint"oc+ment . 1rint1re#iew!ontrol !. 1rint!ontroller ". 1rint1re#iew"ialo, .nswer: . Ex$lanation: T-e 1rint"oc+ment allows /o+ to o#erride t-e ;n1rint1a,e met-od w-ic- will $rint a sec+re watermark on eac- $a,e. 8ncorrect .nswers: : T-e 1rint1re#iew!ontrol re$resents a c+stomi9ed $rint $re#iew control. *o+ t-en can add t-is to t-e form 3+t /o+ cannot c+stomi9e t-e $rintin, $rocess. !: T-e 1rint!ontroller allow /o+ to control t-e $rintin, $rocess 3+t cannot force sec+re watermarks. ": T-e 1rint1re#iew"ialo, s-ows t-e 1rint 1re#iew dialo, 3ox. *o+ cannot c+stomi9e t-e $rintin, $rocess. &U)"*I+, '7 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ were ,i#en instr+ctions to de#elo$ a $rint dri#er license. T-e com$onent t-at /o+ will +se s-o+ld ,rant $ermission to access all t-e $rinters t-at are connected to t-e client com$+ters. W-at s-o+ld /o+ do to ste$ 3/ ste$ s$ecif/ sec+rit/ to make s+re t-at a$$lications cannot +se /o+r com$onent +nless t-e/ are ,ranted an +nrestricted $rintin, $ermission6 Act'altests-com - *.e /ower of 0nowing

070-526

.. !all t-e "emand met-od on a 1rintin,1ermission instance wit- t-e 4e#el $ro$ert/ set to 1rintin,1ermission4e#el..ll1rintin,. . !all t-e "emand met-od on a 1rintin,1ermission instance wit- t-e 4e#el $ro$ert/ set to 1rintin,1ermission4e#el.Nol1rintin,. !. !all t-e .ssert met-od on a 1rintin,1ermission instance wit- t-e 4e#el $ro$ert/ set to 1rintin,1ermission4e#el..ll1rintin,. ". !all t-e .ssert met-od on a 1rintin,1ermission instance wit- t-e 4e#el $ro$ert/ set to 1rintin,1ermission4e#el.No1rintin,. .nswer: . Ex$lanation: W-en +sin, t-e "emand met-od7 ill demand t-e callers in a -i,-er stack a s$ecific $ermission. T-e a$$lications t-at are ,ranted +nrestricted $rintin, $ermissions can +se t-e $rint dri#er license. 8ncorrect .nswers: : T-e "emand met-od on a 1rintin,1ermission is t-e same as $ermission to $rint. !7 ": T-e .ssert met-od7 /o+ can make s+re t-at t-e code is sec+re and $re#ent a f+ll stack walk from w-et-er all callers in t-e call stack are ,ranted t-e $ermission. &U)"*I+, '( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0006 as de#elo$in, collateral. *o+ are 3+s/ creatin, a Microsoft Windows Forms a$$lications wit- $rintin, s+$$ort. *o+ were asked to raise a c+stom e#ent named 1a,e!-an,ed. From w-ic- 3ase class wo+ld /o+ o3tain /o+r class to create a class t-at meets t-e reI+irements wit- t-e minimal code c-an,es6 .. 1rint"oc+ment . 1rint1re#iew!ontrol !. 1rint!ontroller ". 1rint1re#iew"ialo, .nswer: Ex$lanation: T-e 1rint1re#iew!ontrol re$resents a c+stomi9ed $rint $re#iew control. *o+ can also raise c+stom e#ents. 8ncorrect .nswers: .: T-e 1ront"oc+ment is a doc+ment t-at can 3e $rinted. !: T-e 1rint!ontroller allow /o+ to control t-e $rintin, $rocess 3+t not to $re#iew t-e doc+ment. ": T-e 1rint1re#iew"ialo, s-ows t-e 1rint 1re#iew dialo, 3ox. Act'altests-com - *.e /ower of 0nowing

070-526

&U)"*I+, '' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment and a Finance de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00)7 as de#elo$in, collateral. *o+ are +sin, t-e 1rint1re#iew"ialo, class to $ermit t-e +sers in t-e Finance de$artment to -a#e a $re#iew of t-ere doc+ments. *o+ need to sto$ a #iewed $a,e in t-e doc+ment from 3ein, a+tomaticall/ resi9ed w-en t-e dialo, 3ox re$resented 3/ t-e 1rint1re#iew"ialo, instance is resi9ed. W-at s-o+ld /o+ do to confi,+re t-e 1rint1re#iew!ontrol instance of t-e 1rint1re#iew"ialo, instance6 .. *o+ s-o+ld set t-e .+toUoom $ro$ert/ to Tr+e. . *o+ s-o+ld set t-e Uoom $ro$ert/ to )00. !. *o+ s-o+ld set t-e Uoom $ro$ert/ to ). ". *o+ s-o+ld set t-e .+toUoom $ro$ert/ to False. .nswer: " Ex$lanation: 8f it is set to False7 it will s-ow t-at t-e $a,e s-o+ld not a+tomaticall/ 3e resi9ed w-en t-e dialo, 3ox is resi9ed. 8ncorrect .nswers: .: 8f t-e .+toUoom $ro$ert/ is set to Tr+e7 it will s-ow t-at t-e $a,e 3e resi9ed w-en t-e dialo, 3ox is resi9ed. 7 !: 0ettin, t-e #al+e to )00 $ercent w-ic- is t-e same as )7 will s+$$ort a decimal #al+e t-at s-ows t-e 9oom le#el of t-e $re#iewed $a,e. T-is -as not effect w-en t-e $a,e is a+tomaticall/ resi9ed. &U)"*I+, )00 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment and a Bra$-ics de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ creatin, an instance of t-e 1rint1re#iew!ontrol class named ,ra$-ic$rint1re#iew!ontrol to allow t-e +sers in t-e Bra$-ics de$artment to $re#iew t-eir $rinted doc+ments. W-ic- code se,ment is +sed to defa+lt t-e $re#iew to a 9oom le#el of 50 $ercent and a#ert text from a$$earin, 5a,,ed6 .. $rint1re#iew!ontrolUoom @ 0.5 $rint1re#iew!ontrol.:se.nti.lias @ tr+e . $rint1re#iew!ontrolUoom @ 0.5 $rint1re#iew!ontrol.:se.nti.lias @ false Act'altests-com - *.e /ower of 0nowing

070-526 !. $rint1re#iew!ontrolUoom @ 50 $rint1re#iew!ontrol.:se.nti.lias @ false ". $rint1re#iew!ontrolUoom @ 0.05 $rint1re#iew!ontrol.:se.nti.lias @ tr+e .nswer: . Ex$lanation: T-e 0.5 is t-e same as 50 $ercent. *o+ m+st set t-e :se.nti.lias to tr+e. 8ncorrect .nswers: 7 !: *o+ m+st not set t-e :se.nti.lias to false. T-is will disa3le anti-aliasin,. ": T-is settin, id wron,7 0.05 is not 50 $ercent. &U)"*I+, )0) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)2< as de#elo$in, collateral. T-e followin, code was added to add a 1rint1re#iew!ontrol instance to a 1anel control named test$anel. "im $rint1re#iew .s 1rint1re#iew!ontrol @ New 1rint1re#iew!ontrolCD $rint1re#iew.!ol+mns @ 2 $rint1re#iew.=ows @ 2 $rint1re#iew."ock @ "ock0t/le.Fill test$anel.!ontrols..ddC$rint1re#iewD W-en /o+ r+n t-e a$$lication t-at -as t-is code7 /o+ recei#ed t-e followin, messa,e on t-e 1anel control. "oc+ment does not contain an/ $a,es. W-at m+st /o+ do to allow a $a,e to 3e dis$la/ed7 w-en r+nnin, t-e a$$lication6 .. *o+ s-o+ld set t-e 0tart1a,e $ro$ert/ of $rint1re#iew to ) . *o+ s-o+ld set t-e %isi3le $ro$ert/ of $rint1re#iew to tr+e !. *o+ s-o+ld call t-e 0-ow met-od of $rint1re#iew ". *o+ s-o+ld set t-e "oc+ment $ro$ert/ of $rint1re#iew to an instance of 1rint"oc+ment .nswer: " Ex$lanation: To dis$la/ a $re#iew of a doc+ment w-en t-e "oc+ment $ro$ert/ is set7 /o+ s-o+ld +se t-e 1rint1re#iew!ontrol. 8ncorrect .nswers: .: T-e 0tart1a,e $ro$ert/ -as no effect if t-e "oc+ment$ro$ert/ is not set to a 1rint"oc+ment instance. : T-is s-ows t-at t-e controls s-o+ld 3e #isi3le. !: T-e $ro$ert/ -as no effect if t-e "oc+ment$ro$ert/ is not set. Act'altests-com - *.e /ower of 0nowing

070-526

78, )n.ancing Usa ilit! #7 &'estions( &U)"*I+, )02 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W005' as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at allows t-e com$+ter en,ineers to desi,n circ+it 3oards for different t/$es of -ardware. *o+ t-en create a c+stom control t-at $ortra/s t-e desi,n s+rface. W-ic- of t-e followin, e#ent s-o+ld /o+ -andle so t-at /o+ can -i,-li,-t t-e a#aila3le areas on t-e desi,n s+rface w-ere a com$onent can 3e dro$$ed6 .. "ra,Enter . N+er/!ontin+e"ra, !. Bi#eFeed3ack ". "ra,;#er .nswer: " Ex$lanation: T-e "ra,;#er e#ent will 3e raised if t-e mo+se $ointer will mo#e o#er a control d+rin, a dra,-and-dro$ action. 8ncorrect .nswers: .: T-e "ra,Enter e#ent will raise onl/ if t-e mo+se $ointer enters a control d+rin, a dra,-and-dro$ action. : T-e N+er/!ontin+e"ra, e#ent is raise w-en t-e mo+se or ke/3oard 3+tton state c-an,es. !: T-e Bi#eFeed3ack e#ent is raised w-en a dra,-and-dro$ action is started. &U)"*I+, )0< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at allows t-e com$+ter en,ineers to desi,n circ+it 3oards for different t/$es of -ardware. T-e electronic $arts exits as nodes7 on t-e main form7 w-ic- reside in a Tree%iew control named testtree%iew. T-e Tree%iew2s .llow"ro$ $ro$ert/ is set to false and a 1anel control $ro#ides t-e drawin, s+rface. *o+ want t-e "e#elo$ment +sers to dra, t-e com$onents to t-e drawin, s+rface. W-ic- of t-e followin, code se,ments is +sed to writ code to 3e,in a dra,-and-dro$ o$eration6

Act'altests-com - *.e /ower of 0nowing

070-526 .. 1+3lic 0+3 >andlerC /%al sender .s ;35ect7 /%al e .s E#ent.r,sD W >andler testtree%iew."ra,4ea#e "o"ra,"ro$Ctesttree%iew.0electNode7 "ra,"ro$Effects.!o$/D End 0+3 . 1+3lic 0+3 >andlerC /%al sender .s ;35ect7 /%al e .s E#ent.r,sD W >andler testtree%iew."ra,Enter "o"ra,"ro$Ce."ata."ra,"ro$Effects.!o$/D End 0+3 !. 1+3lic 0+3 >andlerC /%al sender .s ;35ect7 /%al e .s 8tem"ra,E#ent.r,sD W >andler testtree%iew.8tem"ra, "o"ra,"ro$Ce.8tem7 "ra,"ro$Effects.!o$/D End 0+3 ". 1+3lic 0+3 >andlerC /%al sender .s ;35ect7 /%al e .s E#ent.r,sD W >andler testtree%iew.Mo+seEnter "o"ra,"ro$Ctesttree%iew.0electNode7 "ra,"ro$Effects.!o$/D End 0+3 .nswer: ! Ex$lanation: 8f /o+ -andle t-e 8tem"ra, e#ent of t-e Tree%iew control7 an e#ent will raise w-en t-e +ser 3e,ins to dra, a node in t-e Tree%iew control. 8ncorrect .nswers: .7 ": T-e Mo+seEnter e#ent of t-e Tree%iew control s-o+ld not 3e +sed. 8t will raise an e#ent e#er/ time t-e mo+se $ointer enterst-e area w-ic- is occ+$ied 3/ t-e Tree%iew control. T-e "ra,Enter e#ent of t-e Tree%iew control s-o+ld not 3e +sed7 3eca+se t-e .llow"ro$ is set to false. : T-e "ra,4ea#e of t-e Tree%iew control s-o+ld not 3e +sed7 3eca+se t-e .llow"ro$ is set to false. &U)"*I+, )0& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at -as to s+$$ort t-e ne+tral En,lis- and all .ra3ic c+lt+res. W-at s-o+ld /o+ do to make s+re t-at t-e +ser interface s+$$orts t-e text flow for t-e .ra3ic lan,+a,e6 .. *o+ s-o+ld set t-e 4ocali9a3le $ro$ert/ of eac- form to Tr+e. . *o+ s-o+ld set t-e 4an,+a,e $ro$ert/ of eac- form to .ra3ic. !. *o+ s-o+ld set t-e =i,-tTo4eft4a/o+t $ro$ert/ of eac- form to Tr+e. ". *o+ s-o+ld set t-e =i,-tTo4eft $ro$ert/ of eac- form to Tr+e. .nswer: " Act'altests-com - *.e /ower of 0nowing

070-526

Ex$lanation: T-e .ra3ic scri$t is written from ri,-t to left. *o+ -a#e to s+$$ort t-e lan,+a,e flow. 8ncorrect .nswers: .: T-e 4ocali9a3le s-ows w-et-er t-e desi,ner s-o+ld create locali9e reso+rces to sa#e $ro$ert/ #al+e for different c+lt+res. 8t s-o+ld not 3e +sed. : T-e 4an,+a,e $ro$ert/ s$ecifies t-at c+lt+re for t-e reso+rces to w-ic- a desi,ner wo+ld sa#e $ro$ert/ #al+es. !: T-e Tr+e settin, of =i,-tTo4eft4a/o+t will c-an,e t-e control flow from ri,-t to left. *o+ want to c-an,e t-e text flow. &U)"*I+, )05 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at -as locali9ed reso+rces for t-e .ra3ic lan,+a,e. W-ic- code se,ment is +sed to dis$la/ all c+rrencies in t-e format +sed 3/ E,/$t6 .. T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEarED . T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEarED !. T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEar-EBED ". T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEar-EBED .nswer: " Ex$lanation: T-e !+rrent!+lt+re $ro$ert/ s$ecifies t-e c+lt+re to +se for formattin, n+m3ers7 c+rrencies7 dates7 and time. T-e c+lt+re ar-EB is for t-e .ra3ic lan,+a,e inE,/$t. 8ncorrect .nswers: .7 7 !: T-e !+rrent:8!+lt+re identifies t-e c+lt+re to 3e +sed 3/ a reso+rce mana,er7 w-ic- load locali9ed reso+rces. F+rt-ermore7 /o+ s-o+ld not s$ecif/ t-e ar to t-e constr+ct+re of !+lt+re8nfo. T-e as #al+e re$resents a ne+tral for t-e .ra3ic lan,+a,e. &U)"*I+, )06 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)0' as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at -as locali9ed reso+rces for t-e Frenc- lan,+a,e. W-ic- code se,ment is +sed to a+tomaticall/ load Frenc- reso+rces 3+t +se t-e :nited 0tates format for all c+rrencies7 n+m3ers7 dates and times6 Act'altests-com - *.e /ower of 0nowing

070-526

.. T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEen-:0ED T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEfrED . T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEF=ED T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCE:0ED !. T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCE:0ED T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEF=ED ". T-read.!+rrentT-read.!+rrent!+lt+re @ new !+lt+re8nfoCEfr-F=ED T-read.!+rrentT-read.!+rrent:8!+lt+re @ new !+lt+re8nfoCEen-:0ED .nswer: . Ex$lanation: T-e !+rrent:8!+lt+re s-o+ld 3e set to t-e !+lt+re8nfo instance t-at re$resents t-e fr ne+tral c+lt+re. T-e fr ne+tral c+lt+re re$resents t-e Frenclan,+a,e. 8ncorrect .nswers: 7 !7 ": T-e !+rrent!+lt+re $ro$ert/ m+st 3e a#oided7 t-at re$resents t-e fr-F= c+lt+re. T-is will ,i#e t-e format for all c+rrencies7 n+m3ers7 dates and times in Frenc-7 /o+ want to lea#e it o t-e :nited 0tates format. T-e en-:0 will s-ow t-at t-e En,lis- reso+rces will 3e locked. F+rt-ermore7 /o+ s-o+ld not set t-e !+rrent!+lt+re $ro$ert/ to :0. 8t s-o+ld 3e set to s$ecif/ t-e c+lt+re. &U)"*I+, )07 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00<& as de#elo$in, collateral. *o+ are 3+s/ to create a Men+0tri$ control named testmen+0tri$ to a container form named testcontainerForm in a Microsoft Windows Forms a$$lication. T-e testcontainerForm contains tree c-ild forms. W-ic- code se,ment s-o+ld /o+ s+e to create a windows list men+ so t-at eacname of eac- c-ild window is dis$la/ed on a Tool0tri$Men+8tem control w-ic- was named testmen+8tem6 .. testmen+0tri$.MdiWindow4ist8tem @ men+8tem . testcontainerFrom.8sMdi!ontainer @ tr+e !. "im c-ildForm .s !ontrol For Eac- c-ildForm 8n containerForm.!ontrols "im item .s Tool0tri$Men+8tem @ New Tool0tri$Men+8temCc-ildForm.TextD testmen+8tem."ro$"own8tems..ddCitemD Next ". "im c-ildForm .s .$$lication.;$enForms For Eac- c-ildForm 8n .$$lication.;$enForms "im item .s Tool0tri$Men+8tem @ New Tool0tri$Men+8temCc-ildForm.TextD testmen+8tem."ro$"own8tems..ddCitemD Act'altests-com - *.e /ower of 0nowing

070-526 Next .nswer: . Ex$lanation: *o+ need to set t-e MdiWindow4ist8tem $ro$ert/ to t-e Tool0tri$Men+8tem t-at -as t-e window list items. 8ncorrect .nswers: !7 ": . Tool0tri$Men+8tem s-o+ld not 3e $+t in man+all/ of eac- Form instance. T-is collection -as all t-e o$en form7 w-ic- -as t-e container form. *o+ also s-o+ld not add t-e Tool0tri$Men+8tem man+all/ for eac- !ontrol instance. : T-e 8sMdi!ontainer s-o+ld not 3e set to accom$lis- t-e ,oal. &U)"*I+, )0( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment and a Marketin, de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00<& as de#elo$in, collateral. . !ertkiller .com +ser named Mia >amm is workin, for t-e Marketin, de$artment. *o+ need to $ro#ide -er assistance for an in$+t control 3/ a+tomaticall/ s-ow toolti$ w-en s-e +ses t-e F) ke/. *o+ want t-e toolti$ to s-ow eno+,- information. T-is is7 so t-at Mia >amm not ca+sin, errors 3/ enterin, t-e wron, or in#alid data. W-at s-o+ld /o+ do to add a com$onent to t-e form7 wit-o+t man+al codin,6 .. *o+ s-o+ld add a ToolTi$ com$onent to t-e form. . *o+ s-o+ld add a >el$1ro#ider com$onent to t-e form. !. *o+ s-o+ld add a Notif/8con com$onent to t-e form. ". *o+ s-o+ld add an Error1ro#ider com$onent to t-e form. .nswer: Ex$lanation: T-e >el$1ro#ider com$onent allows /o+ to dis$la/ a toolti$ w-en e#er a +ser $resses t-e F) ke/. 8ncorrect .nswers: .: T-is com$onent will s-ow a toolti$ w-en t-e mo+se $ointer -o#er o#er a control. !: T-e Notif/8con allows /o+ to s-ow icons in t-e task3ar. ": T-e Error1ro#ider dis$la/s a 3linkin, icon w-en /o+ call its 0etError met-od. 78, Implementing As!nc.rono's /rogramming *ec.ni3'es to Impro4e t.e User )5perience #$2 &'estions( &U)"*I+, )0' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com Act'altests-com - *.e /ower of 0nowing

070-526 consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00)& as de#elo$in, collateral. *o+ are 3+s/ +sin, a ack,ro+ndWorker com$onent7 set to its defa+lt #al+e7 to exec+te an as/nc-rono+s o$eration. W-at s-o+ld /o+ do to recei#e notification w-en t-e o$eration com$letes6 .. *o+ s-o+ld -andle t-e 1ro,ress!-an,ed e#ent. . *o+ s-o+ld -andle t-e =+nWorker!om$leted e#ent. !. *o+ s-o+ld call t-e Wait.n/ met-od of t-e Wait>andle class. ". *o+ s-o+ld call t-e Wait.ll met-od of t-e Wait>andle class. .nswer: Ex$lanation: T-e ack,ro+ndWorker class -as a met-od called =+nWorker!om$leted7 w-en calledA it raises a "oWork e#ent in a se$arate t-read. W-en e#er t-e 3ack,ro+nd t-read is com$lete7 t-e com$onent raises t-e =+nWorker!om$leted e#ent. 8ncorrect .nswers: .: T-e 1ro,ress!-an,ed is raised w-en t-e 3ack,ro+nd t-read calls t-e =e$ort1ro,ress met-od. !: T-e Wait.n/ ca+ses t-e c+rrent t-read to 3lock +ntil at least one wait -andle in t-e s$ecified Wait>andle arra/ is si,naled as com$lete. ": T-e Wait.ll ca+ses t-e c+rrent t-read to 3lock +ntil one wait -andle in t-e s$ecified Wait>andle arra/ is si,naled as com$lete. &U)"*I+, ))0 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0))< as de#elo$in, collateral. *o+ are 3+s/ +sin, a ack,ro+ndWorker com$onent to exec+te an as/nc-rono+s o$eration. T-e 5o3 of t-e 3ack,ro+nd t-read is to call t-e =e$ort1ro,ress met-od to +$date t-e fore,ro+nd t-read. *o+ -a#e -andled t-e 1ro,ress!-an,ed e#ent and set t-e %al+e $ro$ert/ of a 1ro,ress ar. T-e $ro3lem is t-at t-e 1ro,ress ar dis$la/ 3/ no means ,ets +$dated. "+rin, t-e in#esti,ation /o+ find o+t t-at t-e e#ent -andler t-at works wit- t-e 1ro,ress!-an,ed e#ent ne#er ,ets called. W-at s-o+ld /o+ do to make s+re t-at t-e e#ent -andler ,ets called6 .. *o+ s-o+ld call t-e =e$ort1ro,ress met-od in t-e fore,ro+nd t-read. . *o+ s-o+ld set t-e Worker=e$orts1ro,ress $ro$ert/ to Tr+e. !. *o+ s-o+ld set t-e ack,ro+ndWorker com$onent to t-e #al+e of t-e 0ite $ro$ert/ ret+rned from t-e 1ro,ress ar control. ". *o+ s-o+ld set t-e ack,ro+ndWorker com$onent to t-e #al+e of t-e 0ite $ro$ert/ ret+rned from Form control t-at -ost t-e com$onent.

Act'altests-com - *.e /ower of 0nowing

070-526 .nswer: Ex$lanation: T-e Worker=e$orts1ro,ress $ro$ert/ s-ows w-et-er t-e ack,ro+ndWorker com$onent s-o+ld raise t-e 1ro,ress!-an,ed e#ent w-en t-e 3ack,ro+n, t-read calls t-e =e$ort1ro,ress met-od. 8ncorrect .nswers: .: T-e ack,ro+ndWorker s-o+ld call t-e =e$ort1ro,ress. *o+ s-o+ld not $+t it to t-e fore,ro+nd. !7 ": T-e 0ite $ro$ert/ s-o+ld not 3e c-an,ed. 8t defined t-e 3indin, 3etween a control or com$onent and its associate container. &U)"*I+, ))) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)&& as de#elo$in, collateral. *o+ are 3+s/ +sin, a ack,ro+ndWorker com$onent to call a met-od named "ownloadHo3 in a 3ack,ro+nd t-read. W-ic- code se,ment is +sed to dis$la/ a messa,e 3ox to alert t-e +sers w-en t-e 3ack,ro+nd t-read is com$lete6 .. ifC3ack,ro+ndWorker.Worker=e$orts1ro,ress @falseD T-en Messa,e ox.0-owCET-e download is com$lete.ED End 8f . 1+3lic 0+3 >andlerC /%al .s ;35ect7 /%al e .s"oWorkE#ent.r,sD >andles 3ack,ro+ndWorker.=+nWorker!om$leted End 0+3 !. if C3ack,ro+ndWorker.8s +s/@falseD T-en Messa,e ox.0-owCET-e download is com$lete.ED End 8f ". 1+3lic 0+3 >andlerC /%al sender .s ;35ect7W /%al e .s =+nWorker!om$letedE#ent.r,sDW >andles 3ack,ro+ndWorker.=+nWorker!om$leted Messa,e ox.0-owCET-e download is com$lete.ED End 0+3 .nswer: " Ex$lanation: T-e ack,ro+ndWorker allow /o+ to $erform task in a 3ack,ro+nd t-read. T-e ack,ro+ndWorker class -as a met-od called =+nWorker.s/nc t-at raises a "oWork e#ent. 8ncorrect .nswers: .: T-e messa,e onl/7 s-o+ld not 3e dis$la/ed. T-is s-ows w-et-er t-e ack,ro+ndWorker s-o+ld raise t-e 1ro,ress!-an,e e#ent w-en t-e 3ack,ro+nd t-read calls t-e Act'altests-com - *.e /ower of 0nowing

070-526 =e$ort1ro,ress met-od. : T-e "oWork does not dis$la/ t-e messa,e. 8t raises t-e 3ack,ro+nd t-read to start. !: T-e 8f +s/s-ows w-et-er t-e 3ack,ro+nd t-reads is 3+s/. &U)"*I+, ))2 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W002< as de#elo$in, collateral. *o+ are 3+s/ to de#elo$ a Microsoft Windows Forms a$$lication t-at $erforms lon,-r+nnin, task t-at $erforms in t-e 3ack,ro+nd t-read. T-e a$$lication is of s+c- a kind7 t-at it does not intero$erate wit- !om$onent ;35ect Model F!;MG. W-at s-o+ld /o+ do to confi,+re t-e a$$lication so t-at t-e 3ack,ro+nd t-read can re$ort t-e stat+s of t-e task 3/ callin, t-e =e$ort1ro,ress met-od of t-e ack,ro+ndWorker class6 .. *o+ s-o+ld add a 1ro,ress ar control to t-e form t-at -osts t-e ack,ro+ndWorker com$onent. . *o+ s-o+ld a$$l/ t-e MT.TT-read attri3+te to t-e Main met-od of t-e a$$lication. !. *o+ s-o+ld a$$l/ t-e 0T.TT-read attri3+te to t-e Main met-od of t-e a$$lication. ". *o+ s-o+ld set Worker=e$ort1ro,ress $ro$ert/ of t-e ack,ro+ndWorker class to tr+e. .nswer: " Ex$lanation: *o+ need to set t-e Worker=e$ort1ro,ress $ro$ert/ of t-e ack,ro+ndWorker class to tr+e7 w-ic- will raise t-e 1ro,ress!-an,e e#ent w-ene#er t-e =e$ort1ro,ress met-od is called. 8ncorrect .nswers: .: T-e 1ro,ress ar s-o+ld not 3e added. T-is also will not re$ort t-e stat+s of t-e 3ack,ro+nd task. : T-e MT.TT-read s-o+ld not 3e a$$lied to t-e Main met-od. F+rt-ermore7 t-e a$$lication does not intero$erate wit- !;M. !: T-e 0T.TT-read s-o+ld not 3e a$$lied to t-e Main met-od. 8t is t-ere 3/ defa+lt. &U)"*I+, ))< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00)5 as de#elo$in, collateral. *o+ were asked to +se t-e ack,ro+n,Worker com$onent to do an as/nc-rono+s task. W-at s-o+ld /o+ do to define t-e si,nat+re of t-e met-od t-at will contain t-e code to $erform t-e as/nc-rono+s task6

Act'altests-com - *.e /ower of 0nowing

070-526 .. *o+ s-o+ld create a met-od t-at matc-es t-e T-read0tart dele,ate2s si,nat+re. . *o+ s-o+ld create a met-od t-at matc-es t-e .s/nc!all3ack dele,ate2s si,nat+re. !. *o+ s-o+ld create a met-od t-at matc-es t-e 1arameteri9edT-read0tart dele,ate2s si,nat+re. ". *o+ s-o+ld create a met-od t-at matc-es t-e "oWorkE#ent>andler dele,ate2s si,nat+re. .nswer: " Ex$lanation: *o+ s-o+ld create a met-od t-at matc-es t-e "oWorkE#ent>andler dele,ate2s si,nat+re. T-e ack,ro+n,Worker allows /o+ to do 5o3s in a 3ack,ro+nd t-read I+ite t-en t-e interface t-read. 8ncorrect .nswers: .: T-e T-read0tart allows /o+ to define a met-od for exec+tin, codes in se$arate t-reads. *o+ m+st in t-is case a#oid creatin, a met-od t-at matc-es t-e T-read0tart si,nat+re. : T-e .s/nc!all3ack allows /o+ to define a met-od t-at re$resents an as/nc-rono+s o$eration2s call3ack. *o+ m+st in t-is case a#oid creatin, a met-od t-at matc-es t-e .s/nc!all3ack si,nat+re. !: T-e 1arameteri9edT-read0tart allows /o+ to define a met-od t-at re$resents an as/nc-rono+s o$eration2s call3ack. *o+ m+st in t-is case a#oid creatin, a met-od t-at matc-es t-e .s/nc!all3ack si,nat+re. &U)"*I+, ))& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W002< as de#elo$in, collateral. *o+ are +sin, t-e 0ema$-ore class to s/nc-roni9e access to a reso+rce $ool. "+rin, an ins$ection /o+ find o+t t-at an exce$tion of t/$e :na+t-ori9ed.ccessExce$tion is t-rown w-en /o+ call t-e ;$enExistin, met-od of t-e 0ema$-ore class7 w-ic- is onl/ t-rown for one +ser. W-at s-o+ld /o+ do to sto$ t-e exce$tion from 3ein, t-rown6 .. *o+ s-o+ld call t-e "emand met-od of an +nrestricted 0ec+rit/1ermission instance. . *o+ s-o+ld ,rant t-e +ser $ermission to read t-e sema$-ore t-at $rotects t-e reso+rce $ool. !. *o+ s-o+ld ,rant t-e +ser $ermission to access t-e reso+rce $ool. ". *o+ s-o+ld call t-e .ssert met-od of an +nrestricted 0ec+rit/1ermission instance. .nswer: Ex$lanation: T-e +ser2s $ermissions are ,ranted to read t-e sema$-ore t-at $rotects t-e reso+rce $ool. .n access control list is t-ere to $rotect t-e 0ema$-ores. T-e 0et.ccess!ontrol met-od of t-e 0ema$-ore class is t-ere to ,rant t-e +sers Act'altests-com - *.e /ower of 0nowing

070-526 $ermissions to read t-e sema$-ore. 8ncorrect .nswers: .: T-e "emand met-od is not +sed for an +nrestricted 0ec+rit/1ermission instance. !: T-e +ser $ermission is not +se to access t-e reso+rce to correct t-e $ro3lem. ": T-e 0ec+rit/1ermission $re#ents a code from $erformin, a stack walk $ast t-e $resent stack. &U)"*I+, ))5 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000) as de#elo$in, collateral. *o+ are 3+s/ creatin, an instance of 0ema$-ore 3/ means of callin, its constr+ctor. W-ile t-e 0ema$-ore instance was created7 /o+ s$ecif/ fo+r reso+rces from a reso+rce $ool and reser#e t-e t-ree reso+rces. *o+ want to call t-e =elease met-od of t-e 0ema$-ore instance to allocate fo+r a#aila3le reso+rces from t-e reso+rce $ool. W-ic- of t-e followin, n+m3ers s-o+ld /o+ $ass to t-e =elease met-od6 .. < .& !. ) ". 0 .nswer: . Ex$lanation: E#er/ time /o+ call t-e =elease met-od7 t-e sema$-ore will exit and makes a reso+rce a#aila3le. W-en a $arameter -as $assed to t-e =elease met-od7 /o+ indicate t-e n+m3er of times t-at t-e sema$-ore exits7 w-ic- is t-ree times. 8ncorrect .nswers: : T-e 0ema$-oreF+llExce$tion can onl/ free t-ree reso+rces in t-is case. !: 8f it was one7 t-en it wo+ld -a#e onl/ release one reso+rce. ": T-is n+m3er wo+ld ca+se an exce$tion of t/$e .r,+ment;+t;f=an,eExce$tion to 3e t-rown 3eca+se t-e sema$-ore -as to release one reso+rce. &U)"*I+, ))6 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000< as de#elo$in, collateral. *o+ need to im$lement an as/nc-rono+s met-od to t-e "ownload met-od. *o+ -a#e t-e followin, class: 1+3lic 1lass Ho3 1+3lic 0+3 "ownloadCD End 0+3 Act'altests-com - *.e /ower of 0nowing

070-526 End !lass W-ic- of t-e followin, se,ments s-o+ld /o+ +se6 L:se t-e e#ent-3ase as/nc-rono+s $atternM .. 1+3lic F+nction 8n#oke"ownloadCD .s V.s/nc=es+lt =et+rn Not-in, End F+nction . 1+3lic F+nction "ownloadCD .s V.s/nc=es+lt =et+rn Not-in, End F+nction !. 1+3lic F+nction e,in"ownloadCD .s V.s/nc=es+lt =et+rn Not-in, End F+nction ". $+3lic 0+3 "ownload.s/ncCD =et+rn Not-in, End 0+3 .nswer: " Ex$lanation: 8f it is an e#ent-3ase as/nc-rono+s $attern7 a worker t-read raises an e#ent to si,nal com$letion of an as/nc-rono+s $rocess. T-e e#ent s-o+ld -a#e t-e same name of t-e s/nc-rono+s met-od s+ffixed wit- E!om$letedE. 8ncorrect .nswers: .7 7 !: To ad-ere to t-e $attern7 /o+ s-o+ld name t-e met-od "ownload.s/nc. *o+ also s-o+ld not ret+rn a #al+e from t-e met-od. &U)"*I+, ))7 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0<<< as de#elo$in, collateral. *o+ are +sin, t-e followin, class to download 5o3s. 1+3lic 1lass Ho3 1+3lic 0+3 "ownloadCD End 0+3 End !lass *o+ need to +se t-e e#ent-3ased as/nc-rono+s $attern to s+$$ort as/nc-rono+s 5o3 downloads. W-ic- of t-e followin, code se,ments s-o+ld /o+ +se to define a mem3er of t-at class to si,nal as/nc-rono+s com$letion6 .. 1+3lic"ownload!om$leted .s oolean . 1+3lic"ownload!om$letedCD End 0+3 !. 1+3lic E#ent "ownload!om$letedCD .s "ownload!om$letedE#ent>andler Act'altests-com - *.e /ower of 0nowing

070-526 =et+rn Not-in, End F+nction ". 1+3lic E#ent "ownload!om$leted .s "ownload!om$letedE#ent>andler .nswer: " Ex$lanation: 8f /o+ -a#e t-e e#ent-3ased as/nc-rono+s $atter7 a worker t-read raises an e#ent to indicate com$letion of an as/nc-rono+s $rocess. T-e e#ent s-o+ld -a#e t-e same name of t-e s/nc-rono+s met-od s+ffixed wit- E!om$letedE. 8ncorrect .nswers: .7 7 !: *o+ s-o+ld not define a met-od or field named "ownload!om$leted. .n e#ent m+st 3e defined to si,nal notification. &U)"*I+, ))( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0<0< as de#elo$in, ,+arantee. *o+ are 3+s/ writin, a code to $erform an as/nc-rono+s o$eration. *o+ m+st ad5+st t-e $riorit/ of t-e t-read t-at exec+tes t-e as/nc-rono+s o$eration. T-e o$eration is m+st 3e s$ecified to +se in$+t data from t-e main t-read. W-at s-o+ld /o+ do to define t-e si,nat+re of t-e met-od t-at will contain t-e code to $erform t-e as/nc-rono+s o$eration6 .. *o+ s-o+ld create a met-od t-at matc-es t-e .s/nc!all3ack dele,ate2s si,nat+re. . *o+ s-o+ld create a met-od t-at matc-es t-e 1arameteri9edT-read0tart dele,ate2s si,nat+re. !. *o+ s-o+ld create a met-od t-at matc-es t-e T-read0tart dele,ate2s si,nat+re. ". *o+ s-o+ld create a met-od t-at matc-es t-e "oWorkE#ent>andler dele,ate2s si,nat+re. .nswer: Ex$lanation: *o+ need to create a met-od t-at matc-es t-e 1arameteri9edT-read0tart dele,ate2s si,nat+re. T-is will t-en acce$ts a sin,le ;35ect instance as a $arameter. 8ncorrect .nswers: .: T-e .s/nc!all3ack allows /o+ to define a met-od t-at re$resents an as/nc-rono+s o$eration2s call3ack. !: T-e $arameters are not acce$ted 3/ t-e T-read0tart. eca+se of t-is7 /o+ cannot +se it to s+$$l/ in$+t data to t-e as/nc-rono+s o$eration. ": T-e "oWorkE#ent>andler dele,ate2s si,nat+re is s+$$orted 3/ t-e ack,ro+ndWorker. T-e ack,ro+ndWorker do not a5+st $riorit/ of t-e ack,ro+ndWorker t-read Act'altests-com - *.e /ower of 0nowing

070-526

&U)"*I+, ))' 1+3lic 0+3 >andler)CD End 0+3 1+3lic 0+3 >andler2C /%al ar,s .s ;35ectD End 0+3 1+3lic 0+3 0tartCD "im t-read0tart .s t-read0tart @ New T-read0tartC.ddress;f >andler)D "im $arameteri9edT-read0tart .s 1arameteri9edT-read0tart @W New 1arameteri9edT-read0tartC.ddress;f >andler2D "im t-read1oolT-read!o+nt .s 8nte,er @ 0 "im t-read) .s T-read @ New T-readCT-read0tartD "im t-read2 .s T-read @ New T-readC1arameteri9edT-read0tartD "im t-read) .s T-read @ New T-readCt-read0tartD t-read).0tartCD t-read2.0tartCnot-in,D t-read<70tartCD if t-read).8sT-read1oolT-read T-en t-read1oolT-read!o+nt @ Ct-read1oolT-read!o+nt J )D End 8f if t-read2.8sT-read1oolT-read T-en t-read1oolT-read!o+nt @ Ct-read1oolT-read!o+nt J )D End 8f if t-read<.8sT-read1oolT-read T-en t-read1oolT-read!o+nt @ Ct-read1oolT-read!o+nt J )D End 8f End 0+3 W-at #al+e of t-e t-read1oolT-read!o+nt s-o+ld /o+ identif/ after t-e code is exec+ted6 .. 0 .2 !. < ". ) .nswer: . Ex$lanation: T-e #al+e of t-e t-read1oolT-read!o+nt is set at 0. T-e t-reads t-at are man+all/ made are not class as t-read $ool t-reads. T-e t-reads t-at are created 3/ callin, t-e N+e+e:serWork8tem met-od of t-e T-read1ool are class t-read $ool t-reads. &U)"*I+, )20 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com Act'altests-com - *.e /ower of 0nowing

070-526 consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0065 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows From a$$lication. T-is Windows Forms a$$lication will allow electrical en,ineers to #is+all/ desi,n circ+it 3oards. T-e +sers in t-e "e#elo$ment de$artment connect to !ertkiller -W0005 and download t-eir res$ecti#e desi,ned circ+it 3oard for t-e -ardware t-e/ de#elo$ed. W-ic- of t-e followin, code se,ments s-o+ld /o+ s+e to allow +sers to download all desi,ned circ+it 3oards in a 3ack,ro+nd t-read wit- !ommon 4an,+a,e =+ntime to man,e t-e t-read6 .. 1arameteri9edT-read0tart t-read0tart @ dele,ate F KK"ownload t-e 5o3s G New T-readCt-read0tartD.0tartCn+llDA . .s/nc!all3ack callk3ack @ dele,ate F KK"ownload t-e 5o3s G .$$lication.;$enFormsC0D. e,in8n#okeCcall3ackDA !. T-read0tart t-read0tart @ dele,ate F KK"ownload t-e 5o3s G New T-readCt-read0tartD.0tartCDA ". )T-read1ool.N+e+e:serWork8temCdele,ate F KK"ownload t-e 5o3s GDA .nswer: " Ex$lanation: T-e N+e+e:serWork8tem will allow /o+ for exec+tion in a t-read $ool. 8ncorrect .nswers: .7 !: T-e 0tart metod of t-e t-read class will create and exec+te a t-read. T-e !4= do not man,e man+all/-create t-reads. : T-e $arameters are not acce$ted 3/ t-e T-read0tart. eca+se of t-is7 /o+ cannot +se it to s+$$l/ in$+t data to t-e as/nc-rono+s o$eration. !: T-e e,in8n#oke will allow /o+ to set t-e $ro$erties and in#oke met-ods from t-e 3ack,ro+nd t-reads. 78, 1e4eloping Windows Forms Controls #6 &'estions( &U)"*I+, )2) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com Act'altests-com - *.e /ower of 0nowing

070-526 network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a com$osite control. *o+ do not want t-e controls to 3e dis$la/ed w-en certain conditions are met. W-ic- code se,ment s-o+ld /o+ +se to write code to sto$ t-e co troll from 3ein, dis$la/ed6 .. Me.0et0t/leC!ontrol0t/les.;$aI+e7 Tr+eD . Me.%isi3le @ False !. Me.0et0t/leC!ontrol0t/les.0+$$ortTran$arent ack!olor7 Tr+eD ". Me. ack!olor @ !olor. Trans$arent .nswer: Ex$lanation: T-e %isi3le control s-o+ld 3e on false. T-is settin, will not allow dis$la/in,. 8ncorrect .nswers: .: T-is will $re#ent t-e 3ack,ro+nd from 3ein, dis$la/edA -owe#er it cannot -ide t-e entire control. !: T-is will $re#ent t-e 3ack,ro+nd from 3ein, dis$la/edA -owe#er it cannot -ide t-e entire control. ": T-is will $re#ent t-e 3ack,ro+nd from 3ein, dis$la/edA -owe#er it cannot -ide t-e entire control. &U)"*I+, )22 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)05 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a c+stom control7 w-ic- dis$la/s t-e time in di,ital and analo, formats. *o+ need to a$$l/ t-e control in a class named !lock. T-e !lock control will 3e $lace on forms and confi,+re t-e $ro$erties to s-ow t-e time. W-ic- code se,ment s-o+ld /o+ +se to define t-e !lock class6 .. $+3lic class !lock F G . $+3lic class !lock : !om$onent F G !. $+3lic class !lock : !ontrol F G Act'altests-com - *.e /ower of 0nowing

070-526 ". $+3lic class !lock : Timer F G .nswer: ! Ex$lanation: T-e controls t-at are o3tained from t-e !lock class are dis$la/ed on t-e form. 8ncorrect .nswers: .: *o+ s-o+ld not o3tain it from t-e !lock. T-e controls t-at are o3tained from t-e !lock class are dis$la/ed on t-e form. : T-e controls t-at are o3tained from t-e !lock class are dis$la/ed on t-e form. ": T-e controls t-at are o3tained from t-e !lock class are dis$la/ed on t-e form. &U)"*I+, )2< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a c+stom control from a class from !ontrol7 w-ic- is not a com$osite control and $erforms all of its renderin, 3/ +sin, B"J. W-at s-o+ld /o+ do to make s+re t-at $ortions of t-e control are a+tomaticall/ re$ainted w-en a s$ecific $ro$ert/ c-an,es6 .. *o+ s-o+ld call t-e ;n$aint met-od. . *o+ s-o+ld call t-e 8n#alidate met-od. !. *o+ s-o+ld call t-e :$date met-od. ". *o+ s-o+ld call t-e =efres- met-od. .nswer: Ex$lanation: T-is met-od is o#erloaded to define t-e $ortions of a control t-at is a3o+t to 3e re$ainted. 8ncorrect .nswers: .: T-e 8n#alidate met-od calls t-e ;n$aint met-od. !: T-e :$date met-od does not allow /o+ to s$ecif/ t-e $otions of t-e control t-at m+st 3e $re$ared. ": T-e =efres- met-od does not allow /o+ to s$ecif/ t-e $otions of t-e control t-at m+st 3e $re$ared. &U)"*I+, )2& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a Act'altests-com - *.e /ower of 0nowing

070-526 client com$+ter named !ertkiller -W0025 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a c+stom control from a class from !ontrol7 w-ic- is not a com$osite control and $erforms all of its renderin, 3/ +sin, B"J. W-at s-o+ld /o+ do to write code to render t-e control7 $re#entin, ot-er controls from modif/in, t-e renderin, 3e-a#ior of /o+r control6 .. *o+ s-o+ld attac- t-e 1aint e#ent to an e#ent -andler in t-e constr+ctor and $erform all renderin, in t-e e#ent -andler. . *o+ s-o+ld create a Bra$-ic instance in t-e contract+re and $erform all renderin, #ia t-e Bra$-ic instance. !. *o+ s-o+ld o#erride t-e ;n$aint met-od and do all renderin, in t-e o#erridden met-od. ". *o+ s-o+ld o#erride t-e 8nit4a/o+t met-od7 attac- t-e 1aint e#ent to t-e e#ent -andler and do all renderin, in t-e e#ent -andler. .nswer: ! Ex$lanation: W-en /o+ o#erride t-e ;n$aint met-od7 /o+ can render t-e control #ia t-e 0+$$lied 1aintE#ent.r,s $arameter. 8ncorrect .nswers: .7 ": T-e e#ent -andler in not needed. *o+ cannot sto$ t-e ot-er controls from attac-in, to t-e e#ent -andlers. : *o+ s-o+ld not create a ,ra$-ic instance. &U)"*I+, )25 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0))5 as de#elo$in, collateral. *o+ are 3+s/ creatin, an extended control deri#in, class from Text ox. *o+ did o#erride t-e ;n1aint met-od of t-e Text ox7 3+t it ne#er is called. W-at s-o+ld /o+ do to set or +nset a fla, in t-e !ontrol0t/les en+meration to sol#e t-is $ro3lem6 .. *o+ s-o+ld set t-e .ll1aint8nWm1aint fla,. . *o+ s-o+ld +nset t-e :ser1aint. !. *o+ s-o+ld +nset t-e .ll1aint8nWm1aint fla,. ". *o+ s-o+ld set t-e :ser1aint. .nswer: " Ex$lanation: T-e :ser1aint fla, s-ows t-at t-e control $aints itself t-en -a#in, t-e o$eratin, s/stem $erforms t-e 5o3. 8f t-e fla, is not set7 t-e ;n1aint met-od is not called. 8ncorrect .nswers: Act'altests-com - *.e /ower of 0nowing

070-526 .7 !: 8t does not matter if /o+ set or +nset t-e .ll1aint8nWm1aint fla,. 8t s-ows t-at t-e control s-o+ld red+ce flickerin, t-e WMWE=.0E ?BN" window messa,e. : T-e :ser1aint fla, s-o+ld 3e set for t-e ;n1aint met-od to 3e called. &U)"*I+, )26 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0005 as de#elo$in, collateral. *o+ are 3+s/ creatin, an extended control deri#in, class from +tton. W-at s-o+ld /o+ do to render /o+r control wit- an o#al s-a$e w-ic- m+st $re#ent ot-er control from modif/in, t-e renderin, 3e-a#ior of /o+r control6 .. *o+ s-o+ld o#erride t-e ;n1aint met-od and call t-e 3ase im$lementation and render t-e control. . *o+ s-o+ld o#erride t-e ;n1aint ack,ro+nd met-od and render t-e control 3+t not call t-e 3ase im$lementation. !. *o+ s-o+ld o#erride t-e ;n1aint met-od and render t-e control 3+t not call t-e 3ase im$lementation. ". *o+ s-o+ld o#erride t-e ;n1aint ack,ro+nd met-od and call t-e 3ase im$lementation and render t-e control. .nswer: ! Ex$lanation: T-e :ser1aint met-od is +sed w-ene#er re,ions of a control are in#alidated. T-e 3ase ;n1aint met-od raise t-e 1aint e#ent. 8ncorrect .nswers: .: *o+ s-o+ld not call t-e ;n1aint met-od. T-is wo+ld raise t-e ;n1aint met-od. 7 ": *o+ s-o+ld not o#erride t-e ;n1aint ack,ro+nd met-od. 78, Config'ring and 1eplo!ing Applications #6 &'estions( &U)"*I+, )27 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0222 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication t-at +ses t-e !lick;nce tec-nolo,/. *o+ did s$ecif/ se#eral assem3lies. T-e assem3lies are +sed 3/ t-e a$$lication as o$tional so t-at t-e/ do not ,et de$lo/ed initiall/. T-e a$$lication is s$ecified to loads t-ese assem3lies d/namicall/. W-at s-o+ld /o+ do to modif/ t-e a$$lication so t-at t-e assem3lies are a+tomaticall/ downloaded w-en t-e a$$lication reI+ires t-em6

Act'altests-com - *.e /ower of 0nowing

070-526 .. *o+ s-o+ld -andle t-e .ssem3l/=esol#e e#ent of t-e .$$"omain class and call t-e "own4oadFileBro+$ met-od of t-e .$$lication"e$l$o/ment class. . *o+ s-o+ld -andle t-e T/$e=esol#e e#ent of t-e .$$"omain class and call t-e "own4oadFileBro+$ met-od of t-e .$$lication"e$l$o/ment class. !. *o+ s-o+ld -andle t-e .ssem3l/4oad e#ent of t-e .$$"omain class and call t-e :$date met-od of t-e .$$lication"e$l$o/ment class. ". *o+ s-o+ld -andle t-e =eso+rce=esol#e e#ent of t-e .$$"omain class and call t-e :$date met-od of t-e .$$lication"e$l$o/ment class. .nswer: . Ex$lanation: T-e .ssem3l/=esol#e e#ent is raised w-en t-e c+rrent a$$lication domain fails to load an assem3l/ reI+ested 3/ t-e a$$lication. *o+ need to s$ecif/ t-e name of t-e de$lo/ment ,ro+$ to w-ic- t-e assem3l/ 3elon,s. 8ncorrect .nswers: : T-e T/$e=esol#e is raised after an assem3l/ is s+ccessf+ll/ loaded. !: T-e .ssem3l/4oad is raised after an assem3l/ is loaded. ": T-e =eso+rce=esol#e e#ent is raised w-en t-e c+rrent a$$lication domain fails to load a reso+rce. &U)"*I+, )2( *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0222 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication named TestBrade ook to de$lo/ment ser#er. W-at s-o+ld /o+ do to +se a 3atc- file to $ro,rammaticall/ c-an,e t-e +$date reI+irement of t-e a$$lication6 .. *o+ s-o+ld +se t-e Manifest Beneration and Editin, Bra$-ical Tool FMa,e:8.exeG to c-an,e t-e Brade ook.a$$lication settin,s. . *o+ s-o+ld +se t-e Manifest Beneration and Editin, Tool FMa,e.exeG to c-an,e t-e Brade ook..exe.man+fest settin,s. !. *o+ s-o+ld +se t-e Manifest Beneration and Editin, Tool FMa,e.exeG to c-an,e t-e Brade ook.a$$lication settin,s. ". *o+ s-o+ld +se t-e Manifest Beneration and Editin, Bra$-ical Tool FMa,e:8.exeG to c-an,e t-e Brade ook.exe.manifest settin,s. .nswer: ! Ex$lanation: T-e Ma,e.exe is +sed to c-an,e t-e Brade ook.a$$lication settin,s. 8t also -el$s to mana,e a $+3lis-ed a$$lication. 8ncorrect .nswers: .: T-e Ma,e:8.exe $ro#ides a ,ra$-ical +ser interface for mana,in, a $+3lis-ed Act'altests-com - *.e /ower of 0nowing

070-526 a$$lication. 7 ": T-e Brade ook.exe cannot c-an,e t-e +$date reI+irements. T-e Brade ook.exe.manifest allows /o+ to s$ecif/ an a$$lication2s associated files. &U)"*I+, )2' *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0)02 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication named !ertkiller Brade ook to de$lo/ment ser#er. *o+ first de$lo/ed t-e a$$lication so t-at it s+$$orts offline +se. W-at s-o+ld /o+ do to c-an,e t-e a$$lication so t-at it is onl/ a#aila3le w-en t-e !ertkiller .com +ser2s com$+ter is connected to t-e 8nternet6 .. *o+ s-o+ld +se t-e Manifest Beneration and Editin, Bra$-ical Tool FMa,e:8.exeG to c-an,e t-e Brade ook.a$$lication settin,s. . *o+ s-o+ld +se t-e Manifest Beneration and Editin, Tool FMa,e.exeG to c-an,e t-e Brade ook..exe.man+fest settin,s. !. *o+ s-o+ld +se t-e Manifest Beneration and Editin, Bra$-ical !lient Tool FMa,e:8.exeG to c-an,e t-e Brade ook.exe.manifest settin,s. ". *o+ s-o+ld +se t-e Manifest Beneration and Editin, Tool FMa,e.exeG to c-an,e t-e Brade ook.a$$lication settin,s. .nswer: . Ex$lanation: T-e Ma,e.exe is +sed to c-an,e t-e Brade ook.a$$lication settin,s. 8t also -el$s to mana,e a $+3lis-ed a$$lication. 8ncorrect .nswers: .: T-e Ma,e:8.exe $ro#ides a ,ra$-ical +ser interface for mana,in, a $+3lis-ed a$$lication. 7 ": T-e Brade ook.exe cannot c-an,e t-e +$date reI+irements. T-e Brade ook.exe.manifest allows /o+ to s$ecif/ an a$$lication2s associated files. 8t also cannot c-an,e t-e la+nc- reI+irements of t-e a$$lication wit- t-e Brade ook.exe.manifest file. &U)"*I+, )<0 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0202 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a 0et+$ $ro5ect. W-at s-o+ld /o+ do to confi,+re t-e $ro5ect so t-at t-e 3+ilt $acka,e can 3e installed on <2-3it and 6&-3it com$+ters6

Act'altests-com - *.e /ower of 0nowing

070-526 .. *o+ s-o+ld set t-e Tar,et1latform $ro$ert/ to X6&. . *o+ s-o+ld set t-e Tar,et1latform $ro$ert/ to X(6. !. *o+ s-o+ld set t-e %ersion $ro$ert/ to 6&. ". *o+ s-o+ld set t-e %ersion $ro$ert/ to <2. .nswer: Ex$lanation: T-e X(6 settin, allows a $acka,e to 3e installed on <2-3it and 6&-3it com$+ters. 8ncorrect .nswers: .: T-e X(6 settin, will ca+se an error to 3e raised w-en t-e $acka,e is installed on a <2-3it s/stem.. !7 ": T-e %ersion $ro$ert/ identifies t-e #ersion of t-e installer $acka,e itself. &U)"*I+, )<) *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W00<5 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication. T-e a$$lications t-at /o+ are de#elo$in, are +sin, s-ared assem3lies t-at m+st 3e installed into t-e Blo3al .ssem3l/ !ac-e LB.!M. W-at s-o+ld /o+ do to de#elo$ a de$lo/ment strate,/6 .. *o+ s-o+ld create a !. $ro5ect t-at contains t-e a$$lication. . *o+ s-o+ld +se t-e R!;1* to de$lo/ t-e a$$lication. !. *o+ s-o+ld +se t-e !lick;nce to de$lo/ t-e a$$lication. ". *o+ s-o+ld create a Window Forms 0et+$ a$$lication .nswer: " Ex$lanation: T-e Window Forms 0et+$ a$$lication can accom$lis- t-is 3/ creatin, and confi,+rin, a 0et+$ $ro5ect to de$lo/ a Microsoft Windows 8nstaller $acka,e. 8ncorrect .nswers: .: T-e !. 1ro5ect is +sed to $acka,e com$onents. : T-e R!;1* cannot install assem3lies into t-e B.! 3/ +sin, R!;1*. !: T-e !lick;nce cannot 3e +sed to install s-ared assem3lies into t-e B.!. &U)"*I+, )<2 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W0205 as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication. *o+ want t-e +sers to Act'altests-com - *.e /ower of 0nowing

070-526 download or r+n a Microsoft Windows 8nstaller $acka,e from !ertkiller .com2s We3 site to install t-e a$$lication. W-ic- of t-e followin, de$lo/ment $ro5ect s-o+ld /o+ create6 .. 0et+$ 1ro5ect . !. 1ro5ect !. Mer,e Mod+le 1ro5ect ". We3 0et+$ 1ro5ect .nswer: . Ex$lanation: T-e 0et+$ 1ro5ect allows /o+ to install Window-3ased a$$lications. 8ncorrect .nswers: : T-e !. 1ro5ect is +sed to $acka,e com$onents. !: T-e Mer,e Mod+le 1ro5ect allows /o+ to install s-ared com$onents. ": T-e We3 0et+$ 1ro5ect allows /o+ to install We3 a$$lications. &U)"*I+, )<< *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W000' as de#elo$in, collateral. *o+ are 3+s/ de#elo$in, a Microsoft Windows Forms a$$lication. *o+ t-en c-an,e t-e defa+lt confi,+ration to $acka,e files as loose +ncom$ressed files. *o+ also need to make s+re t-at t-e .NET Framework 2.0 redistri3+ta3le com$onent exits after /o+ 3+ild t-e 0et+$ $ro5ect. W-ic- of t-e followin, com$onents s-o+ld look for in t-e 0et+$ $ro5ect2s o+t$+t director/6 .. =e,0#cs.exe . "otnetfx.exe !. 8nstall:til.exe ". =e,.sm.exe .nswer: Ex$lanation: T-e "otnetfx.exe needs to exits in t-e o+t$+t director/7 w-ic- +ses t-e .NET Framework 2.0 redistri3+ta3le $acka,e. 8ncorrect .nswers: .: T-e =e,0#cs.exe is t-e .NET 0er#ices 8nstallation tool. 8t allows /o+ to re,ister an assem3l/ for +se wit- !;MJ. !: T-e 8nstall:til.exe allows /o+ to exec+te c+stom installers t-at are associated wit- an assem3l/. . ": T-e =e,.sm.exe allows /o+ to re,ister an assem3l/ for +se wit- !;MJ. Act'altests-com - *.e /ower of 0nowing

070-526

&U)"*I+, )<& *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. !ertkiller .com consists of a "e#elo$ment de$artment. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W020' as de#elo$in, collateral. *o+ are 3+s/ creatin, a class t-at deri#es from 8nstaller. T-e class t-at /o+ created is +sed 3/ Microsoft Windows Forms a$$lication to install a c+stom com$onent w-ic- +ses an existin, Micrsoft .ccess data3ase. W-ic- exce$tion t/$e s-o+ld /o+ +se if t-e data3ase does not exist at installation time and /o+ need to t-row an exce$tion and -a#e t-e installation rolled 3ack6 .. *o+ s-o+ld install 8nstallExce$tion . *o+ s-o+ld install .$$licationExce$tion !. *o+ s-o+ld install 0IlExce$tion ". *o+ s-o+ld install FileNtFo+ndExce$tion .nswer: . Ex$lanation: T-e 8nstallExce$tion $asses information to t-e Microsoft Windows 8nstaller and ca+ses t-e installation to 3e rolled 3ack. 8ncorrect .nswers: : T-e .$$licationExce$tion will not ca+se t-e installation to roll 3ack. !: T-e 0IlExce$tion will not ca+se t-e installation to roll 3ack. ": T-e FileNtFo+ndExce$tion will not ca+se t-e installation to roll 3ack. &U)"*I+, )<5 *o+ are workin, as an a$$lication de#elo$er at !ertkiller .com. T-e !ertkiller .com network consists of a sin,le .cti#e "irector/ domain named !ertkiller .com. !ertkiller .com +ses %is+al 0t+dio 2005 as an a$$lication $latform. *o+ as t-e de#elo$er of !ertkiller .com +se a client com$+ter named !ertkiller -W020' as de#elo$in, collateral. *o+ are 3+s/ creatin, a class t-at deri#es from 8nstaller. T-e class t-at /o+ created is +sed 3/ Microsoft Windows Forms set+$ a$$lication to install a c+stom com$onent w-ic- +ses an existin, Microsoft 0N4 0er#er 2005 data3ase. T-e com$onent t-rows a 0IlExce$tion instance w-en it cannot connect to t-e data3ase d+rin, installation. W-at s-o+ld /o+ do to a+tomaticall/ roll3ack t-e installation is t-e com$onent t-rows a 0IlExce$tion instance6 .. *o+ s-o+ld catc- t-e 0IlExce$tion instance and create an instance of 8nstallExce$tion and $ass t-e 0IlExce$tion instance as t-e inner exce$tion and t-en t-row t-e 8nstallExce$tion instance. . *o+ s-o+ld catc- t-e 0IlExce$tion instance and create an instance of .$$licationExce$tion and $ass t-e 0IlExce$tion instance as t-e inner exce$tion and t-en Act'altests-com - *.e /ower of 0nowing

070-526 t-row t-e .$$licationExce$tion instance. !. *o+ s-o+ld catc- t-e 0IlExce$tion instance and re-t-row it. ". *o+ do not nee to catc- t-e 0IlExce$tion instance as it will $ro$a,ate +$ t-e call stack. .nswer: . Ex$lanation: T-is action will $ass information to t-e Microsoft Windows 8nstaller and ca+ses t-e installation to 3e rolled 3ack. 8ncorrect .nswers: : T-e .$$licationExce$tion will not ca+se t-e installation to roll 3ack. !: T-e 0IlExce$tion will not ca+se t-e installation to roll 3ack. ": T-e FileNtFo+ndExce$tion will not ca+se t-e installation to roll 3ack.

Act'altests-com - *.e /ower of 0nowing

You might also like