Which code segment should you insert at line 04?
You are implementing a method named FloorTemperature that performs conversions
between value types and reference types. The following code segment implements the
method. (Line numbers are included for reference only.)
You need to ensure that the application does not throw exceptions on invalid conversions.
Which code segment should you insert at line 04?
Which code segment should you insert at line 03?
You are developing a Windows Store app. You are adding print capabilities to the app. The
app includes the following JavaScript code segment. Line numbers are included for
reference only.
The app must display only the following printer options:
Number of copies
Single-sided or double-sided printing
You need to configure the printing capabilities for the app.
Which code segment should you insert at line 03?
How should you complete the relevant code?
HOTSPOT
You are developing a Windows Store app by using HTML5 and JavaScript. The app will be
used in multiple geographic regions.
The default.html file contains the following code segment:
The resources.resjson file contains the English (en-US) resources shown in the following
code segment:
The app must access string resources from the resources.resjson file. The data-win-res
attribute must be configured in the default.html file to globalize the app.
You need to modify the code segment to ensure that the app can be localized with minimum effort.
How should you complete the relevant code? (To answer, select the correct code segment
from each drop-down list in the answer area.)
Which type of testing should you use to achieve each objective?
DRAG DROP
You are developing a Windows Store app.
You need to design a testing strategy.
Which type of testing should you use to achieve each objective? To answer, drag the
appropriate testing types to the correct targets. Each technology 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 an application that uses structured exception handling. The application
includes a class named Logger. The Logger class implements a method named Log by
using the following code segment:
public static void Log(Exception ex) { }
You have the following requirements:
Log all exceptions by using the Log() method of the Logger class.
Rethrow the original exception, including the entire exception stack.
You need to meet the requirements. Which code segment should you use?
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 ContosoValidationException exceptions are caught, log the information by using the
static void Log (ContosoValidationException ex) method.
When ContosoDbException or other ContosoException exceptions are caught, log the
information by using the static void Log(ContosoException 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.)
You need to complete the certificate enrollment
You are developing a Windows Store app by using JavaScript. The app will be installed on
five devices. The app will use certificates to secure communications between the five
devices.
Information sent through the app must be decrypted only by the intended recipient device.
You need to complete the certificate enrollment.
What should you do?
How should you complete the relevant code?
DRAG DROP
You are developing a Windows Store app that streams photos to and from any Windowscompliant device on the same network.
You need to configure the Play To receiver.
How should you complete the relevant code? To answer, drag the appropriate code
segments to the correct targets. 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.
You need to add a book to the BookTracker instance
How should you complete the relevant code?
DRAG DROP
You are developing an application that will include a method named GetData. The GetData()
method will retrieve several lines of data from a web service by using a
System.IO.StreamReader object.
You have the following requirements:
The GetData() method must return a string value that contains the entire response from the
web service.
The application must remain responsive while the GetData() method runs.
You need to implement the GetData() method.
How should you complete the relevant code? (To answer, drag the appropriate objects to the
correct locations in the answer area. Each object 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.)