Question: 1
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains n unique solution. Determine whether the solution meets the stated goals. You need to implement the appropriate XAML layout for the Timeline app. Solution: You create an instance of a StackPanel class.
Does this meet the goal?
A. Yes
B. No
Answer: B
Explanation:
StackPanel is a simple layout panel that arranges its child elements into a single line that can be oriented
horizontally or vertically. StackPanel controls are typically used in scenarios where you want to arrange a
small subsection of the UI on your page.
The following XAML shows how to create a vertical StackPanel of items.
XAML
<StackPanel>
<Rectangle Fill="Red" Height="44"/>
<Rectangle Fill="Blue" Height="44"/>
<Rectangle Fill="Green" Height="44"/>
<Rectangle Fill="Orange" Height="44"/>
</StackPanel>
Question: 2
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains n unique solution. Determine whether the solution meets the stated goals. You need to implement the appropriate XAML layout (or the Timeline app. Solution: You create an instance of a RelativePanel class. Does this meet the goal?
A. Yes
B. No
Answer: A
RelativePanel lets you layout UI elements by specifying where they go in relation to other elements and in relation to the panel. By default, an element is positioned in the upper left corner of the panel.
Question: 3
A. yes
B. No
Answer: B
Explanation: The OpenSequentialReadAsync() method opens a sequential-access stream over the current file for reading file contents.
Question: 4
You are developing a Universal Windows Platform (UWP) a pp. The app must be available on Windows Phone, Windows tablet devices, and Xbox. When the app is running on a device, you need to determine which members of a specific class you can use.
Which of the following methods should you use?
A. ApiInformation.IsPropertyPresent
B. UserInformation.NameAccessAllowed
C. Selector.GetIsSelectionActive
D. AppExtensionCatalog.FindAllAsync
Answer: D
Explanation: The AppExtensionCatalog class represents a device. This class allows access to wellknown device properties as well as additional properties specified during device enumeration. A Successful completion of FindAllAsync results in a DeviceInformationCollection containing DeviceInformation objects.
Question: 5
Note: This question it 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 are developing a Universal Windows Platform (UWP) app. Your app stores files on a user's device.
You need to be able to replace the existing files with new files generated by the user. Solution you run the StoragaFile.GetParentAsync method to get a reference to the existing file. Then, you run the StorageFile.CreateStreamedFileAsyne method to create the- new file at that same location. Does this meet the goal?
A. yes
B. No
Answer: A
Explanation: The GetParentAsync() method gets the parent folder of the current file. The CreateStreamedFileAsync method can be used to create a StorageFile that can be passed to other methods or passed to another app through app contracts.
Question: 6
You are developing a Universal Windows Platform (UWP) app that allows users to lake photos and record videos. The photos and videos must be stored in the user’s Photos library and Videos library, respectively. The app must not display a user interface for saving files. You need to configure the app. Which set of capabilities should you declare in the app manifest?
A. Internet (client), microphone, location and proximity
B. webcam, microphone, Pictures library and Video library
C. Internet (client), Documents library, Videos library, and proximity
D. webcam, location, proximity and Pictures library
Answer: B
Explanation: You must specify the webcam or microphone capabilities in your app manifest file if you are using MediaCapture to capture audio, photos, or video programmatically.
No comments:
Post a Comment