Microsoft 70-482 - Advanced Windows Store App Development using HTML5 and JavaScript Exam

Page:    1 / 35   
Total 175 questions

You need to validate whether the additional video recording functionality for the Client app is supported.
Which code segment should you insert at line VD05?

  • A. var canFocus = videoDev.getEeviceProperty("focus");
  • B. var car.Zoom = videoDev.getEeviceProperty ("zoom") ;
  • C. var canPan = videoDev.pan.capabilities.supported;
  • D. var canPan = mediaCaptureSettings.pan.capabilities .supported;


Answer : C

You need to separate the business and complex logic into components.
Which actions should you perform? (Each correct answer presents part of the solution.
Choose all that apply.)

  • A. In the JavaScript code, register the handler for the extension/mime-type.
  • B. In the package.appxmanifest file, create an Extensions section and register the component .dll file.
  • C. In Windows Explorer, drag the component .dll file to the project bin directory.
  • D. In Microsoft Visual Studio Solution Explorer, right-click the References folder and then click Scope to This.


Answer : A,B

Explanation: A: In Microsoft Internet Explorer 4.0 and later, MIME type determination occurs in URL monikers through the FindMimeFromData method. Determining the MIME type allows URL monikers and other components to find and launch the correct object server or application to handle the associated conten
B:
* An application that registers a background task needs to declare the feature in the application manifest as an extension, as well as the events that will trigger the task. If you forget these steps, the registration will fail. There is no <Extensions> section in the application manifest of the Microsoft Visual Studio standard template by default, so you need to insert it as a child of the Application tag.
* You can implement Windows RunTime components for your apps, but you must register those components with the operating system for them to run correctly. To register a
Windows RunTime component, you must put the registration information in the WinMD files and in the app manifest. If a project implements a Windows RunTime component, the build output of the project will contain a WinMD file. Visual Studio extracts the Windows
RunTime registration information from the WinMD file and generates the appropriate
Extensions elements in the app manifest.
The system supports two forms of servers: .dll servers (in-process) and .exe servers (out- of-process). These servers require similar but different registration information that must be copied into the app manifest. Visual Studio supports generating manifest only for .dll servers, and the DLLServer extension is required to register .dll servers. The following values in the app manifest are taken from the WinMD files to construct the DLLServer
Extension:

DllPath -

ActivatableClassId -

ThreadingModel -
ActivatableClass (ActivatableClassId attribute)
Here's an example of the output XML:
<extension category=Microsoft.Windows.ActivatableClass>
<dllServer>
<dllPath>Fabrikam.dll</dllPath>
<activatableClass activatableClassId="Fabrikam.MyClass" threadingModel="sta" />
</dllServer>
</extension>

You need to handle the exception error in the clientData.js file.
What should you do?

  • A. Modify the display function to handle the error.
  • B. Insert a try statement immediately after line CD07 and a catch block immediately before line CD14. Handle the error in the catch block.
  • C. Modify the processError function to handle the error.
  • D. Insert a try statement immediately after line CD01 and a catch block immediately before line CD15. Handle the error in the catch block.


Answer : A

You need to complete the code to start the background task.
Which code segment should you insert at line BG07?

  • A. Windows.ApplicationModel.Background.SystemTriggerType.connectedStateChange, true
  • B. Windows.ApplicationModel.Background.SystemTriggerType.networkStateChange, false
  • C. Windows.ApplicationModel.Background.SystemTriggerType.sessionConnected, true
  • D. Windows.ApplicationModel.Background.SystemTriggerType.internetAvailable, false


Answer : D

You need to attach the background task.
Which code segment should you insert at line BG09?

  • A. var task = builder.setTrigger(this);
  • B. var task = builder.setTrigger( );
  • C. var task = builder.register ( );
  • D. var task = builder.register (this);


Answer : C

Page:    1 / 35   
Total 175 questions