显示标签为“070-660”的博文。显示所有博文
显示标签为“070-660”的博文。显示所有博文

2014年3月30日星期日

Microsoft 070-660認定試験に対する評判が良い問題集

JPexam Microsoftの070-660試験問題集は実践の検査に合格しますから、広い研究と実際を基づいている経験を提供できます。JPexamはIT領域の10年以上の認定経験を持っていますから、問題と解答に含まれています。070-660試験に準備するためにインターネットで色々なトレーニングツールを見つけることができますが、JPexam の070-660試験資料は最も良いトレーニング資料です。、弊社は最全面的な認証試験問題と解答を提供するだけでまく、一年間の無料更新サービスも提供いたします。

Microsoftの070-660認定試験はIT業界の中でとても普遍的な試験になります。試験の準備は時間とエネルギーがかかります。時は金なり社会に時間を無駄しないようによいツルを探し出されるのはみんなの希望です。JPexamのMicrosoftの070-660認証試験の問題集は君の20時間だけかかりますよ。

JPexamは受験生の皆様に最も良いかつ便利なサービスを提供できるようにずっと一生懸命頑張っています。現在の時代で高効率は避けられない話題ですから、速いスピードと高効率が我々の目標です。受験の皆さんは速く知識を理解して高い点数を取得できるようにJPexamは効率的なトレーニング資料をデザインしてさしあげます。皆さんは節約した時間とエネルギーを利用してもっと多くの金銭を稼ぐことができます。

試験番号:070-660問題集
試験科目:TS:Windows Internals
最近更新時間:2014-03-30
問題と解答:全68問
100%の返金保証。1年間の無料アップデート。

Microsoftの070-660認定試験に受かるのはあなたの技能を検証することだけでなく、あなたの専門知識を証明できて、上司は無駄にあなたを雇うことはしないことの証明書です。当面、IT業界でMicrosoftの070-660認定試験の信頼できるソースが必要です。JPexamはとても良い選択で、070-660の試験を最も短い時間に縮められますから、あなたの費用とエネルギーを節約することができます。それに、あなたに美しい未来を作ることに助けを差し上げられます。

JPexamのMicrosoftの070-660問題集を買う前に、一部の問題と解答を無料に試用することができます。そうすると、JPexamのMicrosoftの070-660トレーニング資料の品質をよく知っています。JPexamのMicrosoftの070-660問題集は絶対あなたの最良の選択です。

JPexamは実際の環境で本格的なMicrosoftの070-660の試験の準備過程を提供しています。もしあなたは初心者若しくは専門的な技能を高めたかったら、JPexamのMicrosoftの070-660の試験問題があなたが一歩一歩自分の念願に近くために助けを差し上げます。試験問題と解答に関する質問があるなら、当社は直後に解決方法を差し上げます。しかも、一年間の無料更新サービスを提供します。

購入前にお試し,私たちの試験の質問と回答のいずれかの無料サンプルをダウンロード:http://www.jpexam.com/070-660_exam.html

NO.1 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. According to the company requirement, you are debugging a Windows device driver. An
unexpectedly long delay occurs on the device driver. You locate the problem in the following
synchronization mechanism. kd> dt var_sema Local var @ 0xf9dfbc48 Type _KSEMAPHORE +0x000
Header : _DISPATCHER_HEADER +0x010 Limit : 2 kd> dt nt!_DISPATCHER_HEADER f9dfbc48
+0x000 Type : 0x5 '' +0x001 Absolute : 0xe6 '' +0x002 Size : 0x5 '' +0x003 Inserted : 0xbb '' +0x004
SignalState : 0 +0x008 WaitListHead : _LIST_ENTRY [ 0x819ca438 - 0x819ca438 ] kd> dt
nt!_KWAIT_BLOCK 0x819ca438 +0x000 WaitListEntry : _LIST_ENTRY [ 0xf9dfbc50 - 0xf9dfbc50 ]
+0x008 Thread : 0x819ca3c8 _KTHREAD +0x00c Object : 0xf9dfbc48 +0x010 NextWaitBlock :
0.819ca480 _KWAIT_BLOCK +0x014 WaitKey : 0 +0x016 WaitType : 1 kd> dt nt!_KWAIT_BLOCK
0xf9dfbc50 +0x000 WaitListEntry : _LIST_ENTRY [ 0x819ca438 - 0x819ca438 ] +0x008 Thread :
0.00000002 _KTHREAD +0x00c Object : 0xfd050f80 +0x010 NextWaitBlock : 0xffffffff _KWAIT_BLOCK
+0x014 WaitKey : 0 +0x016 WaitType : 0 You have to find out the number of threads that the semaphore
currently has waiting. How many threads does the semaphore currently have waiting?
A.0
B.1
C.2
D.4
E.5
Answer:B

Microsoft   070-660   070-660練習問題   070-660認定証   070-660認定資格

NO.2 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. You have a device driver that has one monitoring thread named ThreadA. The device
driver has three worker threads. They are respectively named ThreadB, ThreadC, and ThreadD. The
worker threads run every 10 seconds and complete within 1 second. If any worker thread does not run at
least once every 30 seconds, ThreadA calls KeBugCheckEx, and then a complete kernel crash dump is
generated. A bug check and a complete kernel dump are generated by the computer. You find the
following after you review the complete kernel dump: You have to find out the root cause of the bug check.
So what caused the bug check to occur?
A.It was caused by the state of ThreadA
B.It was caused by the priority of ThreadA.
C.It was caused by the priority of ThreadD
D.It was caused by the state of ThreadA and ThreadB
E.It was caused by the state of ThreadB and ThreadC
Answer:C

Microsoft過去問   070-660認定証   070-660認定証   070-660   070-660参考書

NO.3 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. For a hardware device, you are developing a Windows device driver. You will install the
device driver and hardware device on computers that run Windows Server 2008. Now you have to find out
the amount of time that the processor uses to receive and process interrupts. Which of the following tools
should be used?
A.You should choose to use Pview.exe
B.You should choose to use Taskmgr.exe
C.You should choose to use Eventvwr.msc
D.You should choose to use Perfmon.msc
Answer:D

Microsoft練習問題   070-660   070-660   070-660過去問

NO.4 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. There is a colleague named Jason in the company. He has a computer named C01. C01
runs Windows Vista. He finds that a service process is using 100 percent of the processor. He has to
force a process dump of the service, meanwhile the service is consuming 100 percent of the processor.
He has no idea about which tool he should use. Since you are the technical support, he asks for your
answer. So which of the following tools should be used?
A.He should choose to use Umdh.exe
B.He should choose to use Tlist.exe
C.He should choose to use Pview.exe
D.He should choose to use Adplus.vbs
Answer:D

Microsoft問題集   070-660問題集   070-660   070-660   070-660

NO.5 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. You are in charge of an application. This application runs at a customer's site. Because
of heap corruption, the application crashes intermittently. In order to enable yourself to check and resolve
the heap corruption, you ask the customer to have full page heap enabled on the application process. You
receive a user dump file from the customer. What you should do is to make it clear at the time that the
user dump was created, whether the full page heap was enabled. Of the following WinDbg commands,
which one should be used?
A.!vm should be used.
B.!gflag should be used.
C.!heap should be used.
D.!verifier should be used.
Answer:B

Microsoft認証試験   070-660問題集   070-660問題集   070-660練習問題   070-660

NO.6 You are the IT professional who work in an International company named Wiikigo. You are
experienced in troubleshooting operating systems and applications that are not working correctly,
identifying code defects and so on. You have enough knowledge on windows internals and you provide
technical support for the company. You are in charge of an application service. Because of heap
corruption, it crashes intermittently. When it occurs, you have to detect the heap corruption. Of the
following tolls, which one should be used?
A.You should choose to use Page Heap
B.You should choose to use Special Pool
C.You should choose to use driver Verifier
D.You should choose to use Memory Pool Monitor
Answer:A

Microsoft過去問   070-660参考書   070-660   070-660

