1. Question: What does the following code do?
    public boolean isOnline() {
       ConnectivityManager connMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);
       NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
       return (networkInfo != null && networkInfo.isConnected());
    }

    A
    checking Network connection.

    B
    checking only WIFI network connectivity.

    C
    checking only Bluetooth data connection.

    D
    checking only Ethernet data connection

    Note: Not available
    1. Report
  2. Question: Which of the following statements are correct with regards to running of the Sync Adapter? A) Running sync adapter in response to a user request. B) Running sync adapter periodically by setting a period of time to wait between runs, or by running it at certain times of the day, or both.

    A
    Statement A is true, while Statement B is false.

    B
    Statement B is true, while Statement A is false.

    C
    Both statements are true.

    D
    Both statements are false.

    Note: Not available
    1. Report
  3. Question: Which of the following statements are correct with regards to calling place GoogleAuthUtil.getToken()? A) call getToken() on the UI thread B) call getToken() on AsyncTask

    A
    Statement A is true, while Statement B is false.

    B
    Statement B is true, while Statement A is false.

    C
    Both statements are true.

    D
    Both statements are false.

    Note: Not available
    1. Report
  4. Question: Which of the following protocols are provided by Google for GCM Connection Servers? A) HTTP B) XMPP C) SOAP D) RMI

    A
    A and B

    B
    A, B, C

    C
    C, D

    D
    All of these

    Note: Not available
    1. Report
  5. Question: Which of the following 4 classes does not relate to others? ApplicationInfo, SyncInfo, ActivityInfo, PackageInfo

    A
    ApplicationInfo

    B
    SyncInfo

    C
    ActivityInfo

    D
    PackageInfo

    Note: Not available
    1. Report
  6. Question: Which of the following are valid ways to deploy an Android application to a device?

    A
    Using the "adb install /path/to/apk" command from the command prompt/terminal, when USB Debugging Mode is enabled in the device.

    B
    Exporting and signing the package, then browsing it to install.

    C
    Launching the application from an IDE, when USB Debugging Mode is enabled in the device.

    D
    All

    Note: Not available
    1. Report
  7. Question: Which of the following classes is not used in working with database?

    A
    SQLiteOpenHelper

    B
    SQLiteDatabase

    C
    ContentProvider

    D
    DatabaseHelper

    Note: Not available
    1. Report
  8. Question: Consider the XML fragment below, which is taken from one of the files in an Android project:
    <MyElement xmlns:"http://schemas.androd.com/apk/res/android"
            android:layout_width = "fill_parent"
            android:layout_height = "fill_parent"
            android:text = "Some Text">
    </MyElement>
    Which of the following are true about the XML fragment above?

    A
    It is taken from the manifest XML file of the Android project.

    B
    It is taken from an XML file used to define a view.

    C
    It is taken from the package file (.apk) of the Android project.

    D
    The xmlns: attribute is a compulsory attribute.

    E
    If this is not the outer most tag in the XML file then it need not contain the xmlns: attribute.

    F
    MyElement should be the name of a class derived, directly or indirectly, from the View class.

    Note: Not available
    1. Report
  9. Question: Which of the following statement is correct regarding StrictMode?

    A
    StrictMode detects improper layouts

    B
    StrictMode detects operation which blocks UI

    C
    StrictMode detects the speed of the connection

    D
    All

    Note: Not available
    1. Report
  10. Question: Consider the code snippet below:
    MediaPlayer mp = new MediaPlayer();
    mp.setDataSource(PATH_TO_FILE);
    <Some code here>
    mp.start();
    Which of the following should be placed at <Some code here>?

    A
    mp.prepare();

    B
    mp.prepareAsync();

    C
    mp.loadMedia();

    D
    mp.loadSource();

    E
    mp.loadSource(); mp.prepare();

    F
    No code is required at <Some code here> to start playback.

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