Echte Fragen 70-502 Microsoft Fragenkatalog

Echte Fragen 70-502 Microsoft Fragenkatalog

zertifizierung-Portal bietet qualitativ hochwertige Prüfungsfragen und Antworten für die Vorbereitung auf Ihre IT-Zertifizierungsprüfungen, die alle Examfragen und Examsantworten abdecken. Bei zertifizierung-portal.de stehen Ihnen zahlreiche kostenlose Zertifizierungsfragen von IT Prüfungen zur Verfügung. Die neuesten Unterlagen und Simulationssoftware bei zertifizierung-portal.de machen die IT Prüfungen ganz leicht für Sie. Im Falle eines Scheiterns erhalten Sie nämlich die Gebühr zurückerstattet

70-502 TS: Microsoft .NET Framework 3.5 – Windows Presentation Foundation IT Prüfung,IT Zertifizierung,Prüfungsfrage, originale Fragen,Antorten, Fragenkataloge,Prüfungsunterlagen, Prüfungsfragen, Prüfungsfrage, Testfagen, Testantworten, Vorbereitung, Zertifizierungsfragen, Zertifizierungsantworten, Examsfragen, Antworten, echte Fragen

Echte Fragen 70-502 Microsoft Fragenkatalog

QUESTION 1
You create an assembly by using Microsoft .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 Microsoft .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 Microsoft Visual Studio 2005 Publish Wizard.
D. Recompile the application by using a key file that is generated by the sn.exe file.

Answer: B

Echte Fragen 70-502 Microsoft Fragenkatalog