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

Intent is an action with its associated data URI. You can use intents to invoke internal or external components from your application.

  1. True

  2. False


Correct Option: B

Linkify is a helper class that automatically creates hyperlinks within Text View (and Text View-derived) classes

  1. True

  2. False


Correct Option: B

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

In addition to its primary attributes of action and data URI, intent can include additional attributes called extras. An extra can provide more information to the component that receives the intent. It is accessed using -

  1. Intent.getIntentExtras()

  2. Intent.getExtras()

  3. Bundle.getExtras()

  4. None of above


Correct Option: B

During start-up, Android looks for activities whose category (also known as a tag) is marked as CATEGORY_LAUNCHER. It then picks up these activity names and icons and places them on the home screen to launch.

  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

What is the use of –e option in following adb command – adb –e shell

  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

You may declare ContentProvider with a element in the application's AndroidManifest.xml file

  1. True

  2. False


Correct Option: B

_______ is the Android way of doing IPC that is interface based and lightweight

  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

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


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