Proper study guides for Updated Android Android Application Development certified begins with Android AND-401 preparation products which designed to deliver the Highest Quality AND-401 questions by making you pass the AND-401 test at your first time. Try the free AND-401 demo right now.
2021 Aug AND-401 free practice test
Q71. Which of the following classes should be extended to create a custom view?
A. View
B. ViewGroup
C. Context
D. Activity
Answer: A
Q72. Which of the following is required to allow the Android Developer Tools to interact with your view?
A. Provide a constructor that takes a Context and an AttributeSet object as parameters.
B. Provide a constructor that takes a Context object as parameter.
C. Extend class View.
D. Override method onDraw() of class View.
Answer: A
Q73. Which of the following is the base class of all UI components?
A. ListView
B. Layout
C. View
D. ViewGroup
Answer: C
Most up-to-date AND-401 book:
Q74. 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.
Answer: A,C
Q75. What is the name of the class used by Intent to store additional information?
A. Extra
B. Parcelable
C. Bundle
D. DataStore
Answer: C
Q76. Which of the following add a click listener to items in a listView?
A. onClickListener
B. onItemClickListener
C. onItemClicked
D. onListItemClickListener
Answer: B
Q77. Consider the following AndroidManifest.xml file:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="mycube.test"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Light.NoTitleBar" >
<activity android:name=".Menu"
android:screenOrientation="portrait"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<activity android:name=".Compute" android:screenOrientation="portrait" />
</manifest>
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 <activity> tag for Activity “.Compute” should be contained inside <application> tag.
Answer: C