AND-401 Exam Details

  • Exam Code
    :AND-401
  • Exam Name
    :Android Application Development
  • Certification
    :Android Certifications
  • Vendor
    :Android
  • Total Questions
    :129 Q&As
  • Last Updated
    :Dec 09, 2021

Android AND-401 Online Questions & Answers

  • Question 41:

    Which method is used to close an activity?

    A. Destroy()
    B. Finish()
    C. Stop()
    D. Close()

  • Question 42:

    Which of the following Activity methods is invoked when the user clicks on an options menu item?

    A. onItemClicked
    B. onItemSelected
    C. onOptionsItemClicked
    D. onOptionsItemSelected

  • Question 43:

    You can create a custom view by extending class:

    A. android.widget.View
    B. android.widget.LinearLayout
    C. android.view.View
    D. android.content.Context

  • Question 44:

    Which of the following is NOT true about class AsyncTask?

    A. It must be used by sub-classing it.
    B. It must be created on the UI thread.
    C. Its sub-class override at least two methods: doInBackground, onPostExecute.
    D. It uses three generic types.

  • Question 45:

    Which of the following methods is called in an Activity when another activity gets into the foreground?

    A. onStop()
    B. onPause()
    C. onDestroy()
    D. onExit()

  • Question 46:

    Which manifest file permission you should add to allow your application to read the device's address book?

    A. READ_ADDRESS_DATA
    B. READ_PHONE_STATE
    C. READ_PHONE_CONTACTS
    D. READ_CONTACTS

  • Question 47:

    Consider the following :

    android:title="@string/create_new" />

    android:title="@string/open" />

    public boolean onOptionsItemSelected(MenuItem item) {

    switch (item.getItemId()) {

    case R.id.create_new:

    newFile();

    return true

    default:

    return super.onOptionsItemSelected(item);

    }

    }

    Upon clicking on one of the menu items, the application did not behave as intended. Which of the following might be the cause of this problem?

    A. The developer did not set onClickListener on the menu item.
    B. The developer did not include a case that corresponds to the menu item in method onOptionsItemSelected.
    C. The developer should create onOptionsItemSelected method for each menu item.
    D. The developer should add the item to the menu resource file.

  • Question 48:

    What method you should override to use Android menu system?

    A. onCreateOptionsMenu()
    B. onCreateMenu()
    C. onMenuCreated()
    D. onMenuCreated()

  • Question 49:

    Which of the following is incorrect about intents?

    A. They can be used to start an Activity.
    B. They can be used to start a service.
    C. They can be used to start database insertion.
    D. They can be used to start a dialog-themed activity.

  • Question 50:

    Which of the following is incorrect about the LogCat tool?

    A. A LogCat view is available as part of the ADT plugin of Eclipse.
    B. You can create a log in your application using Log.v(String, String).
    C. Each log message has a tag.
    D. Only one of your application can create log entries, and it should be component class (Activity, Service,...etc).

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Android exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your AND-401 exam preparations and Android certification application, do not hesitate to visit our Vcedump.com to find your solutions here.