To handle an options menu item click in an activity, we usually should override method named:
A. onKey
B. onOptionsItemSelected
C. onClick
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
Working with Custom View. Once you define the custom attributes, you can use them in layout XML files just like built-in attributes. The only difference is that your custom attributes belong to a different namespace. Instead of belonging to the http://schemas.android.com/apk/res/android namespace, they belong to:
A. http://schemas.android.com/apk/res/[your package name]
B. http://schemas.android.com/[your package name]
C. http://schemas.android.com/apk/[your package name]
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
The following code snippet shows an example of an Espresso test:
A. @Test
fun greeterSaysHello() {
onView(withId(R.id.name_field)).perform(typeText("Steve"))
onView(withId(R.id.greet_button)).perform(click())
onView(withText("Hello Steve!")).check(matches(isDisplayed()))
}
B. @Test
fun greeterSaysHello() {
onView(withId(R.id.name_field)).do(typeText("Steve"))
onView(withId(R.id.greet_button)).do(click())
onView(withText("Hello Steve!")).compare(matches(isDisplayed()))
}
C. @Rule
fun greeterSaysHello() {
onView(withId(R.id.name_field)).do(typeText("Steve"))
onView(withId(R.id.greet_button)).do(click())
onView(withText("Hello Steve!")).check(matches(isDisplayed()))
}
正解:A
質問 4:
If you are working with a Builder that creates a PeriodicWorkRequest to run periodically once within the flex period of every interval period. What statement is correct?
A. The repeat interval must be greater than or equal to PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS and the flex interval can be anything in relation to PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS.
B. The repeat interval must be greater than PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS and the flex interval must be greater than PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS.
C. The repeat interval must be greater than or equal to PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS and the flex interval must be greater than or equal to PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS.
D. The repeat interval must be lower than or equal to PeriodicWorkRequest.MIN_PERIODIC_INTERVAL_MILLIS and the flex interval must be lower than or equal to PeriodicWorkRequest.MIN_PERIODIC_FLEX_MILLIS.
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
About queries in DAO classes. Room verifies the return value of the query such that if the name of the field in the returned object doesn't match the corresponding column names in the query response, Room alerts you in one of the following two ways: (Choose two.)
A. It gives an error if no field names match.
B. It gives an error if only some field names match.
C. It gives a warning if no field names match.
D. It gives a warning if only some field names match.
正解:A,D
質問 6:
The Testing Pyramid, shown in the Figure, illustrates how your app should include the three categories of tests: small, medium, and large. Medium tests are integration tests that:
A. validate your app's behavior one class at a time.
B. validate either interactions between levels of the stack within a module, or interactions between related modules.
C. validate user journeys spanning multiple modules of your app.
正解:B
質問 7:
When using an ImageView, ImageButton, CheckBox, or other View that conveys information graphically. What attribute to use to provide a content label for that View?
A. android:labelFor
B. android:hint
C. android:contentDescription
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
Tohno -
初めてAssociate-Android-Developer試験に受験して、合格しました。素晴らしい!Associate-Android-Developer問題集をお勧めしたい。大変役に立ちましたと思います。