NO.7 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. There is a computer named c01. Windows Server 2008 is run by C01. Now you are
using WinDbg to debug C01. You find that one thread is waiting for a critical section. This section is
owned by another thread. You have to locate the critical section. Of the following WinDbg commands,
which one should be used?
A.You should choose to use.thread
B.You should choose to use !deadlock
C.You should choose to use!kdext.locks
D.You should choose to use!ntsdexts.locks
Answer:D

Microsoft   070-660認定証   070-660認定資格   070-660練習問題   070-660問題集   070-660

NO.8 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. According to the company requirement, an I/O dispatch routine is being written by you
for a Windows device driver. buffered I/O is supported by the device driver. 1 KB of data to the user
process is transferred by the dispatch routine. The kernel address of the 1-KB buffer needs to be retrieved
from the I/O request packet (IRP). Which field of the IRP contains the kernel address?
A.Irp->UserBuffer
B.Irp->Overlay.UserApcContext
C.Irp->Tail.Overlay.DriverContext[0]
D.Irp->AssociatedIrp.SystemBuffer
Answer:D

Microsoft参考書   070-660   070-660   070-660参考書

NO.9 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. You are in charge of a multithreaded application. Now is being tested by you. You have
to use Perfmon to test the application for heap leaks. Of the following counters, which one should be
monitored?
A.Process\Private Bytes
B.Memory\Available Bytes
C.Memory\Committed Bytes
D.Process\Pool Paged Bytes
Answer:A

Microsoft   070-660   070-660

NO.10 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. You are writing a user application that runs on Windows Server 2003. According to the
company requirement, a user application is being written by you. This application runs on Windows
Server 2003. User authentication is need by the design specification for the application. You must make
sure that each time the application is started, a local user name and password is entered by users. So
which routine should be used?
A.CredUIParseUserName()should be used.
B.LsaRegisterLogonProcess()should be used.
C.CredReadDomainCredentials() should be used.
D.CredUIPromptForCredentials()should be used.
Answer:D

Microsoft認定資格   070-660参考書   070-660練習問題   070-660過去問

JPexamは最新の700-039問題集と高品質の70-414問題と回答を提供します。JPexamのLOT-958 VCEテストエンジンと1Z0-027試験ガイドはあなたが一回で試験に合格するのを助けることができます。高品質のBAS-004 PDFトレーニング教材は、あなたがより迅速かつ簡単に試験に合格することを100%保証します。試験に合格して認証資格を取るのはそのような簡単なことです。

記事のリンク:http://www.jpexam.com/070-660_exam.html

2014年2月13日星期四

楽にMicrosoft 070-660認定試験の準備を完了したい?

JPexam提供した商品の品質はとても良くて、しかも更新のスピードももっともはやくて、もし君はMicrosoftの070-660の認証試験に関する学習資料をしっかり勉強して、成功することも簡単になります。

JPexamは多くの人に便利を与えるとともに、多くの人の夢が実現させるサイトでございます。もし君はまだIT試験で心配すれば、私達JPexamの問題集を選んでください。JPexamは長年の研究をわたって研ITの認証試験に関する品質が高く、範囲は広い教育資料が開発しました。それは確かに君の試験に役に立つとみられます。

業種別の人々は自分が将来何か成績を作るようにずっと努力しています。IT業種で勤めているあなたもきっとずっと努力して自分の技能を向上させているでしょう。では、最近最も人気があるMicrosoftの070-660認定試験の認証資格を既に取りましたか。070-660試験に対して、あなたはいくらぐらい分かっていますか。もしこの試験に関連する知識が非常に不足であると同時にこの試験に合格したい場合、あなたはどうするつもりですか。そうですか。どうするか全然分からないですか。そうしても焦らないでください。JPexamはあなたに援助を提供します。

JPexamはたくさんの方がIT者になる夢を実現させるサイトでございます。JPexamはMicrosoftの070-660認証試験について最新の対応性教育テストツールを研究し続けて、Microsoftの070-660認定試験の問題集を開発いたしました。JPexamが提供したMicrosoftの070-660試験問題と解答が真実の試験の練習問題と解答は最高の相似性があり、一年の無料オンラインの更新のサービスがあり、100%のパス率を保証して、もし試験に合格しないと、弊社は全額で返金いたします。

試験番号:070-660問題集
試験科目:TS:Windows Internals
最近更新時間:2014-02-13
問題と解答:全68問
100%の返金保証。1年間の無料アップデート。

進歩を勇敢に追及する人生こそ素晴らしい人生です。未来のある日、椅子で休むとき、自分の人生を思い出したときに笑顔が出たら成功な人生になります。あなたは成功な人生がほしいですか。そうしたいのなら、速くJPexamのMicrosoftの070-660試験トレーニング資料を利用してください。これはIT認証試験を受ける皆さんのために特別に研究されたもので、100パーセントの合格率を保証できますから、躊躇わずに購入しましょう。

購入前にお試し,私たちの試験の質問と回答のいずれかの無料サンプルをダウンロード:http://www.jpexam.com/070-660_exam.html

NO.1 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. For a hardware device, you are developing a Windows device driver. You will install the
device driver and hardware device on computers that run Windows Server 2008. Now you have to find out
the amount of time that the processor uses to receive and process interrupts. Which of the following tools
should be used?
A.You should choose to use Pview.exe
B.You should choose to use Taskmgr.exe
C.You should choose to use Eventvwr.msc
D.You should choose to use Perfmon.msc
Answer:D

Microsoft   070-660   070-660認証試験   070-660認定試験   070-660認定証

NO.2 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. You are writing a user application that runs on Windows Server 2003. According to the
company requirement, a user application is being written by you. This application runs on Windows
Server 2003. User authentication is need by the design specification for the application. You must make
sure that each time the application is started, a local user name and password is entered by users. So
which routine should be used?
A.CredUIParseUserName()should be used.
B.LsaRegisterLogonProcess()should be used.
C.CredReadDomainCredentials() should be used.
D.CredUIPromptForCredentials()should be used.
Answer:D

Microsoft過去問   070-660認定資格   070-660

NO.3 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. According to the company requirement, an I/O dispatch routine is being written by you
for a Windows device driver. buffered I/O is supported by the device driver. 1 KB of data to the user
process is transferred by the dispatch routine. The kernel address of the 1-KB buffer needs to be retrieved
from the I/O request packet (IRP). Which field of the IRP contains the kernel address?
A.Irp->UserBuffer
B.Irp->Overlay.UserApcContext
C.Irp->Tail.Overlay.DriverContext[0]
D.Irp->AssociatedIrp.SystemBuffer
Answer:D

Microsoft練習問題   070-660認証試験   070-660過去問   070-660   070-660認定資格

NO.4 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. You have a device driver that has one monitoring thread named ThreadA. The device
driver has three worker threads. They are respectively named ThreadB, ThreadC, and ThreadD. The
worker threads run every 10 seconds and complete within 1 second. If any worker thread does not run at
least once every 30 seconds, ThreadA calls KeBugCheckEx, and then a complete kernel crash dump is
generated. A bug check and a complete kernel dump are generated by the computer. You find the
following after you review the complete kernel dump: You have to find out the root cause of the bug check.
So what caused the bug check to occur?
A.It was caused by the state of ThreadA
B.It was caused by the priority of ThreadA.
C.It was caused by the priority of ThreadD
D.It was caused by the state of ThreadA and ThreadB
E.It was caused by the state of ThreadB and ThreadC
Answer:C

Microsoft問題集   070-660問題集   070-660認定試験   070-660過去問   070-660過去問

NO.5 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. There is a computer named c01. Windows Server 2008 is run by C01. Now you are
using WinDbg to debug C01. You find that one thread is waiting for a critical section. This section is
owned by another thread. You have to locate the critical section. Of the following WinDbg commands,
which one should be used?
A.You should choose to use.thread
B.You should choose to use !deadlock
C.You should choose to use!kdext.locks
D.You should choose to use!ntsdexts.locks
Answer:D

Microsoft   070-660   070-660認証試験   070-660認定資格

