HOTSPOT - (Topic 1)
You need to properly handle the size of the user interface objects.
How should you complete the method? To answer, select the appropriate code segment from each list in the answer area.
NOTE: Each correct selection is worth one point.
Solution:
From scenario:
UI controls must be smaller and spaced closer together if there is a mouse or stylus available.
UI controls must be larger and spaced farther apart if the device supports touch and there is no mouse or pointer available.
Box 1: MouseCapabilities pd = new Windows.Devices.Input.MouseCapabilities();
The Windows.Devices.Input namespace contains the MouseCapabilities class used to retrieve the properties exposed by one or more connected mice. Just create a new MouseCapabilities object and get the properties you're interested in.
Box 2: int pointer = pd.MousePresent; Example:
MouseCapabilities mouseCapabilities = new Windows.Devices.Input.MouseCapabilities(); MousePresent.Text = mouseCapabilities.MousePresent != 0 ? "Yes" : "No";
Box 3: if (pointer == 1)
This is true if a mouse is present.
Does this meet the goal?
Correct Answer:
A
DRAG DROP - (Topic 4)
You need to insert code at line BT19 to configure the trigger to meet the technical requirements for User Data and Alerts.
How should you complete the code segment? To answer, drag the appropriate code segments to the correct location or locations. Each code segments may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Solution:
Box 1: TimeTrigger
Box 2: false
TimeTrigger(UInt32, Boolean) initializes a new instance of a time event trigger. Syntax: public TimeTrigger(UInt32 freshnessTime, Boolean oneShot)
Parameters freshnessTime UInt32
Specifies the number of minutes to wait before scheduling the background task. The system schedules the task within 15 minutes after freshnessTime elapses. If the OneShot property is false, freshnessTime specifies the interval between recurring tasks.
oneShot Boolean
True if the time event trigger will be used once; false if it will be used each time freshnessTime elapses
Does this meet the goal?
Correct Answer:
A
DRAG DROP - (Topic 4)
You need to launch the authentication app.
How should you complete the relevant code? To answer, drag the appropriate code segments to the correct location or locations. Each code segments may be used once,
more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
Solution:
Box 1: Uri
Box 2: UriKind.Relative
Box 3: Launcher.LaunchUriAsync
The Uri Constructor (Uri,Uri) initializes a new instance of the Uri class based on the combination of a specified base Uri instance and a relative Uri instance.
Syntax: public Uri( Uri baseUri,
Uri relativeUri
)
Example to launch to URI:
var success = await Windows.System.Launcher.LaunchUriAsync(uri);
Does this meet the goal?
Correct Answer:
A
- (Topic 3)
You are a developer for LitWare,Inc.’Universal Windows Platform (UWP) app. Access to the hardware within the app is not functioning correctly.
You need to add the capabilities to the package.appmanifest file. Which markup segment should you insert at line PM16?
Correct Answer:
D
From scenario:
✑ The app must use the microphone and webcam to support audio and video
recording. In addition, the app must support the use of the back and camera buttons, if present.
✑ Users must be able to record videos and view them in their videos library.
HOTSPOT - (Topic 2)
You are developing a Universal Windows Platform (UWP) app by using XAML and C#. A team member has written a XAML page that includes a button with an event handler method named ButtonSendNotification_Click() registered to the Click event.
You are reviewing the following code segment written by the team member (line numbers are added for reference only):
< ><>>>< >
Solution:
Box 1: No
There are four tile sizes: small, medium, wide, large. Only three are reference in the TileNofitication definition.
Box 2: Yes
Box 3: No
Box 4: No
Line 42 is doc.LoadXml(xml);
The LoadXml method loads an XML document from a string. Returns TRUE on success or FALSE on failure.
If called statically, returns a DOMDocument or FALSE on failure.
If an empty string is passed as the source, a warning will be generated. This warning is not generated by libxml and cannot be handled using libxml's error handling functions.
Does this meet the goal?
Correct Answer:
A