PrepAway - Latest Free Exam Questions & Answers

Tag: Exam 70-485 (update June 2nd, 2016)

Exam 70-485: Advanced Windows Store App Development Using C# (update June 2nd, 2016)

You need to reference the reusable WinMD project

###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###

You need to reference the reusable WinMD project.
What should you do?

Which interface should you use for the return type of the method?

###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###

You need to modify the code at line CE38 to meet the requirements.
Which interface should you use for the return type of the method?\

Which code snippets should you include in Target 1 and Target 2 to complete the code?

###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###

DRAG DROP
You need to allow users to capture video instead of photos.
You have the following code:

Which code snippets should you include in Target 1 and Target 2 to complete the code? (To answer,
drag the appropriate code snippets to the correct targets in the answer area. Each code snippet 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.)

Which protection descriptor should you use for the DataProtectionProvider object?

###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.

• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es

Auditor.cs

ContentPage.es

Book.cs

Book.cs

SocialPost.es

Pagel.xaml.es

App.xaml.cs

###EndCaseStudy###

You need to protect the metadata for the secure documents.
Which protection descriptor should you use for the DataProtectionProvider object?

Which code segment should you use?

###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.

• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es

Auditor.cs

ContentPage.es

Book.cs

Book.cs

SocialPost.es

Pagel.xaml.es

App.xaml.cs

###EndCaseStudy###

Exceptions occur when the WriteAuditAsync() method of the Auditor object is run.
The UI must remain responsive to user actions.
You need to handle the exceptions.
Which code segment should you use?

Which three actions should you perform in sequence?

###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.

• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es

Auditor.cs

ContentPage.es

Book.cs

Book.cs

SocialPost.es

Pagel.xaml.es

App.xaml.cs

###EndCaseStudy###

DRAG DROP
You need to add a Print button to the app.
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.)

Which statement sets the appropriate task entry point at line PG19?

###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.

• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es

Auditor.cs

ContentPage.es

Book.cs

Book.cs

SocialPost.es

Pagel.xaml.es

App.xaml.cs

###EndCaseStudy###

You need to register the SocialPoller background task in the constructor of the Page1 class.
Which statement sets the appropriate task entry point at line PG19?

Which lines of code should you use for the production app?

###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.

• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es

Auditor.cs

ContentPage.es

Book.cs

Book.cs

SocialPost.es

Pagel.xaml.es

App.xaml.cs

###EndCaseStudy###

You need to deactivate features of the app when it runs as a trial.
Which lines of code should you use for the production app? (Each correct answer presents part of
the solution. Choose all that apply.)

Which lines of code should you use at line PG33?

###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.

• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es

Auditor.cs

ContentPage.es

Book.cs

Book.cs

SocialPost.es

Pagel.xaml.es

App.xaml.cs

###EndCaseStudy###

You need to set the default print options according to the requirements.
Which lines of code should you use at line PG33? (Each correct answer presents part of the solution.
Choose all that apply.)

Which four lines of code should you use to create the Run() method on line SP13?

###BeginCaseStudy###
Case Study: 3
E-reader app
Background
You are developing a Windows Store style e-reader app.
Business Requirements
• Users must be able to upload e-books and documents and download them to ereader devices.
• Users must be able to set a password to restrict access to their e-books and
documents.
• Users must be able to create and store encrypted metadata about their e-books
and documents.
• The app must replace system-generated error messages with custom-defined
messages. These custom messages must come from a list of approved text.
• User actions such as printing pages, saving users’ current locations in
documents, and taking notes should be enabled from buttons on an AppBar
control.

• The app must provide trial functionality that will expire after 14 days. If the
app expires while it is running, the app must display an expiration message to
the user and prompt the user to purchase the app.
Technical Requirements
General:
• Configuration files must be read-only. All user settings must be stored in the
Contoso Settings Service.
• The SocialPoller background task must run the code in the DoWork() method
to collect content from the Contoso feed.
• The UI must always remain responsive to user actions.
Security
• Secured e-book and document passwords must to be encrypted so that only the user
who created the passwords can retrieve the metadata associated to the e-books and
documents.
• The system must log all exceptions through the auditing object and notify technicians
of the issue.
Storage:
• The app must cache the next two chapters to the local device for users to read
while disconnected from the network. This cache must be persisted if a reboot
is performed.
• User state such as the current location in an e-book or document must be
stored in the Microsoft SQL Azure database.
• User settings such as font sizes and colors must be stored through the Contoso
Settings Service.
Network:
• Communication between the app and e-book vendors must occur over an
encrypted communication channel.
• Communication must use certificates to enable the SSL connection.
Trial Functionality:
• The isPrintEnabled variable must determine if the user can print.
• The isMarketEnabled variable must determine if the user can use the
marketplace.
• The isTrialEnabled variable must determine if the application is still in trial
mode.
Printing:
• The default printing options are portrait orientation and grayscale color mode.
• The app must enable the user to select the media size and printing orientation.
SocialPoller.es

Auditor.cs

ContentPage.es

Book.cs

Book.cs

SocialPost.es

Pagel.xaml.es

App.xaml.cs

###EndCaseStudy###

DRAG DROP
You need to call the DoWork() method asynchronously in a background task.
Which four lines of code should you use to create the Run() method on line SP13? (To answer, move
the appropriate lines of code from the list of code segments to the answer area and arrange them in
the correct order.)


Page 4 of 17« First...23456...10...Last »