PrepAway - Latest Free Exam Questions & Answers

What code should you add to the Click event of btnDownloadTours?

###BeginCaseStudy###
Case Study: 4
Fabrikam, Inc
Overview
Fabrikam, Inc. is a realtor in the United States.
Fabrikam grants its customers access to a web site, where they can search for houses for rent
and for sale. Its customers can enter basic requirements, such as location, number of rooms,
dimensions, and a price range. The web site displays a list of houses that meet the customers’
criteria. The customers can then view more details about each house and can add a listing to a
favorites list.
Requirements
Business Goals
Fabrikam plans to provide a more interactive experience for its customers. Fabrikam is
creating a video tour for each listing. The video tours can be used to visit the property
virtually.
Fabrikam plans to create a Windows Store app on Windows 8.1 RT and Windows 8.1 Pro
devices.
General Requirements
Fabrikam identifies the following general requirements for the app:
• The app interface must be available in English, Spanish, and French.

• The app must provide the customers with the ability to perform searches the
same way that the current web site does.
• It is expected that the customers will view more than 3,000 pictures annually.
The main page of the app must show a list of the last 10 pictures that were
viewed.
• If pictures are added to a listing that is in a customer’s favorites list, the
pictures must be downloaded automatically from Windows Azure. This must
occur if the app is suspended or not running.
Printing Requirements
Customers must be able to print the details of a listing from the details page by clicking a
button within the app.
You plan to add the following XAML markup to the listing details page:
<Button x:Name=”btnPrint Content=”Print” Click=”InvoicePrint” />.
Video Tour Requirements
Fabrikam identifies the following requirements for the video tours:
• Customers must be able to play the video tour on a different device by using a
button within the app.
• When a customer clicks the details of a listing, the app must start downloading
the video tour in the background.
• When the app starts, the app must verify whether there are any pending
downloads, and resume any paused downloads.
• The last five viewed video tours that are not on the customer’s favorites list
must be cached for subsequent viewing.
• Customers must be able to download all of the video tours for the properties
that they added to their favorites list.
• The property details page must contain a MediaElement control that will be
used to play the video tour of the property.
• When downloading the video tours, the app must remain responsive, and each
download must be processed on a separate thread.
Package.appxmanifest

###EndCaseStudy###

You add a button named btnDownloadTours to the search results page.
You create a method named DownloadTour to download video tours synchronously.
DownloadTour receives a single parameter of type integer, representing the ID of a video tour.
As customers add listings to their favorites list, the ID of the video tour is added to a collection
named selectedTours.
You need to implement the code required to download the video tour based on the video tour
requirements.
What code should you add to the Click event of btnDownloadTours? (More than one answer choice
may achieve the goal. Select the BEST answer.)

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
http://msdn.microsoft.com/en-us/library/system.threading.tasks.task(v=vs.110).aspx
http://msdn.microsoft.com/en-us/library/dd270695(v=vs.110).aspx


Leave a Reply