Home > Android Programming > Quizzes > Android Security Essentials (AND-802) Practice Test 2
Android Security Essentials (AND-802) Practice Test 2
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “-getExternalFilesDir( ) method is used to get the directory of the external stor…”
Android Security Essentials (AND-802) Practice Test 2
Time left 00:00
25 Questions

1. In the following image of code, what is the purpose of using MODE_PRIVATE in the method getPreferences( )?
2. Complete the following blank area with one of the following choices: You can register your app with “Android Backup Service” at: https://developer.android.com/google/backup/signup.html and get “Android Backup Service key” for your application. This key will be added to …………………. tag with its attributes to add them to the manifest file in the next step.
3. -Your app receives location updates from NETWORK_PROVIDER or from GPS_PROVIDER. If your app receives location information from either of these location provider sources, you need to declare that the app uses these hardware features in your app manifest. Which of the following tags gives the location information to your app?
4. Android application developers can create custom permissions that should be labeled properly.
5. Which of the following choices is considered Android application storage?
6. Which level of permissions is related to READ_CALENDAR, WRITE_CALENDAR, CAMERA, and READ_CONTACTS?
7. Which of the following choices represent the flow of states of data within any app?
8. What is the purpose of adding the following permission tag to your app’s AndroidManifest.xml file? "
9. -24 The Logcat window in Android Studio displays system messages, such as when a garbage collection occurs, and messages that you added to your app with the Log class. It displays messages in real time and keeps a history so that you can view older messages.
10. Android uses “Intents” to communicate and send data between different components which make it vulnerable to malicious attacks. Which of the following choices are component- level Permissions to protect this type of communication?
11. Android stores cache files in the filesystem and sandboxes along with the application. Cache files are created under directory ……………………………………..
12. Permission is the right given to an application by Android to allow access to restricted system API (Application Programming Interface) such as Camera, Bluetooth, GPS, etc…
13. It is not necessary that every application installed on an Android device be signed by the developer before being published.
14. What is the result of click the Button1 in the code which is illustrated in the following image? Assuming that write_to_external_storage is the name of an activity that allows users to write to external storage.
15. Permissions required for an application to perform its operations are called application level permissions. Which are the types of application level permissions a developer can use?
16. The following image includes some components which you must be aware of to learn about the complexity of the security issue and the fact that software developers can only deal with security issues within their own applications. These components belong to ………………….
17. A digital certificate is an electronic “passport” that allows a person, computer or organization to exchange information securely over the Internet using the public key infrastructure (PKI).The message is encrypted with the Private key, and can only be decrypted with the Public key.
18. If you want to configure your app to receive an intent from another app, you should open AndroidManifest.xml file in your app, and then add …………………………………. including the name and category which will be used in the second app’s configuration.
19. -getExternalFilesDir( ) method is used to get the directory of the external storage.
20. If you are developing more than one application that is signed with the same certificate, and you want these applications to share access to each other’s data and run in the same process, you need to give them the same ………………
21. The following image includes a code of permission group. Where this code will be written in the Android app?
22. Which of the following choices is one of the different levels of permission protection?
23. Android SQLite database files are stored under the ………………………………… directory
24. Assume that you have two apps signed with the same certificate and you want them to share access to each other’s data. The manifest file in the first app is illustrated in the following image. It has shartedUserId =”com.sharedID.example” . Which of the following choices is the value of the shartedUserId in the second app?
25. During an application run-time, permissions may be enforced at a number of places when calling into the system, starting an activity, sending and receiving broadcasts, accessing and manipulating a content provider, and binding to or starting a service.