Multiple choice technology platforms and products

To query content provider, both methods ________ and ______ return a Cursor object and takes the same set of arguments.

  1. ContentResolver.query(), Activity.managedQuery()

  2. Activity.query(), ContentResolver.managedQuery()

  3. ContentResolver.makeQuery(), Activity.managedQuery()

  4. None of above

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

Both ContentResolver.query() and Activity.managedQuery() return a Cursor object and accept the same parameters (URI, projection, selection, selectionArgs, sortOrder). managedQuery() is deprecated but was commonly used in older Android code.