nerdexam
Microsoft

70-491 · Question #53

You are developing a Windows Store app that accesses a USB Human Interface Device (HID). The app has a default page and a settings page. You need to ensure that when a user connects the USB device…

The correct answer is A. Override the OnLaunched method in the Application class and use the D. Override the OnActivated method in the Application class and use the ActivatedEventArgs. See the full explanation below for the reasoning.

Question

You are developing a Windows Store app that accesses a USB Human Interface Device (HID). The app has a default page and a settings page. You need to ensure that when a user connects the USB device, the app starts automatically and opens the settings page. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AOverride the OnLaunched method in the Application class and use the
  • BAdd a File Type Associations declaration to the app manifest.
  • CAdd a Removable Storage capability to the app manifest.
  • DOverride the OnActivated method in the Application class and use the ActivatedEventArgs
  • EAdd an AutoPlay Device declaration to the app manifest.

How the community answered

(58 responses)
  • A
    76% (44)
  • B
    14% (8)
  • C
    3% (2)
  • E
    7% (4)

Community Discussion

No community discussion yet for this question.

Full 70-491 Practice