NO.6 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. You are in charge of a multithreaded application. Now is being tested by you. You have
to use Perfmon to test the application for heap leaks. Of the following counters, which one should be
monitored?
A.Process\Private Bytes
B.Memory\Available Bytes
C.Memory\Committed Bytes
D.Process\Pool Paged Bytes
Answer:A

Microsoft参考書   070-660過去問   070-660

NO.7 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. You are in charge of an application. This application runs at a customer's site. Because
of heap corruption, the application crashes intermittently. In order to enable yourself to check and resolve
the heap corruption, you ask the customer to have full page heap enabled on the application process. You
receive a user dump file from the customer. What you should do is to make it clear at the time that the
user dump was created, whether the full page heap was enabled. Of the following WinDbg commands,
which one should be used?
A.!vm should be used.
B.!gflag should be used.
C.!heap should be used.
D.!verifier should be used.
Answer:B

Microsoft   070-660練習問題   070-660

NO.8 You are the IT professional who work in an International company named Wiikigo. You are
experienced in troubleshooting operating systems and applications that are not working correctly,
identifying code defects and so on. You have enough knowledge on windows internals and you provide
technical support for the company. You are in charge of an application service. Because of heap
corruption, it crashes intermittently. When it occurs, you have to detect the heap corruption. Of the
following tolls, which one should be used?
A.You should choose to use Page Heap
B.You should choose to use Special Pool
C.You should choose to use driver Verifier
D.You should choose to use Memory Pool Monitor
Answer:A

Microsoft   070-660   070-660練習問題   070-660認定資格

NO.9 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. According to the company requirement, you are debugging a Windows device driver. An
unexpectedly long delay occurs on the device driver. You locate the problem in the following
synchronization mechanism. kd> dt var_sema Local var @ 0xf9dfbc48 Type _KSEMAPHORE +0x000
Header : _DISPATCHER_HEADER +0x010 Limit : 2 kd> dt nt!_DISPATCHER_HEADER f9dfbc48
+0x000 Type : 0x5 '' +0x001 Absolute : 0xe6 '' +0x002 Size : 0x5 '' +0x003 Inserted : 0xbb '' +0x004
SignalState : 0 +0x008 WaitListHead : _LIST_ENTRY [ 0x819ca438 - 0x819ca438 ] kd> dt
nt!_KWAIT_BLOCK 0x819ca438 +0x000 WaitListEntry : _LIST_ENTRY [ 0xf9dfbc50 - 0xf9dfbc50 ]
+0x008 Thread : 0x819ca3c8 _KTHREAD +0x00c Object : 0xf9dfbc48 +0x010 NextWaitBlock :
0.819ca480 _KWAIT_BLOCK +0x014 WaitKey : 0 +0x016 WaitType : 1 kd> dt nt!_KWAIT_BLOCK
0xf9dfbc50 +0x000 WaitListEntry : _LIST_ENTRY [ 0x819ca438 - 0x819ca438 ] +0x008 Thread :
0.00000002 _KTHREAD +0x00c Object : 0xfd050f80 +0x010 NextWaitBlock : 0xffffffff _KWAIT_BLOCK
+0x014 WaitKey : 0 +0x016 WaitType : 0 You have to find out the number of threads that the semaphore
currently has waiting. How many threads does the semaphore currently have waiting?
A.0
B.1
C.2
D.4
E.5
Answer:B

Microsoft   070-660問題集   070-660   070-660問題集

NO.10 You are the IT professional who work in an International company named Wiikigo. You are experienced
in troubleshooting operating systems and applications that are not working correctly, identifying code
defects and so on. You have enough knowledge on windows internals and you provide technical support
for the company. There is a colleague named Jason in the company. He has a computer named C01. C01
runs Windows Vista. He finds that a service process is using 100 percent of the processor. He has to
force a process dump of the service, meanwhile the service is consuming 100 percent of the processor.
He has no idea about which tool he should use. Since you are the technical support, he asks for your
answer. So which of the following tools should be used?
A.He should choose to use Umdh.exe
B.He should choose to use Tlist.exe
C.He should choose to use Pview.exe
D.He should choose to use Adplus.vbs
Answer:D

Microsoft   070-660過去問   070-660認定証   070-660認定試験

JPexamは最新のVCP510PSE問題集と高品質のC4040-224問題と回答を提供します。JPexamのHP3-C29 VCEテストエンジンと試験ガイドはあなたが一回で試験に合格するのを助けることができます。高品質のLOT-412 PDFトレーニング教材は、あなたがより迅速かつ簡単に試験に合格することを100%保証します。試験に合格して認証資格を取るのはそのような簡単なことです。

記事のリンク:http://www.jpexam.com/070-660_exam.html

2013年7月27日星期六

The Best Microsoft 070-503 070-502 070-680 070-542 074-674 070-660 Exam Training materials

Selecting IT-Tests.com can 100% help you pass the exam. According to Microsoft 070-503 070-502 070-680 070-542 074-674 070-660 test subjects' changing, we will continue to update our training materials and will provide the latest exam content. IT-Tests.com can provide a free 24-hour online customer service for you . If you do not pass Microsoft certification 070-503 070-502 070-680 070-542 074-674 070-660 exam, we will full refund to you.


To pass the Microsoft 070-503 070-502 070-680 070-542 074-674 070-660 exam is a dream who are engaged in IT industry. If you want to change the dream into reality, you only need to choose the professional training. IT-Tests.com is a professional website that providing IT certification training materials. Select IT-Tests.com, it will ensure your success. No matter how high your pursuit of the goal, IT-Tests.com will make your dreams become a reality.


Exam Code: 070-503

Exam Name: Microsoft (TS: Microsoft .NET Framework 3.5 C Windows Communication Foundation)

Exam Code: 070-502

Exam Name: Microsoft (TS: Microsoft .NET Framework 3.5 – Windows Presentation Foundation)

Exam Code: 070-680

Exam Name: Microsoft (TS:Windows 7,Configuring)

Exam Code: 070-542

Exam Name: Microsoft (MS Office SharePoint Server 2007.Application Development)

Exam Code: 074-674

Exam Name: Microsoft (Delivering Business Value Planning Services.)

Exam Code: 070-660

Exam Name: Microsoft (TS:Windows Internals)

There are too many variables and unknown temptation in life. So we should lay a solid foundation when we are still young. Are you ready? Working in the IT industry, do you feel a sense of urgency? IT-Tests.com's Microsoft 070-503 070-502 070-680 070-542 074-674 070-660 exam training materials is the best training materials. Select the IT-Tests.com, then you will open your door to success. Come on!


Microsoft certification 070-503 070-502 070-680 070-542 074-674 070-660 exam is the first step for the IT employees to set foot on the road to improve their job. Passing Microsoft certification 070-503 070-502 070-680 070-542 074-674 070-660 exam is the stepping stone towards your career peak. IT-Tests.com can help you pass Microsoft certification 070-503 070-502 070-680 070-542 074-674 070-660 exam successfully.


070-502 (TS: Microsoft .NET Framework 3.5 – Windows Presentation Foundation) Free Demo Download: http://www.it-tests.com/070-502.html


NO.1 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework

NO.2 5.
You add a CommandBinding element to the Window element. The command has a keyboard gesture
CTRL+H. The Window contains the following MenuItem control.
<MenuItem Header="Highlight Content"
Command="local:CustomCommands.Highlight" />
You need to ensure that the MenuItem control is disabled and the command is not executable when the
focus shifts to a TextBox control that does not contain any text.
What should you do?
A. Set the IsEnabled property for the MenuItem control in the GotFocus event handler for the TextBox
controls.
B. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim txtBox As TextBox = CType(sender, TextBox)
e.CanExecute = (txtBox.Text.Length > 0)
End Sub
C. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
ByVal e As CanExecuteRoutedEventArgs)
Dim txtBox As TextBox
txtBox = CType(e.Source, TextBox)
e.CanExecute = (txtBox.Text.Length > 0)
End Sub
D. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
Private Sub Highlight_CanExecute(ByVal sender As Object, _
?ByVal e As CanExecuteRoutedEventArgs)
Dim Menu As MenuItem = CType(e.Source, MenuItem)
Dim txtBox As TextBox = CType(Menu.CommandTarget, TextBox)
Menu.IsEnabled = (txtBox.Text.Length > 0)
End Sub
Answer: C

