- (Topic 1)
You need to ensure that the Timeline app meets the XAML coding requirements.
In Settings.xaml, which markup segment should you select to replace the markup segment at line
AS06?
Correct Answer:
A
From scenario: All code and markup must conform to the following style guidelines:
✑ Use resource dictionaries for styles that are used more than once.
✑ Use built-in properties of existing panels instead of using separate style objects. XAML resources are objects that are referenced from markup more than once. Resources are defined in a ResourceDictionary, typically in a separate file or at the top of the markup page. In this scenario the ResourceDictionary is defined in the ResourceDictionery.xaml file.
You access members of the resource dictionary like any other dictionary.
DRAG DROP - (Topic 4)
You need to download the bank statements and alert the user when the download is complete.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Solution:
From Scenario:
The app must meet the following requirements related to user data and alerts:
You can run code in the background by writing classes that implement the IBackgroundTask interface.
If you run any asynchronous code in your background task, then your background task needs to use a deferral. If you don't use a deferral, then the background task process can terminate unexpectedly if the Run method completes before your asynchronous method call has completed.
Request the deferral in the Run method before calling the asynchronous method. Save the deferral to a global variable so it can be accessed from the asynchronous method. Declare the deferral complete after the asynchronous code completes.
Does this meet the goal?
Correct Answer:
A
- (Topic 2)
You have two Universal Windows Platform (UWP) apps named Catalog and Research, respectively.
You need to create a service in the Catalog app that can be queried by the Research app. Which three tasks should you perform? Each correct answer presents part of the solution.
Correct Answer:
BCF
F: Example: Add an app service extension to package.appxmanifest
In the AppServiceProvider project\'s Package.appxmanifest file, add the following AppService extension to the
B: Create the app service
An app service is implemented as a background task. This enables a foreground application to invoke an app service in another application to perform tasks behind the scenes. Add a new Windows Runtime Component project to the solution.
C: Deploy the service app and get the package family name
The app service provider app must be deployed before you can call it from a client. You will also need the package family name of the app service app in order to call it.
- (Topic 3)
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.
You must create a project for shared code.
Solution: You implement the shared code in a Class Library (Universal Windows). Does this meet the goal?
Correct Answer:
A
The .NET Framework Portable Class Library project type in Visual Studio helps you build cross-platform apps and libraries for Microsoft platforms quickly and easily.
Portable class libraries can help you reduce the time and costs of developing and testing code. Use this project type to write and build portable .NET Framework assemblies, and then reference those assemblies from apps that target multiple platforms such as Windows and Windows Phone.
Even after you create a Portable Class Library project in Visual Studio and start developing it, you can change the target platforms. Visual Studio will compile your library with the new assemblies, which helps you identify the changes you need to make in your code.
From scenario:
The app must be compatible with current and future XBOX apps that use C++.
HOTSPOT - (Topic 4)
You need to insert code at line CP15 to retrieve the account balance for a user.
How should you complete the relevant code? To answer, select the appropriate code segment from each list in the answer area.
Solution:
From scenario:
Users must be able to access accounts, view balances, view recent transactions, and deposit checks by using the UWP app.
Box 1: HttpClient
Box 2: GetAsync
Box 3: DataContractJsonSerializer
From scenario: Consume the JSON that the Fabrikam core web service provides.
Does this meet the goal?
Correct Answer:
A