prefs.edit().clear().apply() will:

  1. Remove only the username
  2. Encrypt the file
  3. Remove all keys in that preferences file
  4. Delete the app
Answer

C) Remove all keys in that preferences file

clear() removes all entries.

Computer Science MCQ · More Lab: SharedPreferences MCQs · Practise