1. Question: Which of the following are true?

    A
    Both startActivity and startSubActivity start an activity synchronously.

    B
    Both startActivity and startActivityForResults start an activity asynchronously.

    C
    startActivity is an asynchronous call, but startSubActivity is synchronous.

    D
    startActivity is a synchronous call, but startSubActivity is asynchronous.

    Note: Not available
    1. Report
  2. Question: Which of the following are UI elements that you can use in a window in an Android application?

    A
    TextBox

    B
    TextView

    C
    TextField

    D
    TextElement

    E
    EditText

    F
    RichText

    Note: Not available
    1. Report
  3. Question: What is the correct way to fix if checking the status of the GPS_PROVIDER throws SecurityException?

    A
    request permission for ACCESS_COARSE_LOCATION

    B
    request permission for ACCESS_FINE_LOCATION

    C
    request permission for INSTALL_LOCATION_PROVIDER

    D
    None

    Note: Not available
    1. Report
  4. Question: Which of the following is not Content Provider?

    A
    Contacts

    B
    Contacts

    C
    Shared Preferences

    D
    MediaStore

    E
    Bookmarks

    F
    Settings

    Note: Not available
    1. Report
  5. Question: Which of the following statements are correct with regards to signing applications? a) All applications must be signed. b) No certificate authority is needed. c) When releasing application special debug key that is created by the Android SDK build tools can be used.

    A
    a) and b) are true

    B
    a) and c) are true

    C
    b) and c) are true

    D
    all statements are true

    Note: Not available
    1. Report
  6. Question: What does the following code do?
    SensorManager mgr = (SensorManager) getSystemService(SENSOR_SERVICE);
    List<Sensor> sensors = mgr.getSensorList(Sensor.TYPE_ALL);
    for (Sensor sensor : sensors) {
            System.out.println(""+sensor.getName());
    }

    A
    prints names of all available sensors in device

    B
    prints names of all available sensor types in device

    C
    prints names of all sensors which are not available

    D
    none

    Note: Not available
    1. Report
  7. Question: What does the following code do?
    try {
        String token = GoogleAuthUtil.getToken(this, email, "https://www.googleapis.com/auth/devstorage.read_only");
        System.out.println(token);
    } catch (IOException e) {
        System.out.println("IOException");
    } catch (UserRecoverableAuthException e) {
        System.out.println("UserRecoverableAuthException");
    } catch (GoogleAuthException e) {
        System.out.println("GoogleAuthException"); 
    }

    A
    prints token

    B
    prints IOException

    C
    prints UserRecoverableAuthException

    D
    prints GoogleAuthException

    Note: Not available
    1. Report
  8. Question: Which of the following is correct to use for data transfer regularly and efficiently, but not instantaneously?

    A
    AsyncTask

    B
    IntentService

    C
    Sync adapters

    D
    All

    Note: Not available
    1. Report
  9. Question: What is the ListActivity class used for?

    A
    Create a view to display a list of items from a data source.

    B
    List all the activities currently running on the Android device.

    C
    List all the activites that are installed on the Android device.

    D
    List the activities whose IntentFilters match with a particular Intent type.

    Note: Not available
    1. Report
  10. Question: Using a content provider, which of the following operations are able to perform? a) create b) read c) update d) delete

    A
    a, b and c

    B
    b, c and d

    C
    all of these

    D
    none of these

    Note: Not available
    1. Report
Copyright © 2024. Powered by Intellect Software Ltd