Microsoft   070-502   070-502   070-502
3. You create a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application is named EnterpriseApplication.exe.
You add the WindowSize parameter and the WindowPosition parameter to the Settings.settings file by
using the designer at the User Scope Level. The dimensions and position of the window are read from the
user configuration file.
The application must retain the original window size and position for each user who executes the
application.
You need to ensure that the following requirements are met:
?The window dimensions for each user are saved in the user configuration file.
?The user settings persist when a user exits the application.
Which configuration setting should you use?
A. private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e){
Settings.Default.WindowPosition = new Point (this.Left,
this.Top);
Settings.Default.WindowSize = new Size (this.Width,
this.Height);
Settings.Default.Save();
B. private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e){
RegistryKey appKey =
Registry.CurrentUser.CreateSubKey("Software\\EnterpriseApplication");
RegistryKey settingsKey = appKey.CreateSubKey("WindowSettings");
RegistryKey windowPositionKey =
settingsKey.CreateSubKey("WindowPosition");
RegistryKey windowSizeKey = settingsKey.CreateSubKey("WindowSize");
windowPositionKey.SetValue("X", this.Left);
windowPositionKey.SetValue("Y", this.Top);
windowSizeKey.SetValue("Width", this.Width);
windowSizeKey.SetValue("Height", this.Height);
C. private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e){
XmlDocument doc = new XmlDocument();
doc.Load("EnterpriseApplication.exe.config");
XmlNode nodePosition =
doc.SelectSingleNode("//setting[@name=\'WindowPosition\']");
nodePosition.ChildNodes[0].InnerText = String.Format("{0},{1}",
this.Left, this.Top);
XmlNode nodeSize =
doc.SelectSingleNode("//setting[@name=\'WindowSize\']");
nodeSize.ChildNodes[0].InnerText = String.Format("{0},{1}",
this.Width, this.Height);
doc.Save("UserConfigDistractor2.exe.config");
D. private void Window_Closing(object sender,
System.ComponentModel.CancelEventArgs e){
StreamWriter sw =
new StreamWriter("EnterpriseApplication.exe.config", true);
sw.WriteLine("<EnterpriseApplication.Properties.Settings>");
sw.WriteLine("<setting name=
\"WindowSize\" serializeAs=\"String\">");
sw.WriteLine(String.Format("<value>{0},{1}</value>",
this.Width, this.Height));
sw.WriteLine("</setting>");
sw.WriteLine("<setting name=
\"WindowPosition\" serializeAs=\"String\">");
sw.WriteLine(String.Format("<value>{0},{1}</value>", this.Left,
this.Top));
sw.WriteLine("</setting>");
sw.WriteLine("</UserConfigProblem.Properties.Settings>");
sw.Close();
Answer: A

Microsoft answers real questions   070-502 certification   070-502 pdf   070-502

NO.3 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application defines a BrowserWindow class. Each instance of the BrowserWindow class allows the
user to browse a Web site in a separate window. When a new browser window is opened, the user is
redirected to a predefined URL.
You write the following code segment.
01 Private Sub OpenNewWindow(ByVal sender As Object, _
02 ?ByVal e As RoutedEventArgs)
03 Dim newWindowThread As New Thread(New _
04 ThreadStart(AddressOf NewThreadProc))
05
06 newWindowThread.Start()
07 End Sub
08 Private Sub NewThreadProc()
09 10 End Sub
You need to ensure that the following requirements are met:
?The main window of the application is not blocked when an additional browser window is created.
?The application completes execution when the main window of the application is closed.
What should you do?
A. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
newWindow.Show()
Dim app As New Application()
app.Run(newWindow)
B. Insert the following code segment at line 05.
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
newWindowThread.SetApartmentState(ApartmentState.STA)
Dim newWindow As New BrowserWindow()
newWindow.Show()
Dim app As New Application()
app.Run(newWindow)
C. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = False
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
System.Windows.Threading.Dispatcher.Run()
newWindow.Show()
D. Insert the following code segment at line 05.
newWindowThread.SetApartmentState(ApartmentState.STA)
newWindowThread.IsBackground = True
Insert the following code segment at line 09.
Dim newWindow As New BrowserWindow()
newWindow.Show()
System.Windows.Threading.Dispatcher.Run()
Answer: D 7. You are creating a Windows Presentation Foundation application by using Microsoft .NET
Framework 3.5.
The application uses several asynchronous operations to calculate data that is displayed to the user. An
operation named tommorowsWeather performs calculations that will be used by other operations.
You need to ensure that tommorowsWeather runs at the highest possible priority.
Which code segment should you use?
A. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Normal,
new OneArgDelegate(UpdateUserInterface),
weather);
B. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.DataBind,
new OneArgDelegate(UpdateUserInterface),
weather);
C. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Send,
new OneArgDelegate(UpdateUserInterface),
weather);
D. tomorrowsWeather.Dispatcher.BeginInvoke(
System.Windows.Threading.DispatcherPriority.Render,
new OneArgDelegate(UpdateUserInterface),
weather);
Answer: C 8. You are creating a Windows Presentation Foundation application by using Microsoft .NET
Framework 3.5.
The application uses several asynchronous operations to calculate data that is displayed to the user. An
operation named tommorowsWeather performs calculations that will be used by other operations.
You need to ensure that tommorowsWeather runs at the highest possible priority.
Which code segment should you use?
A. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Normal, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
B. tomorrowsWeather.Dispatcher.BeginInvoke( _
?System.Windows.Threading.DispatcherPriority.DataBind, _
?New OneArgDelegate(AddressOf UpdateUserInterface), weather)
C. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Send, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
D. tomorrowsWeather.Dispatcher.BeginInvoke( _
System.Windows.Threading.DispatcherPriority.Render, _
New OneArgDelegate(AddressOf UpdateUserInterface), weather)
Answer: C 9. You are creating a Windows Presentation Foundation application by using Microsoft .NET
Framework 3.5.
You create a window for the application.
You need to ensure that the following requirements are met:
?An array of strings is displayed by using a ListBox control in a two-column format.
?The data in the ListBox control flows from left to right and from top to bottom.
What should you do?
A. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="2"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following C# code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString;
B. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following C# code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString;
C. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following C# code to associate the array of strings to the ListBox control.
myListView.ItemsSource = arrayOfString;
D. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
</Grid>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following C# code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString;
Answer: A

Microsoft dumps   070-502   070-502
10. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You create a window for the application.
You need to ensure that the following requirements are met:
?An array of strings is displayed by using a ListBox control in a two-column format.
?The data in the ListBox control flows from left to right and from top to bottom.
What should you do?
A. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="2"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following VB.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
B. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
C. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myListView.ItemsSource = arrayOfString
D. Use a ListBox control defined in the following manner.
<ListBox Name="myList">
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
</Grid>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
</ListBox>
Use the following vb.net code to associate the array of strings to the ListBox control.
myList.ItemsSource = arrayOfString
Answer: A

Microsoft test answers   070-502 exam dumps   070-502   070-502   070-502
11. You create a form by using Windows Presentation Foundation and Microsoft .NET Framework 3.5.
The form contains a status bar.
You plan to add a ProgressBar control to the status bar.
You need to ensure that the ProgressBar control displays the progress of a task for which you cannot
predict the completion time.
Which code segment should you use?
A. progbar.IsIndeterminate = true;
B. progbar.IsIndeterminate = false;
C. progbar.HasAnimatedProperties = true;
D. progbar.HasAnimatedProperties = false;
Answer: A

