Which of the following correctly completes the statement below to instantiate a SharedPreferences object?
SharedPreferences sharedPref =
a. PreferenceManager.getDefaultSharedPreferences(this);
b. SharedPreferences.PreferenceManager.getDefault(this);
c. SharedPreferences.getDefaultPreferenceManager(this);
d. PreferenceManager.SharedPreferences.getDefault(this);
Answer: a. PreferenceManager.getDefaultSharedPreferences(this);