Android intermediate level quiz

Android quiz collection for intermediate level that covers basic android feature and common programming aspects

This quiz is in Android quiz collection.

Start quiz
  • 1.

    What are the functionalities of Binder services in android?

  • 2.

    What is an anonymous class in android?

  • 3.

    What is transient data in android?

  • 4.

    What is a thread in android?

  • 5.

    What are the return values of onStartCommand() in android services?

  • 6.

    What does the following line of code achieve?

    Intent intent = new intent(FirstActivity.this, SecondActivity.class);


  • 7.

    What is the name of the class used by Intent to store additional information?

  • 8.

    To add a new Activity to your application, you need to perform the following steps:

  • 9.

    What does the Android project folder "res/' contain?

  • 10.

    Consider the following code snippet:

    String[] result columns = new String[] {KEY ID, COL1, COL2};
    Cursor allRows = myDatabase.query(true, DATABASE_TABLE, result_columns, null, null, null, null, null, null);

    Which of the following prints out the values of COL1 column correctly if the result is not empty?

  • 11.

    Which of the following information is not included in the Manifest file?

  • 12.

    Which of the following lines of code is used to pass a value to the next activity?

  • 13.

    Which file specifies the minimum required Android SDK version your application supports?

  • 14.

    Which of the following is true about object arrayAdapter declared in the code below?

    String[] items = {"Item 1","Item 2","Item 3");
    ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, items);


  • 15.

    Which of the following WebView methods allows you to manually load custom HTML markup?

  • 16.

    Which of the following is a correct Android Manifest statement?

  • 17.

    Which of the following is a call-back method that inflates an options menu from file res/menu/menu.xml?

  • 18.

    Which of these is NOT recommended in the Android Developer's Guide as a method of creating an individual View?

  • 19.

    Which of the following is not a valid Android resource file name?

  • 20.

    Which of the following add a click listener to items in a listView?

  • 21.

    What does the following line of code do?

    Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG);
    toast.setGravity(Gravity.TOP|Gravity.RIGH, 0, 0);


  • 22.

    Which package of the following does not have classes needed for Android network connections?

  • 23.

    Which of the following is NOT true about SQLiteOpenHelper class? (Choose two)

  • 24.

    Which of the following is incorrect about the LogCat tool?

© 2017