Microsoft certification training   070-502 dumps   070-502 questions
12. You create a form by using Windows Presentation Foundation and Microsoft .NET Framework 3.5.
The form contains a status bar.
You plan to add a ProgressBar control to the status bar.
You need to ensure that the ProgressBar control displays the progress of a task for which you cannot
predict the completion time.
Which code segment should you use?
A. progbar.IsIndeterminate = True
B. progbar.IsIndeterminate = False
C. progbar.HasAnimatedProperties = True
D. progbar.HasAnimatedProperties = False
Answer: A

Microsoft   070-502   070-502 answers real questions   070-502
13. You are converting a Windows Forms application to a Windows Presentation Foundation (WPF)
application. You use Microsoft .NET Framework 3.5 to create the WPF application.
The WPF application will reuse 30 forms of the Windows Forms application.
The WPF application contains the following class definition.
public class OwnerWindow :
System.Windows.Forms.IWin32Window
private IntPtr handle;
public IntPtr Handle
get { return handle; }
set { handle=value; }
}
}
You write the following code segment in the WPF application. (Line numbers are included for reference
only.)
01 public DialogResult LaunchWindowsFormsDialog(
02 ?Form dialog, Window wpfParent)
03 {
04 WindowInteropHelper helper=new
05 ?WindowInteropHelper(wpfParent);
06 OwnerWindow owner=new OwnerWindow();
07
08 }
You need to ensure that the application can launch the reusable forms as modal dialogs.
Which code segment should you insert at line 07?
A.owner.Handle = helper.Owner;
return dialog.ShowDialog(owner);
B. owner.Handle = helper.Handle;
return dialog.ShowDialog(owner);
C. owner.Handle = helper.Owner;
bool? result = wpfParent.ShowDialog();
if (result.HasValue)
return result.Value ? System.Windows.Forms.DialogResult.OK :
System.Windows.Forms.DialogResult.Cancel;
else
return System.Windows.Forms.DialogResult.Cancel;
D. owner.Handle = helper.Handle;
bool? result = wpfParent.ShowDialog();
if (result.HasValue)
return result.Value ? System.Windows.Forms.DialogResult.OK :
System.Windows.Forms.DialogResult.Cancel;
else
return System.Windows.Forms.DialogResult.Cancel;
Answer: B

Microsoft exam   070-502 dumps   070-502   070-502 certification
14. You are converting a Windows Forms application to a Windows Presentation Foundation (WPF)
application. You use Microsoft .NET Framework 3.5 to create the WPF application.
The WPF application will reuse 30 forms of the Windows Forms application.
The WPF application contains the following class definition.
Public Class OwnerWindow
Implements System.Windows.Forms.IWin32Window
Private handle_Renamed As IntPtr
Public Property Handle() As IntPtr _
Implements System.Windows.Forms.IWin32Window.Handle
Get
Return handle_Renamed
End Get
Set(ByVal value As IntPtr)
handle_Renamed = value
End Set
End Property
End Class
You write the following code segment in the WPF application. (Line numbers are included for reference
only.)
01 Public Function LaunchWindowsFormsDialog(ByVal dialog As _
02 ?System.Windows.Forms.Form, ByVal wpfParent As Window) As _
03 ?System.Windows.Forms.DialogResult
04 Dim helper As New
05 System.Windows.Interop.WindowInteropHelper(wpfParent)
07 Dim owner As New OwnerWindow()
08
09 End Function
You need to ensure that the application can launch the reusable forms as modal dialogs.
Which code segment should you insert at line 08?
Aowner.Handle = helper.Owner
Dim db As New System.Windows.Forms.DialogResult()
Return db
B. owner.Handle = helper.Owner
Return dialog.ShowDialog(owner)
C. owner.Handle = helper.Owner
Dim result As Nullable(Of Boolean) = wpfParent.ShowDialog()
If result.HasValue Then
eturn If(result.Value, System.Windows.Forms.DialogResult.OK, _
?System.Windows.Forms.DialogResult.Cancel)
Else
Return System.Windows.Forms.DialogResult.Cancel
End If
D. owner.Handle = helper.Handle
Dim result As Nullable(Of Boolean) = wpfParent.ShowDialog()
If result.HasValue Then
Return If(result.Value, System.Windows.Forms.DialogResult.OK, _
?System.Windows.Forms.DialogResult.Cancel)
Else
Return System.Windows.Forms.DialogResult.Cancel
End If
Answer: B 15. You are creating a Windows Presentation Foundation (WPF) application by using
Microsoft .NET Framework 3.5.
The WPF application has a Grid control named rootGrid.
You write the following XAML code fragment.
<Window x:Class="MCP.HostingWinFormsControls"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/
presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="HostingWinFormsControls"
Loaded="Window_Loaded">
<Grid x:Name="rootGrid">
</Grid>
</Window>
You need to ensure that each time the WPF window opens, a Windows Forms control named
MyCustomFormsControl is added to rootGrid.
Which code segment should you use?
A.private void Window_Loaded(object sender, RoutedEventArgs e)
WindowsFormsHost host = new WindowsFormsHost();
MyCustomFormsControl formsControl = new MyCustomFormsControl();
host.Child = formsControl;
rootGrid.Children.Add(host);
B. private void Window_Loaded(object sender, RoutedEventArgs e)
ElementHost host = new ElementHost();
MyCustomFormsControl formsControl=new MyCustomFormsControl();
host.Child=formsControl;
rootGrid.Children.Add(host);
C. private void Window_Loaded(object sender, RoutedEventArgs e)
MyCustomFormsControl formsControl=new MyCustomFormsControl();
formsControl.CreateControl();
HwndSource source = HwndSource.FromHwnd(formsControl.Handle);
UIElement formsElement = source.RootVisual as UIElement;
rootGrid.Children.Add(formsElement);
D. private void Window_Loaded(object sender, RoutedEventArgs e)
MyCustomFormsControl formsControl=new MyCustomFormsControl();
formsControl.CreateControl();
HwndTarget target = new HwndTarget(formsControl.Handle);
UIElement formsElement = target.RootVisual as UIElement;
rootGrid.Children.Add(formsElement);
Answer: A

Microsoft   070-502 questions   070-502   070-502   070-502   070-502
16.You are creating a Windows Presentation Foundation (WPF) application by using Microsoft .NET
Framework 3.5.
The WPF application has a Grid control named rootGrid.
You write the following XAML code fragment.
<Window x:Class="MCP.HostingWinFormsControls"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/
presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="HostingWinFormsControls"
Loaded="Window_Loaded">
<Grid x:Name="rootGrid">
</Grid>
</Window>
You need to ensure that each time the WPF window opens, a Windows Forms control named
MyCustomFormsControl is added to rootGrid.
Which code segment should you use?
APrivate Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim host As New WindowsFormsHost()
Dim formsControl As New MyCustomFormsControl()
host.Child = formsControl;
rootGrid.Children.Add(host);
End Sub
B. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim host As New ElementHost()
Dim formsControl As New MyCustomFormsControl()
host.Child = formsControl;
rootGrid.Children.Add(host);
End Sub
C. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim formsControl As New MyCustomFormsControl()
formsControl.CreateControl()
Dim target As New HwndTarget(formsControl.Handle)
Dim formsElement As UIElement = TryCast(target.RootVisual, _
UIElement)
rootGrid.Children.Add(formsElement)
End Sub
D. Private Sub Window_Loaded(ByVal sender As Object, ByVal e As _
RoutedEventArgs)
Dim formsControl As New MyCustomFormsControl()
formsControl.CreateControl()
Dim source As HwndSource = HwndSource.FromHwnd(formsControl.Handle)
Dim formsElement As UIElement = TryCast(source.RootVisual, _
UIElement)
rootGrid.Children.Add(formsElement)
End Sub
Answer: A

