시험덤프
매달, 우리는 1000명 이상의 사람들이 시험 준비를 잘하고 시험을 잘 통과할 수 있도록 도와줍니다.
  / AND-401 덤프  / AND-401 문제 연습

Android AND-401 시험

Android Application Development 온라인 연습

최종 업데이트 시간: 2024년11월08일

당신은 온라인 연습 문제를 통해 Android AND-401 시험지식에 대해 자신이 어떻게 알고 있는지 파악한 후 시험 참가 신청 여부를 결정할 수 있다.

시험을 100% 합격하고 시험 준비 시간을 35% 절약하기를 바라며 AND-401 덤프 (최신 실제 시험 문제)를 사용 선택하여 현재 최신 228개의 시험 문제와 답을 포함하십시오.

 / 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