IT認証試験問題集
毎月、GOWUKAKUは1500人以上の受験者が試験準備を助けて、試験に合格するために受験者にご協力します
 ホームページ / AND-401 問題集  / AND-401 問題練習

Android AND-401 問題練習

Android Application Development 試験

最新更新時間: 2024/03/18,合計228問。

【2024年3月キャンペーン】:AND-401 最新真題を買う時、日本語版と英語版両方を同時に獲得できます。

実際の問題集を練習し、試験のポイントを了解し、テストに申し込むするかどうかを決めることができます。

さらに試験準備時間の35%を節約するには、AND-401 問題集を使用してください。

 / 7

Question No : 1
Consider the following code:
Intent i = new Intent(this, MainActivity.class);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(i);
What best explains the code above?

正解:

Question No : 2
Which UI does the following code builds?
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android=http://
schemas.android.com/apk/res/android
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Name:" />
<EditText
android:id="@+id/editText1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10" />
</LinearLayout>
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Post" />
</LinearLayout>

正解:

Question No : 3
Which of these is the incorrect method for an Application to save local data?

正解:
Explanation:
Incorrect:
B: You can save files directly on the device's internal storage.
C: Android provides full support for SQLite databases. Any databases you create will be accessible by name to any class in the application, but not outside the application.
Reference: http://developer.android.com/guide/topics/data/data-storage.html

Question No : 4
When publishing an update to your application to the market, the following must be taken into consideration:

正解:
Explanation:
You should sign all of your apps with the same certificate throughout the expected lifespan of your applications.
App upgrade: When the system is installing an update to an app, it compares the certificate(s) in the new version with those in the existing version. The system allows the update if the certificates match. If you sign the new version with a different certificate, you must assign a different package name to the application ― in this case, the user installs the new version as a completely new application.
References: http://developer.android.com/tools/publishing/app-signing.html

Question No : 5
To create a customized Adapter for a compound list item layout, you should:

正解:
Explanation:
The android.widget.Adapter class included the method getView(), which gets a View that displays the data at the specified position in the data set.
References: http://developer.android.com/reference/android/widget/Adapter.html

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

正解:
Explanation:
References: http://www.itcsolutions.eu/2011/08/31/android-tutorial-how-to-create-a-new-activity-class-with-manifest­editor/

Question No : 7
Method onDraw() of class android.view.View has the following signature:

正解:
Explanation:
The parameter to onDraw() is a Canvas object that the view can use to draw itself.
References: http://developer.android.com/training/custom-views/custom-drawing.html

Question No : 8
Which of the following is incorrect about intents?

正解:
Explanation:
Incorrect:
A, B: An intent is an abstract description of an operation to be performed. It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested BroadcastReceiver components, and startService(Intent) or bindService(Intent, ServiceConnection, int) to communicate with a background Service.
D: Example:
public static final String ACTION_BATTERY_LOW
Added in API level 1
Broadcast Action: Indicates low battery condition on the device. This broadcast corresponds to the "Low battery warning" system dialog.
References:
http://developer.android.com/reference/android/content/Intent.html

Question No : 9
Which of the following statements about DDMS is incorrect?

正解:
Explanation:
Note: Android Studio includes a debugging tool called the Dalvik Debug Monitor Server (DDMS), which provides port-forwarding services, screen capture on the device, thread and heap information on the device, logcat, process, and radio state information, incoming call and SMS spoofing, location data spoofing, and more.
Incorrect:
A: LogCat is integrated into DDMS, and outputs the messages that you print out using the Log class along with other system messages such as stack traces when exceptions are thrown.
C: DDMS allows you to view how much heap memory a process is using. This information is useful in tracking heap usage at a certain point of time during the execution of your application.
To view heap usage for a process:

Question No : 10
When including a text file in your application to read from as a resource, what is the recommended location of such file?

正解:
Explanation:
You should place each type of resource in a specific subdirectory of your project's res/ directory. The raw/ subfolder should contain arbitrary files to save in their raw form.
References: http://developer.android.com/guide/topics/resources/providing-resources.html

Question No : 11
Which of the following statements is correct about SQLite?

正解:
Explanation:
Content providers are one of the primary building blocks of Android applications, providing content to applications. They encapsulate data and provide it to applications through the single ContentResolver interface. A content provider is only required if you need to share data between multiple applications. For example, the contacts data is used by multiple applications and must be stored in a content provider. If you don't need to share data amongst multiple applications you can use a database directly via SQLiteDatabase.
References: http://stackoverflow.com/questions/13542892/android-access-sqlite-database-via-content-provider-or­implement-dao

Question No : 12
Which of the following is the correct way to add access permission to your application?

正解:
Explanation:
If an application needs access to a feature protected by a permission, it must declare that it requires that permission with a <uses-permission> element in the manifest. Then, when the application is installed on the device, the installer determines whether or not to grant the requested permission by checking the authorities that signed the application's certificates and, in some cases, asking the user. If the permission is granted, the application is able to use the protected features. If not, its attempts to access those features will simply fail without any notification to the user.
References: http://developer.android.com/guide/topics/manifest/manifest-intro.html

Question No : 13
Which of these is the correct function of Traceview?

正解:
Explanation:
Traceview is a graphical viewer for execution logs saved by your application. Traceview can help you debug your application and profile its performance.
References: http://developer.android.com/tools/help/traceview.html

Question No : 14
Which of the following is incorrect about ProgressDialog?

正解:
Explanation:
Incorrect:
A: ProgressDialog extends the AlertDialog class.
B: STYLE_HORIZONTAL creates a ProgressDialog with a horizontal progress bar. STYLE_SPINNERcreates a ProgressDialog with a circular, spinning progress bar.
References: http://developer.android.com/reference/android/app/ProgressDialog.html

Question No : 15
Which of these is the correct explanation regarding the following methods?
(1)android.content.Context.sendBroadcast
(2)android.content.Context.startActivity

正解:

 / 7
Android