Microsoft test answers   070-502 original questions   070-502
17. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You include functionality in the application to troubleshoot the window behavior.
You need to display a list of UI elements at a position in the window that is decided by the mouse click.
You also need to ensure that the list of elements is displayed in a message box.
Which code segment should you include in the code-behind file?
Astring controlsToDisplay = string.Empty;
private void Window_MouseDown(object sender, MouseButtonEventArgs e) {
controlsToDisplay = ((UIElement)sender).ToString();
MessageBox.Show(controlsToDisplay);
B. string controlsToDisplay = string.Empty;
private void Window_MouseDown(object sender, MouseButtonEventArgs e) {
for (int i = 0; i < this.VisualChildrenCount; i++) {
controlsToDisplay + = this.GetVisualChild(i).ToString() + "\r\n";
MessageBox.Show(controlsToDisplay);
C. string controlsToDisplay = string.Empty;
private void Window_MouseDown (object sender, MouseButtonEventArgs e)
Visual myVisual;
for (int i = 0; i < VisualTreeHelper.GetChildrenCount(sender as
Visual); i++) {
myVisual = (Visual)VisualTreeHelper.GetChild(sender as Visual, i);
controlsToDisplay += myVisual.GetType().ToString() + "\r\n";
MessageBox.Show(controlsToDisplay);
D. string controlsToDisplay = string.Empty;
private void Window_MouseDown(object sender, MouseButtonEventArgs e) {
Point pt = e.GetPosition(this);
VisualTreeHelper.HitTest(this, null, new
HitTestResultCallback(HitTestCallback), new
PointHitTestParameters(pt));
MessageBox.Show(controlsToDisplay);
private HitTestResultBehavior HitTestCallback(HitTestResult result) {
controlsToDisplay += result.VisualHit.GetType().ToString() + "\r\n";
return HitTestResultBehavior.Continue;
Answer: D

Microsoft   070-502   070-502 certification
18. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You include functionality in the application to troubleshoot the window behavior.
You need to display a list of UI elements at a position in the window that is decided by the mouse click.
You also need to ensure that the list of elements is displayed in a message box.
Which code segment should you include in the code-behind file?
A.Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
controlsToDisplay = CType(sender, UIElement).ToString()
MessageBox.Show(controlsToDisplay)
End Sub
B. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
For i = 0 To VisualChildrenCount - 1
controlsToDisplay += GetVisualChild(i).ToString() + "\r\n"
Next
MessageBox.Show(controlsToDisplay)
End Sub
C. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim myVisual As Visual()
For i = 0 To VisualTreeHelper.GetChildrenCount(CType(sender, _
Visual)) - 1
myVisual(i) = CType(VisualTreeHelper.GetChild(CType(sender, _
Visual), i), Visual)
controlsToDisplay += myVisual.GetType().ToString() + "\r\n"
Next
MessageBox.Show(controlsToDisplay)
End Sub
D. Dim controlsToDisplay As String = String.Empty
Private Sub Window_MouseDown(ByVal sender As Object, _
ByVal e As MouseButtonEventArgs)
Dim pt As Point = e.GetPosition(Me)
VisualTreeHelper.HitTest(Me, Nothing, _
New HitTestResultCallback(AddressOf HitTestCallback), _
New PointHitTestParameters(pt))
MessageBox.Show(controlsToDisplay)
End Sub
Private Function HitTestCallback(ByVal result As HitTestResult) As _
HitTestResultBehavior
controlsToDisplay += result.VisualHit.GetType().ToString() + "\r\n"
Return HitTestResultBehavior.Continue
End Function
Answer: D

Microsoft exam prep   070-502 answers real questions   070-502 answers real questions   070-502
19. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You write the following code segment (Line numbers are included for reference only).
01 Dim content As Object
02 Dim fileName As String = "theFile"
03 Using xamlFile As New FileStream(fileName & ".xaml", _
04 FileMode.Open, FileAccess.Read)
06 content = TryCast(XamlReader.Load(xamlFile), Object)
07 End Using
08 Using container As Package = Package.Open(fileName & ".xps", _
09 FileMode.Create)1011 End Using
You need to ensure that the following requirements are met:
The application converts an existing flow document into an XPS document.
The XPS document is generated by using the flow document format.
The XPS document has the minimum possible size.
Which code segment should you insert at line 10?
A
Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As XpsSerializationManager = New _
System.Windows.Xps.XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.SaveAsXaml(paginator)
End Using
B. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.Commit()
End Using
C. Using xpsDoc As New XpsDocument(container, _
CompressionOption.Maximum)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
D. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
Answer: C

Microsoft demo   070-502 dumps   070-502   070-502
20. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You write the following code segment (Line numbers are included for reference only).
01 Dim content As Object
02 Dim fileName As String = "theFile"
03 Using xamlFile As New FileStream(fileName & ".xaml", _
04 ?FileMode.Open, FileAccess.Read)
06 content = TryCast(XamlReader.Load(xamlFile), Object)
07 End Using
08 Using container As Package = Package.Open(fileName & ".xps", _
09 ?FileMode.Create)10 11 End Using
You need to ensure that the following requirements are met:
The application converts an existing flow document into an XPS document.
The XPS document is generated by using the flow document format.
The XPS document has the minimum possible size.
Which code segment should you insert at line 10?
A.Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As XpsSerializationManager = New _
System.Windows.Xps.XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.SaveAsXaml(paginator)
End Using
B. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
rsm.Commit()
End Using
C. Using xpsDoc As New XpsDocument(container, _
CompressionOption.Maximum)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
D. Using xpsDoc As New XpsDocument(container, _
CompressionOption.SuperFast)
Dim rsm As New XpsSerializationManager(New _
XpsPackagingPolicy(xpsDoc), False)
Dim paginator As DocumentPaginator = (CType(content, _
IDocumentPaginatorSource)).DocumentPaginator
rsm.SaveAsXaml(paginator)
End Using
Answer: C

Microsoft exam simulations   070-502 exam   070-502 exam   070-502 practice test   070-502
21. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application displays documents by using an instance of the FlowDocumentPageViewer class. The
instance is named fdpv. Users can highlight and annotate the content of the documents.
You need to ensure that annotations made to a document are saved and rendered when the document is
displayed again.
Which code segment should you use?
A.protected void OnTextInput(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
AnnotationStore store = new XmlStreamStore(AnnotationStream);
service.Enable(store);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Store.Flush();
service.Disable();
AnnotationStream.Close();
}
}
B. protected void OnLoaded(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
}
}
private void OnClosing(object sender,
?System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Store.Flush();
service.Disable();
AnnotationStream.Close();
}
}
C. protected void OnLoaded(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
AnnotationStore store = new XmlStreamStore(AnnotationStream);
service.Enable(store);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Store.Flush();
service.Disable();
AnnotationStream.Close();
}
}
D. protected void OnLoaded(object sender, RoutedEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service == null) {
AnnotationStream = new FileStream("annotations.xml",
FileMode.Open, FileAccess.ReadWrite);
service = new AnnotationService(fdpv);
AnnotationStore store = new XmlStreamStore(AnnotationStream);
service.Enable(store);
}
}
private void OnClosing(object sender,
System.ComponentModel.CancelEventArgs e) {
AnnotationService service = AnnotationService.GetService(fdpv);
if (service != null && service.IsEnabled) {
service.Disable();
AnnotationStream.Close();
}
}
Answer: C

Microsoft practice test   070-502 original questions   070-502 exam dumps   070-502   070-502
22. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application will display documents by using an instance of the FlowDocumentPageViewer class. The
instance is named fdpv. Users can highlight and annotate the content of the documents.
You need to ensure that annotations made to a document are saved and rendered when the document is
displayed again.
Which code segment should you use?
A. Protected Sub OnTextInput(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = _
New XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
srvice.Disable()
AnnotationStream.Close()
End If
End Sub
B. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
C. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Store.Flush()
service.Disable()
AnnotationStream.Close()
End If
End Sub
D. Protected Sub OnLoaded(ByVal sender As Object, _
ByVal e As RoutedEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If service Is Nothing Then
AnnotationStream = New FileStream("annotations.xml", _
FileMode.Open, FileAccess.ReadWrite)
service = New AnnotationService(fdpv)
Dim store As AnnotationStore = New _
XmlStreamStore(AnnotationStream)
service.Enable(store)
End If
End Sub
Private Sub OnClosing(ByVal sender As Object, _
ByVal e As System.ComponentModel.CancelEventArgs)
Dim service As AnnotationService = _
AnnotationService.GetService(fdpv)
If Not service Is Nothing AndAlso service.IsEnabled Then
service.Disable()
AnnotationStream.Close()
End If
End Sub
Answer: C

Microsoft test answers   070-502 dumps   070-502   070-502 test answers
23. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You plan to use the application to preview video files.
You write the following XAML code fragment.
01 <Window
01 x:Class="myClass" xmlns=
01 "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
01 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
01 Title="myWindow" Height="300" Width="300">
02 <StackPanel Background="Black">
03
04 <StackPanel HorizontalAlignment="Center"
04 Orientation="Horizontal">
05 ?<Button Name="btnPlay" Margin="10" Content="Play" />
06 </StackPanel>
07
08 </StackPanel>
09 </Window>
You need to ensure that the application plays only the first 10 seconds of a video that you want to preview.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement" Stretch="Fill" />
B. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement"
Source="MediaFileSelected.wmv" Stretch="Fill" />
C. Create the following method in the code-behind file.
public void PlayMedia(object sender, RoutedEventArgs args) {
myMediaElement.Play();
}
D. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline Source="MediaFileSelected.wmv"
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
E. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
Answer: A AND D

Microsoft test questions   070-502   070-502 answers real questions   070-502   070-502   070-502 exam prep
24. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You plan to use the application to preview video files.
You write the following XAML code fragment.
01 <Window
01 x:Class="myClass" xmlns=
01 "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
01 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
01 Title="myWindow" Height="300" Width="300">
02 <StackPanel Background="Black">
03
04 <StackPanel HorizontalAlignment="Center"
04 Orientation="Horizontal">
05 ?<Button Name="btnPlay" Margin="10" Content="Play" />
06 </StackPanel>
07
08 </StackPanel>
09 </Window>
You need to ensure that the application plays only the first 10 seconds of a video that you want to preview.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement" Stretch="Fill" />
B. Insert the following XAML fragment at line 03.
<MediaElement Name="myMediaElement"
Source="MediaFileSelected.wmv" Stretch="Fill" />
C. Create the following method in the code-behind file.
Public Sub PlayMedia(ByVal sender As Object, _
ByVal args As RoutedEventArgs)
myMediaElement.Play()
End Sub
D. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline Source="MediaFileSelected.wmv"
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
E. Insert the following XAML fragment at line 07.
<StackPanel.Triggers>
<EventTrigger RoutedEvent="Button.Click" SourceName="btnPlay">
<EventTrigger.Actions>
<BeginStoryboard Name= "myBegin">
<Storyboard SlipBehavior="Slip">
<MediaTimeline
Storyboard.TargetName="myMediaElement"
BeginTime="0:0:0" Duration="0:0:10" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</StackPanel.Triggers>
Answer: A AND D

Microsoft test   070-502   070-502   070-502
25. You are creating a Windows Presentation Foundation application.
You create a window for the application. The application contains an audio file named
AudioFileToPlay.wav.
You need to ensure that the audio file is played each time you click the client area of the window.
What should you do?
A. Add the following XAML line of code to the window.
<MediaElement Source="AudioFileToPlay.wav" />
B. Add the following code segment to the window constructor method in the code-behind file.
SoundPlayer player = new SoundPlayer();
player.SoundLocation = "AudioFileToPlay.wav";
player.Play();
C. Add the following code segment to the window MouseDown method in the code-behind file.
MediaPlayer player = new MediaPlayer();
player.SetValue(MediaElement.SourceProperty,new Uri("AudioFileToPlay.wav", UriKind.Relative));
player.Play();
D. Add the following XAML code fragment to the window.
<Window.Triggers>
<EventTrigger RoutedEvent="Window.MouseDown">
<EventTrigger.Actions>
<SoundPlayerAction Source="AudioFileToPlay.wav"/>
</EventTrigger.Actions>
</EventTrigger>
</Window.Triggers>
Answer: D

Microsoft   070-502   070-502
26. You are creating a Windows Presentation Foundation application.
You create a window for the application. The application contains an audio file named
AudioFileToPlay.wav.
You need to ensure that the following requirements are met:
The audio file is played each time you click the client area of the window.
The window provides optimal performance when the audio file is being played.
What should you do?
A
Add the following XAML line of code to the window.
<MediaElement Source="AudioFileToPlay.wav" />
B. Add the following code segment to the window constructor method in the code-behind file.
Dim player As New SoundPlayer()
player.SoundLocation = "AudioFileToPlay.wav"
player.Play()
C. Add the following code segment to the window MouseDown method in the code-behind file.
Dim player As New MediaElement()
player.Source = New Uri("AudioFileToPlay.wav", UriKind.Relative)
player.LoadedBehavior = MediaState.Manual
player.Play()
D. Add the following XAML code fragment to the window.
<Window.Triggers>
<EventTrigger RoutedEvent="Window.MouseDown">
<EventTrigger.Actions>
<SoundPlayerAction Source="AudioFileToPlay.wav"/>
</EventTrigger.Actions>
</EventTrigger>
</Window.Triggers>
Answer: D

Microsoft dumps   070-502 study guide   070-502   070-502 exam   070-502
27. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5. Your project contains a folder named Data.
You add an MP3 file named song.mp3 in the Data folder. You set the Build Action property of the MP3 file
to Resource.
You need to access the MP3 file from the application.
Which code segment should you use?
A. Uri uri = new Uri("/Data/song.mp3", UriKind.Relative);
StreamResourceInfo sri=Application.GetContentStream(uri);
Stream stream=sri.Stream;
B. Uri uri = new Uri("/Data/song.mp3", UriKind.Relative);
StreamResourceInfo sri=Application.LoadComponent(uri);
Stream stream=sri.Stream;
C. Uri uri = new Uri("/Data/song.mp3", UriKind.Relative);
StreamResourceInfo sri=Application.GetRemoteStream(uri);
Stream stream=sri.Stream;
D. Uri uri = new Uri("/Data/song.mp3", UriKind.Relative);
StreamResourceInfo sri=Application.GetResourceStream(uri);
Stream stream=sri.Stream;
Answer: D

Microsoft   070-502   070-502   070-502 exam prep
28. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5. Your project contains a folder named Data.
You add a .MP3 file named song.mp3 in the Data folder. You set the Build Action property of the
application to Resource.
You need to access the .MP3 file from one of the application classes.
Which code segment should you use?
A. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetContentStream(uri)
Dim stream As Stream = sri.Stream
B. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.LoadComponent(uri)
Dim stream As Stream = sri.Stream
C. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetRemoteStream(uri)
Dim stream As Stream = sri.Stream
D. Dim uri As New Uri("/Data/song.mp3", UriKind.Relative)
Dim sri As StreamResourceInfo = Application.GetResourceStream(uri)
Dim stream As Stream = sri.Stream
Answer: D

Microsoft exam prep   070-502 pdf   070-502 test questions   070-502 test
29. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application has a window that programatically displays an image. The window contains a grid named
theGrid.
The window displays images in their actual size of 1024 pixels wide or larger. You want the images to be
200 pixels wide.
You write the following code segment. (Line numbers are included for reference only.)
01 Image theImage=new Image();
02 theImage.Width=200;
03 BitmapImage theBitmapImage=new BitmapImage();
04
05 theImage.Source=theBitmapImage;
06 theGrid.Children.Add(theImage);
You need to ensure that the application meets the following requirements:
The window uses the least amount of memory to display the image.
The image is not skewed.
Which code segment should you insert at line 04?
A. theBitmapImage.UriSource=new Uri(@"imageToDisplay.jpg");
theBitmapImage.DecodePixelWidth=200;
B. theBitmapImage.BeginInit();
theBitmapImage.UriSource=new Uri(@"imageToDisplay.jpg");
theBitmapImage.EndInit();
C. theBitmapImage.BeginInit();
theBitmapImage.UriSource=new Uri(@"imageToDisplay.jpg");
theBitmapImage.DecodePixelWidth=200;
theBitmapImage.EndInit();
D. theBitmapImage.BeginInit();
theBitmapImage.UriSource=new Uri(@"imageToDisplay.jpg");
theBitmapImage.DecodePixelWidth=200;
theBitmapImage.DecodePixelHeight=200;
theBitmapImage.EndInit();
Answer: C

Microsoft   070-502   070-502 original questions   070-502   070-502 certification training
30. You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application has a window that programatically displays an image. The window contains a grid named
theGrid.
The window displays images in their actual size. You want the images to be 200 pixels wide. You write the
following code segment.
01 Dim theImage As New Image()
02 theImage.Width = 200
03 Dim theBitmapImage As New BitmapImage()
04
05 theImage.Source = theBitmapImage
06 theGrid.Children.Add(theImage)
You need to ensure that the application meets the following requirements:
The window uses the least amount of memory to display the image.
The image is not skewed.
Which code segment should you insert at line 04?
A. theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.DecodePixelWidth = 200
B. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.EndInit()
C. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.DecodePixelWidth = 200
theBitmapImage.EndInit()
D. theBitmapImage.BeginInit()
theBitmapImage.UriSource = New Uri("imageToDisplay.jpg")
theBitmapImage.EndInit()
theBitmapImage.DecodePixelWidth = 200
theBitmapImage.DecodePixelHeight = 200
Answer: C

Microsoft certification training   070-502 certification   070-502 braindump   070-502 exam simulations   070-502

NO.4 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
You add a CommandBinding element to the Window element. The command has a keyboard gesture
CTRL+H. The Window contains the following MenuItem control.
<MenuItem Header="Highlight Content"
Command="local:CustomCommands.Highlight" />
You need to ensure that the MenuItem control is disabled and the command is not executable when the
focus shifts to a TextBox control that does not contain any text.
What should you do?
A. Set the IsEnabled property for the MenuItem control in the GotFocus event handler for the TextBox
controls.
B. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code-behind file for the window.
private void Highlight_CanExecute(object sender, CanExecuteEventArgs e) {
TextBox txtBox = sender as TextBox;
e.CanExecute = (txtBox.Text.Length > 0);
}
C. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code behind file for the window.
private void Highlight_CanExecute(object sender, CanExecuteEventArgs e) {
TextBox txtBox = e.Source as TextBox;
e.CanExecute = (txtBox.Text.Length > 0);
}
D. Set the CanExecute property of the command to Highlight_CanExecute.
Add the following method to the code behind file for the window.
private void Highlight_CanExecute(object sender, CanExecuteEventArgs e) {
MenuItem menu = e.Source as MenuItem;
TextBox txtBox = menu.CommandTarget as TextBox;
Menu.IsEnabled = (txtBox.Text.Length > 0);
}
Answer: C

Microsoft certification training   070-502 study guide   070-502   070-502 original questions   070-502   070-502 demo

NO.5 You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5.
The application defines a BrowserWindow class. Each instance of the BrowserWindow class allows the
user to browse a Web site in a separate window. When a new browser window is opened, the user is
redirected to a predefined URL.
You write the following code segment.
01 private void OpenNewWindow(object sender, RoutedEventArgs e)
02 {
03 Thread newWindowThread = new Thread(new
ThreadStart(NewThreadProc));
04
05 newWindowThread.Start();
06 }
07 private void NewThreadProc()
08 {
09 10 ?}
You need to ensure that the following requirements are met:
?The main window of the application is not blocked when an additional browser window is created.
?The application completes execution when the main window of the application is closed.
What should you do?
A. Insert the following code segment at line 04.
newWindowThread.SetApartmentState(ApartmentState.STA);
newWindowThread.IsBackground = true;
Insert the following code segment at line 09.
BrowserWindow newWindow = new BrowserWindow();
newWindow.Show();
Application app = new Application();
app.Run(newWindow);
B. Insert the following code segment at line 04.
newWindowThread.IsBackground = true;
Insert the following code segment at line 09.
newWindowThread.SetApartmentState(ApartmentState.STA);
BrowserWindow newWindow = new BrowserWindow();
newWindow.Show();
Application app = new Application();
app.Run(newWindow);
C. Insert the following code segment at line 04.
newWindowThread.SetApartmentState(ApartmentState.STA);
newWindowThread.IsBackground = false;
Insert the following code segment at line 09.
BrowserWindow newWindow = new BrowserWindow();
System.Windows.Threading.Dispatcher.Run();
newWindow.Show();
D. Insert the following code segment at line 04.
newWindowThread.SetApartmentState(ApartmentState.STA);
newWindowThread.IsBackground = true;
Insert the following code segment at line 09.
BrowserWindow newWindow = new BrowserWindow();
newWindow.Show();
System.Windows.Threading.Dispatcher.Run();
Answer: D

Microsoft   070-502   070-502 answers real questions   070-502 exam

NO.6 You have created a Windows Presentation Foundation application by using Microsoft .NET Framework
3.5. The application, named EnterpriseApplication.exe, runs over the network.
You add the WindowSize parameter and the WindowPosition parameter to the Settings.settings file by
using the designer at the User Scope Level. The dimensions and position of the window are read from the
user configuration file.
The application must retain the original window size and position for users executing the application.
You need to ensure that the following requirements are met:
?The window dimensions for each user are saved in the user configuration file.
?User settings persist when a user exits the application.
Which configuration setting should you use?
A. Private Sub OnClosing(ByVal sender As Object, ByVal e _
As System.ComponentModel.CancelEventArgs)
My.Settings.Default.WindowPosition = New Point(Me.Left, Me.Top)
My.Settings.Default.WindowSize = New Size(Me.Width, Me.Height)
My.Settings.Default.Save()
End Sub
B. Private Sub OnClosing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim appKey As RegistryKey = _
Registry.CurrentUser.CreateSubKey("Software\EnterpriseApplication")
Dim settingsKey As RegistryKey = _
appKey.CreateSubKey("WindowSettings")
Dim windowPositionKey As RegistryKey = _
settingsKey.CreateSubKey("WindowPosition")
Dim windowSizeKey As RegistryKey = _
settingsKey.CreateSubKey("WindowSize")
windowPositionKey.SetValue("X", Me.Left)
windowPositionKey.SetValue("Y", Me.Top)
windowSizeKey.SetValue("Width", Me.Width)
windowSizeKey.SetValue("Height", Me.Height)
End Sub
C. Private Sub OnClosing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim doc As New System.Xml.XmlDocument()
doc.Load("EnterpriseApplication.exe.config")
Dim nodePosition As System.Xml.XmlNode = _
doc.SelectSingleNode("//setting[@name='WindowPosition']")
nodePosition.ChildNodes(0).InnerText = String.Format("{0},{1}", _
Me.Left, Me.Top)
Dim nodeSize As System.Xml.XmlNode = _
doc.SelectSingleNode("//setting[@name='WindowSize']")
nodeSize.ChildNodes(0).InnerText = String.Format("{0},{1}", _
Me.Width, Me.Height)
doc.Save("UserConfigDistractor2.exe.config")
End Sub
D. Private Sub Window_Closing(ByVal sender As Object, ByVal e As _
System.ComponentModel.CancelEventArgs)
Dim sw As New StreamWriter("EnterpriseApplication.exe.config", True)
sw.WriteLine("<EnterpriseApplication.Properties.Settings>")
sw.WriteLine("<setting name=""WindowSize"" serializeAs=""String"">")
sw.WriteLine(String.Format("<value>{0},{1}</value>", Me.Width, _
Me.Height))
sw.WriteLine("</setting>")
sw.WriteLine("<setting name=""WindowPosition"" _
serializeAs=""String"">")
sw.WriteLine(String.Format("<value>{0},{1}</value>", Me.Left, _
Me.Top))
sw.WriteLine("</setting>")
sw.WriteLine("</UserConfigProblem.Properties.Settings>")
sw.Close()
End Sub
Answer: A

Microsoft   070-502   070-502 certification