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

    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?

    A. if (cursor.moveToFirst()) {do {System.out.println(cursor.getString(1));}while (cursor.moveToNext()); }
    B. do {System.out.println(cursor.getString(0));}while (cursor.moveToNext());
    C. if (cursor.moveToFirst()) {do {System.out.println(cursor.getString(0));}while (cursor.moveToNext()); }
    D. if (cursor != null) {do {System.out.println(cursor.getString(1));}while (!cursor.isNull()); }

  • Question 62:

    Consider the following AndroidManifest.xml file.

    package="com.androidatc "

    android:versionCode="1"

    android:versionName="1.0" >

    android:minSdkVersion="12"

    android:targetSdkVersion="17" />

    android:name="MyApp "

    android:allowBackup="true"

    android:icon="@drawable/ic_launcher"

    android:label="@string/app_name"

    android:theme="@style/AppTheme" >

    android:name="com.androidatc.MainActivity"

    android:label="@string/app_name"

    android:screenOrientation="portrait" >

    Which of the following is correct?

    A. The application will run as intended.
    B. The application will not compile.
    C. The application will crash on fetching data from the internet.
    D. The app will run in Landscape orientation.

  • Question 63:

    Which of these is the incorrect explanation of the Android SDK and AVD Manager?

    A. They are provided from version 1.6 of the SDK. Up to Version 1.5, there was an AVD Manager but it lacked SDK management functions.
    B. You can create and startup AVD, and on startup you can delete user data up to that point.
    C. The "android" command can be used if "/tools" is added to the command path.
    D. The development tools that can be downloaded from Android SDK and AVD Manager are SDK Android platform, NDK-platform, emulator images, and USB drivers for handsets.

  • Question 64:

    Which of the following classes is used by Intent to transfer data between different android components?

    A. Extras
    B. Bundle
    C. Parcelable
    D. PendingIntent

  • Question 65:

    You can create a custom view by extending class Activity.

    A. True
    B. False

  • Question 66:

    Consider the following AndroidManifest.xml file:

    package="mycube.test"

    android:versionCode="1"

    android:versionName="1.0" >

    android:minSdkVersion="8"

    android:targetSdkVersion="17" />

    android:icon="@drawable/ic_launcher"

    android:label="@string/app_name"

    android:theme="@android:style/Theme.Light.NoTitleBar" >

    android:screenOrientation="portrait"

    android:label="@string/app_name" >

    What is the syntax error of this file?

    A. The INTERNET permission must be removed.
    B. Tag uses-sdk must have attribute android:maxSdkVersion set.
    C. the package name must be "com.mycube.test".
    D. The tag for Activity ".Compute" should be contained inside tag.

  • Question 67:

    What does the following code achieve?

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

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

  • Question 68:

    In which Activity life-cycle method you should do all of your normal static set up such as: creating views and bind data to lists?

    A. onResume()
    B. onStart()
    C. onCreate()
    D. onPause()

  • Question 69:

    Which of the following statements about DDMS is incorrect?

    A. You can display a list of currently running threads and select one to check its stack trace.
    B. You can use it to acquire screenshots of a terminal.
    C. You can forcibly execute garbage collection and check the present heap usage status.
    D. You can do simulations of network zone speed and bandwidth limitations.

  • Question 70:

    What is the parent class of all Activity widgets?

    A. ViewGroup
    B. Layout
    C. View
    D. Widget

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.