nerdexam
Microsoft

70-481 · Question #85

You are developing a Windows Store app that includes a handler for the onactivated event. A portion of the event handler is shown in the following code. (Line numbers are included for reference…

The correct answer is C. printManager.onprinttaskrequested = onPrint. See the full explanation below for the reasoning.

Question

You are developing a Windows Store app that includes a handler for the onactivated event. A portion of the event handler is shown in the following code. (Line numbers are included for reference only.) You need to ensure that the app responds to printing requests from the Devices charm. Which code segment should you insert at line 04?

Exhibit

70-481 question #85 exhibit

Options

  • AprintManager.printer.onprinttaskreguested = onPrint; printManager.printer.
  • BprintManager.onPrint = onPrint;
  • CprintManager.onprinttaskrequested = onPrint;
  • DprintManager.printer.showPrintUIAsync ();

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    85% (22)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 70-481 Practice