MCQ King
Android Studio – 22 – Android Permissions
1 / 28
1. What are Android permissions used for?
2 / 28
2. How are permissions requested in an Android app?
3 / 28
3. What happens if an app requests a permission that the user denies?
4 / 28
4. Which component is responsible for requesting permissions in Android?
5 / 28
5. What is the purpose of the AndroidManifest.xml file in relation to permissions?
6 / 28
6. How can you check if a permission is granted in Android?
7 / 28
7. What is the primary purpose of the checkSelfPermission() method in Android?
8 / 28
8. How can you request a permission in an Android app using the ActivityCompat class?
9 / 28
9. What happens when the requestPermissions() method is called in Android?
10 / 28
10. What is the purpose of the onRequestPermissionsResult() method in Android?
11 / 28
11. How can you check if a permission is granted in the onRequestPermissionsResult() method?
12 / 28
12. What is the primary purpose of the shouldShowRequestPermissionRationale() method in Android?
13 / 28
13. What does the shouldShowRequestPermissionRationale() method return if the user denied a permission previously?
14 / 28
14. What is a dangerous permission in Android?
15 / 28
15. What is the purpose of the requestPermissions() method in Android?
16 / 28
16. Which Android version introduced the concept of runtime permissions?
17 / 28
17. What happens when an app targets an Android version prior to Android 6.0 (Marshmallow)?
18 / 28
18. How can you check if a permission is granted at runtime in Android?
19 / 28
19. What is the primary purpose of the checkPermission() method in Android?
20 / 28
20. Which of the following is NOT a common dangerous permission in Android?
21 / 28
21. What is the purpose of the READ_CONTACTS permission in Android?
22 / 28
22. How can you handle cases where a permission is denied in Android?
23 / 28
23. What is the primary purpose of explaining the need for a permission to the user?
24 / 28
24. How can you provide an explanation for a permission request in Android?
25 / 28
25. Which method is commonly used to display a dialog explaining the need for a permission?
26 / 28
26. What is the purpose of the showPermissionExplanationDialog() method?
27 / 28
27. How can you navigate to the app settings to manually grant a permission?
28 / 28
28. What is the primary purpose of manually granting a permission in the app settings?
Your score is
Restart quiz