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 1:

    Which of the following is true about implicit intents? (Choose two)

    A. They do not have a component specified.
    B. They have components specified to run an exact class.
    C. They must include information that allows Android system to choose the best component to run.
    D. They must contain extra information saved in a Bundle object.

  • Question 2:

    What does this code do?

    Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setData(android.net.Uri.parse("http://www.androidatc.com")); startActivity(intent);

    A. Starts a sub-activity.
    B. Starts a service.
    C. Sends results to another activity.
    D. Starts an activity using an implicit intent.

  • Question 3:

    Which of the following is not true about tag in AndroidManifest file?

    A. Declares an activity that implements part of the application's visual user interface.
    B. Contained in tag.
    C. Declares a single hardware or software feature that is used by the application.
    D. Has an attribute that specifies the name of the Activity sub-class that implements the activity.

  • Question 4:

    Consider the following code :

    @Override

    public void onCreateContextMenu(ContextMenu menu, View v,

    ContextMenuInfo menuInfo) {

    super.onCreateContextMenu(menu, v, menuInfo);

    menu.setHeaderTitle("Menu");

    AdapterContextMenuInfo cmi = (AdapterContextMenuInfo) menuInfo;

    menu.add(1, cmi.position, 0, "Open file");

    menu.add(2, cmi.position, 0, "Save file");}

    Which of the following best explains the code above?

    A. The code inflates an xml file into menu items.
    B. The code creates menu items for context menu programmatically.
    C. The code assign actions to menu items.
    D. The code Opens a menu resource file, modifies it, and saves the changes.

  • Question 5:

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

    A. mylayout.xml
    B. myLayout.xml
    C. my_layout.xml
    D. mylayout1.xml

  • Question 6:

    Which UI does the following code builds?

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:orientation="vertical" >

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:orientation="horizontal" >

    android:id="@+id/textView1"

    android:layout_width="wrap_content"

    android:layout_height="wrap_content"

    android:text="Name:" />

    android:id="@+id/editText1"

    android:layout_width="match_parent"

    android:layout_height="wrap_content"

    android:layout_weight="1"

    android:ems="10" />

  • Question 7:

    Which of the following is NOT true about method getWindow() of class Dialog do?

    A. It retrieves the current window for the activity.
    B. It can be used to access parts of the Windows API.
    C. It displays the dialog on the screen.
    D. It returns null if the activity is not visual.

  • Question 8:

    Which of the following is true about this code snippet? (Choose two) Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:555-1234")); startActivity(intent);

    A. This is an explicit intent that start the system's dialer.
    B. The system will not dial the number without adding permission CALL_PHONE.
    C. The system will perform an intent resolution to start the proper activity.
    D. The code will not compile.

  • Question 9:

    Consider the following the code :

    public boolean onCreateOptionsMenu(Menu menu) {

    MenuInflater inflater = getMenuInflater();

    inflater.inflate(R.menu.game_menu, menu);

    return true;

    }

    Which of the following is true about the code above?

    A. The code is auto generated and should not be edited.
    B. This method handles clicks and assign actions to menu items.
    C. This function inflates an XML file in the res/menu folder into menu items.
    D. This method inflates an XML file in the res/layout folder into layout.

  • Question 10:

    Which of the following are primary pieces of information that are required to define in an implicit Intent?

    A. An action to be performed and data to operate on.
    B. An action to be performed and a category for additional information.
    C. A Bundle for extra data.
    D. A category of additional information and data to operate on.

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.