0

platforms and products Online Quiz - 25

Description: platforms and products Online Quiz - 25
Number of Questions: 20
Created by:
Tags: platforms and products
Attempted 0/20 Correct 0 Score 0

Android resources stored in_______ of Android Application directory structure, are not compiled into binary format.

  1. /res/raw

  2. /res/xml

  3. /res/layout

  4. Both, a & b above

  5. None of above


Correct Option: A

Pending Intent is commonly used to package an Intent that will be fired in response to a future event, such as a widget View being clicked or a Notification being selected from the notification panel.

  1. True

  2. False


Correct Option: B

The SQLite3 has been implemented as a ______________ that's included as part of the Android software stack

  1. Compact C Library

  2. C++ Library

  3. Java Library

  4. None of above


Correct Option: A

In SQLite3 database, Files (such as bitmaps or audio files) are usually stored within database tables.

  1. True

  2. False


Correct Option: B
  1. Informs adb to use the connected real device

  2. Informs adb to use the emulator

  3. Returns an error

  4. None of above


Correct Option: B

________ objects are used to insert new rows into database tables

  1. ContentValues

  2. ContentValue

  3. CursorFactory

  4. None of above


Correct Option: A

In SQLite database, there is a strict type checking when assigning or extracting values from each column within a row.

  1. True

  2. False


Correct Option: B

Select Native Android Content Provider(s) from the list below.

  1. Browser

  2. MediaStore

  3. Contacts

  4. CallIndex

  5. All of above

  6. a, b & c Above


Correct Option: F
  1. Android Interface Description Language

  2. Android Inter-process Description Language

  3. Android Definition Language

  4. None of above


Correct Option: A

Identify “Authority” part of below Content URI - content://contacts/people/3

  1. People

  2. Contacts

  3. Contacts.people

  4. 3

  5. None of above


Correct Option: B

Select the static Helper method(s) to append an ID to a ContentProvider URI

  1. ContentUris.withAppendedId()

  2. Uri.withAppendedPath()

  3. Both a and b above

  4. None of above


Correct Option: C

AI Explanation

To answer this question, we need to understand the purpose and usage of the ContentUris.withAppendedId() and Uri.withAppendedPath() methods.

Option A) ContentUris.withAppendedId() - This option is correct because it is a static helper method provided by the ContentUris class in Android. It is used to append an ID to a ContentProvider URI. The method takes two parameters: the base URI and the ID to be appended. It returns a new URI with the ID appended.

Option B) Uri.withAppendedPath() - This option is correct because it is another static helper method provided by the Uri class in Android. It is used to append a path segment to a URI. The method takes two parameters: the base URI and the path segment to be appended. It returns a new URI with the path segment appended.

Option C) Both a and b above - This option is correct because both ContentUris.withAppendedId() and Uri.withAppendedPath() can be used to append an ID to a ContentProvider URI. They serve slightly different purposes, with ContentUris.withAppendedId() specifically designed for appending IDs, and Uri.withAppendedPath() designed for appending path segments, which can include an ID.

Option D) None of the above - This option is incorrect because both ContentUris.withAppendedId() and Uri.withAppendedPath() are valid static helper methods to append an ID to a ContentProvider URI.

Therefore, the correct answer is Option C) Both a and b above.

Content providers that are not declared in the manifest file are also visible to the Android system

  1. True

  2. False


Correct Option: B
  1. ContentResolver.query(), Activity.managedQuery()

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

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

  4. None of above


Correct Option: A

Requests to ContentResolver are automatically forwarded to the appropriate Content Provider instance

  1. True

  2. False


Correct Option: B

If you don't need to share data amongst multiple applications, then you can use a database directly using -

  1. Content Provider

  2. Intent

  3. SQLite Database

  4. None of above


Correct Option: C
- Hide questions