Which is the correct explanation of the Android test framework?
A. In order to create an Activity event unit test, create a test class extending Activity instrumentationTestCase.
B. A physical device is required to use the Android test framework.
C. In order to conduct unit tests using the Android test framework, it is necessary to add the configuration to your AndroidManifest.xml.
D. The Android test framework is based on JUnit4.
正解:C
質問 2:
Which of these is called after the end of each test method of ActivitylnstrumentationTestCase2, a class which provides the unit Activity function tests?
A. tearDown
B. setActivityIntent
C. setUp
D. runTest
正解:A
質問 3:
Which component cannot receive an Intent?
A. Activity
B. ContentProvider
C. Service
D. BroadcastReceiver
正解:B
質問 4:
The following JNIProb.java has been compiled, and the javah command has been run to create the header file JNIProb.h. Which is the correct code that goes into (1) of the C/C++
source file JNIProb.c created in this way?
A. jint JNICALL addfJNIEnv *env, jobject o. jint a. jint b)
B. jint JNICALL Java_JNIProb_add(JNIEnv*env, jobject o, jint a, jint b)
C. int JNICALL Java_JNIProb_add(JNIEnv*env, jobject o, inta, intb)
D. jint JNICALL add(JNIEnv *env. jobject o. int a. int b)
正解:B
質問 5:
Which is the tool provided by Android Development Tools Plugin to create and edit screens with Eclipse?
A. View Editor
B. Resource Editor
C. Layout Editor
D. Menu Editor
正解:C
質問 6:
The following code applies to a dialog layout defined in XML. Which is the correct code that goes into (1)? (Assume the dialog layout is correctly defined in res/layout/custom_dialog.xml, and there are no other problems in the rest of the application.)
A. dialog.inflate(R.layout.custom_dialog);
B. dialog.setLayout(R.layout.custom_dialog);
C. dialog.setContentView(R.layout.custom_dialog);
D. dialog.getinflate().inflate(R.layout.custom_dialog);
正解:C
質問 7:
Which of these is the incorrect explanation regarding the private key when an application is published?
A. Can store several keys in 1 key store file
B. Can be created by using keytool
C. The debug key created by the SDK tool cannot be used
D. RSA cannot be used as the encryption algorithm for key creation
正解:D
原田** -
大変役立ちました。
御社で購入したOA0-002を利用して、無事にAndroidの試験に合格しました。
感謝の意を表したいと思います。