How should you complete the relevant code?
DRAG DROP
You develop an application that displays information from log files when errors occur. The
application will prompt the user to create an error report that sends details about the error
and the session to the administrator.
When a user opens a log file by using the application, the application throws an exception
and closes.
The application must preserve the original stack trace information when an exception occurs
during this process.
You need to implement the method that reads the log files.
How should you complete the relevant code? (To answer, drag the appropriate code
segments to the correct locations in the answer area. Each code segment 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 code segment should you use?
You are developing a Windows Store app by using JavaScript. The app persists a list of
stocks in the app’s settings. The stock list is identified by a key of stockList.
The app must allow users to remove their stock lists from the app’s settings. The following
function call removes the stockList setting:
deleteAppSetting(“stockList”) ;
You need to remove only stockList from the settings storage without disrupting other settings.
Which code segment should you use?
Which code segment should you insert at line 04?
You are developing a C# application that has a requirement to validate some string input
data by using the Regex class.
The application includes a method named ContainsHyperlink. The ContainsHyperlink()
method will verify the presence of a URI and surrounding markup.
The following code segment defines the ContainsHyperlink() method. (Line numbers are
included for reference only.)
The expression patterns used for each validation function are constant.
You need to ensure that the expression syntax is evaluated only once when the Regex
object is initially instantiated.
How should you complete the relevant code?
DRAG DROP
You are developing an application that implements a set of custom exception types. You
declare the custom exception types by using the following code segments:
The application includes a function named DoWork that throws .NET Framework exceptions
and custom exceptions.
The application contains only the following logging methods:
The application must meet the following requirements:
When AdventureWorksValidationException exceptions are caught, log the information by
using the static void Log (AdventureWorksValidationException ex) method.
When AdventureWorksDbException or other AdventureWorksException exceptions are
caught, log the information by using the static void I oq( AdventureWorksException ex)
method.
You need to meet the requirements.
How should you complete the relevant code? (To answer, drag the appropriate code
segments to the correct locations in the answer area. Each code segment 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 code segment should you use?
Which two actions should you perform?
You are developing an application by using C#.
You have the following requirements:
Support 32-bit and 64-bit system configurations.
Include pre-processor directives that are specific to the system configuration.
Deploy an application version that includes both system configurations to testers.
Ensure that stack traces include accurate line numbers.
You need to configure the project to avoid changing individual configuration settings every
time you deploy the application to testers.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)
How should you complete the relevant code?
HOTSPOT
You are developing a Windows Store app by using JavaScript. The app will be used to
create video blogs. The app uses the device’s internal camera.
The app must meet the following requirements:
Allow the user to record audio and video.
Save files in the .mp4 file format.
Store files in the user’s Videos library.
You need to ensure that the app meets the requirements.
How should you complete the relevant code? (To answer, select the correct code segment
from each drop-down list in the answer area.)
Which code segment should you insert at line 16?
You are developing a method named CreateCounters that will create performance counters
for an application.
The method includes the following code. (Line numbers are included for reference only.)
You need to ensure that Counter1 is available for use in Windows Performance Monitor
(PerfMon).
Which code segment should you insert at line 16?
How should you complete the relevant code?
HOTSPOT
You are developing a Windows Store app by using JavaScript. The app will be used in
multiple geographic regions.
You need to ensure that the app displays dates in the region-specific full date format.
How should you complete the relevant code? (To answer, select the correct code segment
from each drop-down list in the answer area.)
Which algorithm should you use?
You are developing an application that will transmit large amounts of data between a client
computer and a server.
You need to ensure the validity of the data by using a cryptographic hashing algorithm.
Which algorithm should you use?