Welcome to the “Android In-App Billing” Quiz! This quiz is designed to test your understanding of the key concepts, practices, and technical details involved in integrating in-app purchases into Android applications. You’ll explore topics like setting up in-app billing, creating products and subscriptions, managing purchase flows, and handling the Google Play Billing Library. Whether you’re a developer looking to implement in-app purchases or simply want to deepen your knowledge of Android’s monetization strategies, this quiz will help reinforce your learning.
1.
What is the purpose of the queryProductDetailsAsync() method?
2.
Which method is used to query the purchase history of a user?
3.
Which method is used to initialize a connection to the Google Play Billing Library?
4.
What is a consumable product in the context of in-app purchases?
5.
What is the purpose of a PurchasesUpdatedListener in in-app purchasing?
6.
Why is it important to secure the keystore file used in in-app billing?
7.
What must be done when a consumable product is used up by the user?
8.
What happens if a user tries to repurchase a non-consumable item?
9.
What must be done before enabling in-app purchasing in an Android app?
10.
Which of the following is true about the billing client's onBillingServiceDisconnected() method?
11.
Which library must be added to an Android project to enable in-app purchasing?
12.
What role does a BillingClient instance play in in-app purchasing?
13.
What is the difference between managed products and subscriptions?
14.
How can you check for previous purchases made by a user?
15.
What is the primary purpose of in-app purchasing in Android apps?
16.
How can you ensure that a purchase is acknowledged to prevent refunds?
17.
What does a purchase's purchaseState indicate?
18.
Which type of product requires the enablePendingPurchases() method during initialization?
19.
What does the BillingFlowParams instance contain when starting a purchase?
20.
Which method initiates the purchase flow in an Android app?