PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

You need to generate the required test result files

###BeginCaseStudy###
Case Study: 4
Scenario 4
Application Information
You are developing a Windows Store app by using JavaScript. The app is named Print Near
Me. The app will allow mobile users to find printers in their local area that subscribe to the
Print Near Me network.
The Print Near Me app collects status data from subscribed networks, coordinates this data
with the status of printers that are listed in the central Print Near Me service, and displays the
closest locations that meet a user’s printing requirements. The locations are identified by
pinpoints on a map. The app uses a Printer Survey background task to populate the map.
The Print Here feature communicates with the central Print Near Me web server and nearby
printers, and generates custom printer interfaces based on the available printers. The printer
interfaces require complex calculations that involve repeated communications between the
app and the central web server, and may result in high memory usage.
Printer providers may indicate whether a subscribed printer is available to the network or
unavailable at any time.
Business Requirements
You have the following business requirements:
• Printer providers must have the option to approve users for each printer
through instant messaging or email.
• When a user launches the Print Near Me app, the Printer Survey task must
initiate communication between the app and the central web server to populate
the map.
• Map pinpoints must be displayed as follows:
o If the printer is available and does not require permission to print, display a
green pinpoint.
o If the printer is available and requires permission to print, display a yellow
pinpoint.
o If there is a printer or network status error, display a red pinpoint.
• Users must be able to initiate printing to a nearby printer by clicking or
tapping the printer’s pinpoint and then clicking Print Here.
Technical Requirements
You have the following technical requirements:
• The Print Here feature must run in a background process.
• The Printer Support feature must log and dispatch error messages.
o Log error messages locally.
o When the network is available, synchronize data with the central Print
Near Me web server.
• Background task events must be logged locally.

• The printer interface calculations must use the Printer Survey task for
communication to all sources.
• The Printer Survey task must push data to the app when the app is available.
Testing Requirements
You have the following testing requirements:
• Simulate user interactions in the app as part of the tests.
• Test the app performance on a variety of devices that have different
capabilities, such as processing speed and screen resolution.
• Generate a file on each device for analysis in Microsoft Visual Studio.
(Devices will not have Visual Studio installed.)
• Identify the app components that are called most frequently and that use the
most CPU resources.
• Ensure that the app detects the location of all printers and consistently reports
loss of connection.
printNearMe.js

printerSurvey.js

printDriver.js

###EndCaseStudy###

You need to generate the required test result files.
What should you do?

You need to add the following code to the method: At which line should you insert the code?

You are developing an application in C#.
The application uses exception handling on a method that is used to execute mathematical
calculations by using integer numbers.
You write the following catch blocks for the method (line numbers are included for reference only):

You need to add the following code to the method:

At which line should you insert the code?

Which code segment should you insert at line PM31?

###BeginCaseStudy###
Case Study: 4
Scenario 4
Application Information
You are developing a Windows Store app by using JavaScript. The app is named Print Near
Me. The app will allow mobile users to find printers in their local area that subscribe to the
Print Near Me network.
The Print Near Me app collects status data from subscribed networks, coordinates this data
with the status of printers that are listed in the central Print Near Me service, and displays the
closest locations that meet a user’s printing requirements. The locations are identified by
pinpoints on a map. The app uses a Printer Survey background task to populate the map.
The Print Here feature communicates with the central Print Near Me web server and nearby
printers, and generates custom printer interfaces based on the available printers. The printer
interfaces require complex calculations that involve repeated communications between the
app and the central web server, and may result in high memory usage.
Printer providers may indicate whether a subscribed printer is available to the network or
unavailable at any time.
Business Requirements
You have the following business requirements:
• Printer providers must have the option to approve users for each printer
through instant messaging or email.
• When a user launches the Print Near Me app, the Printer Survey task must
initiate communication between the app and the central web server to populate
the map.
• Map pinpoints must be displayed as follows:
o If the printer is available and does not require permission to print, display a
green pinpoint.
o If the printer is available and requires permission to print, display a yellow
pinpoint.
o If there is a printer or network status error, display a red pinpoint.
• Users must be able to initiate printing to a nearby printer by clicking or
tapping the printer’s pinpoint and then clicking Print Here.
Technical Requirements
You have the following technical requirements:
• The Print Here feature must run in a background process.
• The Printer Support feature must log and dispatch error messages.
o Log error messages locally.
o When the network is available, synchronize data with the central Print
Near Me web server.
• Background task events must be logged locally.

• The printer interface calculations must use the Printer Survey task for
communication to all sources.
• The Printer Survey task must push data to the app when the app is available.
Testing Requirements
You have the following testing requirements:
• Simulate user interactions in the app as part of the tests.
• Test the app performance on a variety of devices that have different
capabilities, such as processing speed and screen resolution.
• Generate a file on each device for analysis in Microsoft Visual Studio.
(Devices will not have Visual Studio installed.)
• Identify the app components that are called most frequently and that use the
most CPU resources.
• Ensure that the app detects the location of all printers and consistently reports
loss of connection.
printNearMe.js

printerSurvey.js

printDriver.js

###EndCaseStudy###

You need to ensure that the Printer Survey task populates the map pinpoints according to
the requirements.
Which code segment should you insert at line PM31?

Which two code segments can you use to achieve this goal?

You are implementing a method named GetValidPhoneNumbers. The
GetValidPhoneNumbers() method processes a list of string values that represent phone numbers.
The GetValidPhoneNumbers() method must return only phone numbers that are in a valid format.
You need to implement the GetValidPhoneNumbers() method.
Which two code segments can you use to achieve this goal? (Each correct answer presents
a complete solution. Choose two.)

Which four code segments should you insert in sequence at line 03?

DRAG DROP
You are developing an application that will write data to a file. The application includes the
following code segment. (Line numbers are included for reference only.)
You need to ensure that the WriteData() method will write data to a file.
Which four code segments should you insert in sequence at line 03? (To answer, move the
appropriate code segments from the list of code segments to the answer area and arrange
them in the correct order.)

which form should you implement the rate member?

You are creating a class named Loan.
The Loan class must meet the following requirements:
Include a member that represents the rate for a Loan instance.
Allow external code to assign a value to the rate member.
Restrict the range of values that can be assigned to the rate member.
You need to implement the rate member to meet the requirements.
In which form should you implement the rate member?