nerdexam
Microsoft

70-355 · Question #52

70-355 Question #52: Real Exam Question with Answer & Explanation

Sign in or unlock 70-355 to reveal the answer and full explanation for question #52. The question stem and answer options stay visible for context.

Question

You create an image library app using the Universal Windows Platform (UWP). You want to use an in-app purchase to grant the user of your app access to an unlimited number of images. You need to write the code that will allow the user to make the purchase. Which code snippet should you use?

Options

  • Aasync void BuyUnlimited() { if (Nicense.ProductLicense === "unlimited") { await CurrentApp.RequestProductPurchaseAsync("unlimited"); } }
  • Basync void BuyUnlimited() { if (! (license.ProductLicenses.GetType() == "unlimited")) { await CurrentApp.RequestProductPurchaseAsync("unlimited"); } }
  • Casync void BuyUnlimited() { if ((license.ProductLicenses["unlimited"].IsConsumable) { await CurrentApp.RequestProductPurchaseAsync("unlimited"); } }
  • Dasync void BuyUnlimited() { if (! (Incense.ProductLicenses["unlimited"].IsActive)) { await CurrentApp.RequestProductPurchaseAsync("unlimited"); } }

Unlock 70-355 to see the answer

You've previewed enough free 70-355 questions. Unlock 70-355 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-355 Practice