Multiple choice technology operating systems

In Android, which Statement is used to get ContentResolver within the Activity or other application component?

  1. ContentResolver cr = getContentResolver();

  2. ContentResolver cr = getContentResolver(cr);

  3. ContentResolver cr = getContentResolver(content);

  4. ContentResolver cr = getContentResolver(void);

  5. ContentResolver cr = getContentResolver(context);

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

getContentResolver() is the correct method to obtain a ContentResolver instance within an Activity or other application component. It takes no parameters and returns a ContentResolver object that can interact with content providers. The other options incorrectly pass parameters (cr, content, void, context) to this method.