Which code segment should you use?
What is the output value?
You develop a Windows Store app that consumes a WinMD component from
Contoso.Class1. Class1 contains an overloaded method named GetValue. The method
overloads have the characteristics described in the following table.
The app includes the JavaScript code shown in the following code segment.
You need to correctly evaluate the output of the myOutput.innerHTML attribute.
What is the output value?
What are two possible ways to achieve this goal?
You are testing an application. The application includes methods named CalculateInterest
aid LogLine. The CalculateInterest () method calculates loan interest. The LogLine() method
sends diagnostic messages to a console window.
The following code implements the methods. (Line numbers are included for reference only.)
You have the following requirements:
The Calculatelnterest() method must run for all build configurations.
The LogLine() method must run only for debug builds.
You need to ensure that the methods run correctly.
What are two possible ways to achieve this goal? (Each correct answer presents a complete
solution. Choose two.)
You need to specify that the app will use the custom control panel
You are developing a Windows Store app that will access a device’s webcam.
The app will use a custom control panel to enable camera modifications.
You need to specify that the app will use the custom control panel.
What should you do in the Visual Studio IDE?
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 Counter2 is available for use in Windows Performance Monitor
(PerfMon).
Which code segment should you insert at line 16?
You need to design the background task to provide up-to-date information and to minimize system resource requi
You are developing a Windows Store app by using JavaScript. The app will track oil prices,
The app must display oil prices on the lock screen and continue to run while dormant.
You plan to use a background task to refresh oil prices in the app.
You need to design the background task to provide up-to-date information and to minimize
system resource requirements.
What should you do?
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?
Which two device classes should you include?
You are developing a fitness app for distribution through the Windows Store.
The app must interact with the following USB device classes:
• Webcam
• Infrared thermometer
• Scale
• Printer
You need to modify the app manifest file as required to support the devices.
Which two device classes should you include? Each correct answer presents part of the
solution.
Which garbage collector method should you use?
You are developing an application by using C#.
The application includes an object that performs a long running process.
You need to ensure that the garbage collector does not release the object’s resources until
the process completes.
Which garbage collector method should you use?
Which three actions should you perform?
You develop a Windows Store app that allows users to share pictures with friends. You
submit the app to the Windows Store.
You need to implement a privacy policy for the app.
Which three actions should you perform? Each correct answer presents part of the solution.