Microsoft MCTS 70-502

Microsoft MCTS 70-502

Access Routing and LAN Switching;Advanced Routing and Switching;APE;APE for Validating Knowledge;Architecture;
CCDA;CCDE; CCDP;CCENT;CCIE;CCIE Data Center;CCIP; CCNA;
CCNA Security;CCNA Wireless;CCNA Voice;CCNP;CCNP Data Center
;CCNP Service Provider; CCNP Wireless;CCNP Security;CCNP SP Operations; CCNP Voice;CCSP;CCVP;Cisco Express Foundation Field Specialist;Cisco Security Sales Specialist;Cisco Specialist;Cisco Virtual Classroom;Connected Grid;Content Networking;Data-Center;Field Technician;IP Communications;IronPort; Network Management; Optical;Others
;Proctored Exams for Validating Knowledge;Sales Expert; Security Specialist;Service Provider Video;SMB;SP Video
;Storage Networking; Substation Automation;TelePresence Video
;Unified Communications;VPN and Security; WAASSE; Wireless LAN

70-502 TS: .NET Framework 3.5 – Windows Presentation Foundation Der einfachste Weg für die IT-Prüfung vorzubereiten, ist die Praxis-Tests auf Zertifizierungsprüfung Muster zu nehmen und zu verstehen, die richtige sowie falsche Antwort Erklärungen Deine Zweifel klären. Lesen Sie dazu auch relevante technische Artikel zu versierter in der damit verbundenen Technologie.

Microsoft MCTS 70-502

QUESTION 1
You create an assembly by using .NET Framework 3.5.
The assembly creates a new text file in the root of the C: drive. The assembly will be used in a Windows Presentation Foundation standalone application. The assembly will also be used in a Windows Presentation Foundation XAML Browser Application (XBAP).
The assembly contains the following code segment.
(Line numbers are included for reference only.)

01 public void Save()
02 {
03
04 FileStream stream = File.Create(“c:\newfile.txt”);
05 try
06 {
07 StreamWriter writer = new StreamWriter(stream);
08 try
09 {
10 writer.WriteLine(“Bew line in text file”);
11 }
12 finally
13 {
14 writer.Dispose();
15 }
16 }
17 finally
18 {
19 stream.Dispose();
20 }
21
22 }

You need to ensure that the assembly functions without propagating errors in both standalone and XBAP applications.
What should you do?

A. Configure the assembly to use the Nothing Permission set.
B. Configure the assembly to use the Partial Trust Permission set.
C. Demand the FileIOPermissionAccess.Write permission in line 03 and add an exception handler at line 21.
D. Demand the FileIOPermissionAccess.Append permission in line 03 and add an exception handler at line 21.

Answer: C

QUESTION 2
Your company has deployed a Windows Presentation Foundation application on client computers by using the ClickOnce technology.
The application interrupts the users in their tasks by prompting them to look for updates. You need to ensure that the application automatically detects updates without blocking the users interaction with the application.
What should you do?

A. Call the ApplicationDeployment.CheckForUpdate() function from the startup routine of the application.
B. Add an expiration element to the deployment manifest file. Set the maximumAge attribute to 24 and the unit attribute to hour.
C. Add the beforeApplicationStartup element to the deployment manifest file.
Configure a schedule job to launch another instance of the application in the background once a day.
D. Add a System.Windows.Threading.DispatcherTimer object and the ApplicationDeployment.CheckForUpdateAsync() function to the code-behind file.
Set the Interval property of the System.Windows.Threading.DispatcherTimer object to 1 day.

Answer: D

QUESTION 3
You create a Windows Presentation Foundation application by using .NET Framework 3.5.
You perform the following two tasks:
Use a digital certificate that is generated by an internal certificate authority (CA) to sign the application.
Store the application files on a central Web site.
You instruct the users to access the Web site and start the application by using the ClickOnce technology. The users report that their attempts to start the application fail.
You need to ensure that the users can use the application.
What should you do?

A. Deploy the digital certificate on the Trusted Publisher store of the Web server.
B. Deploy the digital certificate on the Trusted Publisher store of each client computer.
C. Redeploy the application by using Visual Studio 2005 Publish Wizard.
D. Recompile the application by using a key file that is generated by the sn.exe file.

Answer: B

Microsoft MCTS 70-502