Android Storage Quiz Form
Test your knowledge of Android storage concepts. Answer all questions below.
Which storage type is private to the app and deleted when the app is uninstalled?
*
Internal storage
External storage
Shared preferences
Content provider
What permission is required to write files to external storage in Android 11 and above?
*
WRITE_EXTERNAL_STORAGE
READ_EXTERNAL_STORAGE
MANAGE_EXTERNAL_STORAGE
ACCESS_MEDIA_LOCATION
Which API is recommended for storing large binary files such as images or videos?
*
SharedPreferences
SQLiteDatabase
File API
Room Database
In Android,
Type of storage
storage is accessible to all apps and users.
Which method is used to get the directory for app-specific external files?
*
getExternalFilesDir()
getFilesDir()
getCacheDir()
getExternalStorageDirectory()
Select all storage options that require runtime permissions (select all that apply):
*
Internal storage
External storage
Shared preferences
MediaStore
What is the recommended way to cache temporary data in Android?
*
SharedPreferences
Internal cache directory
External storage
Room Database
Which of the following is NOT a valid use case for SharedPreferences?
*
Storing user login state
Saving app settings
Storing large images
Saving a boolean flag
What happens to files stored in getCacheDir() when the device runs low on storage?
*
They are permanently preserved
They may be deleted by the system
They are moved to external storage
They are encrypted automatically
Briefly explain the difference between internal and external storage in Android.
*
Submit Quiz
Should be Empty: