PrepAway - Latest Free Exam Questions & Answers

Which three code segments should you arrange in sequence at lines 03, 04, and 05?

DRAG DROP
You are developing a Windows Store app that writes data to a file.
You have the following requirements:
If a file exists with the same name, it should be overwritten by the new file.
The data must be stored in the app data folder.
The method is defined as follows. (Line numbers are included for reference only.)

You need to complete the method to meet the requirements.
Which three code segments should you arrange in sequence at lines 03, 04, and 05? (To answer,
move the appropriate code segment from the list of code segments to the answer area and arrange
them in the correct order.)

PrepAway - Latest Free Exam Questions & Answers

Answer: See the explanation

Explanation:
Box 1:

Box 2:

Box 3:

Note:
* Step 1: Local is meant to store assets in a local, application-specific folder.
* Step 2: ReplaceExisting. Need to replace existing file
* Step 3: Write text to your file by calling the WriteTextAsync methods of the FileIO class.
http://msdn.microsoft.com/en-us/library/windows/apps/windows.storage.fileio.writetextasync.aspx


Leave a Reply