PrepAway - Latest Free Exam Questions & Answers

You need to enhance the performance of the GetLocationAsync() method of the app

###BeginCaseStudy###
Case Study: 2
Scenario Geese
Background
You are developing a Windows Store app. The app will allow ornithologists to photograph
migrating geese, taking note of the location, heading, and weather conditions at the time each
photo is taken.
BusinessRequirements
The app must adhere to the following requirements:
• Create and store photographs of migrating geese.
• Record the location and weather conditions where the photograph was taken.

• Record the heading and time that the photograph was taken.
• Allow the user to display the information on any device that supports the
PlayTo feature.
TechnicalRequirements
General:
The app must meet the following technical requirements:
• The app must store images and image metadata in the Pictures Library.
• The metadata logic must be encapsulated within a reusable component named
LogicComponent1.
• The metadata logic must be available to Windows Store apps written in Visual
Basic, C#, JavaScript, and C++.
Hardware:
• The app requires a device with camera, compass, and GPS features.
• The app requires a device with Internet capabilities.

###EndCaseStudy###

Users report performance issues when getting the location information associated with a photo. You
suspect the app is encountering performance issues in the GetLocationAsync() method of the
Environment class.
You need to enhance the performance of the GetLocationAsync() method of the app.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Remove the Compass initialization from the LoadSensors() method and initialize it within the
GetLocationAsync() method.

B.
set the ReportInterval property of the Compass object to 16.

C.
set the ReportInterval property of the Compass object to 0.

D.
Move the locator variable to a class level variable and initialize it in the Environment constructor.


Leave a Reply