Welcome to TestSimulate

Pass Your Next Certification Exam Fast!

Everything you need to prepare, learn & pass your certification exam easily.

365 days free updates. First attempt guaranteed success.

Google Developers Certification - Associate Android Developer (Kotlin and Java Exam) (Associate-Android-Developer) Free Practice Test

Question 1
Select four different types of app components. (Choose four.)

Correct Answer: C,D,E,G
Question 2
Select correct demonstration of WorkRequest cancellation.

Correct Answer: D
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 3
The Log class allows you to create log messages that appear in logcat. Generally, you could use the following log methods: (Choose five.)

Correct Answer: A,B,D,F,G
Question 4
By default, the notification's text content is truncated to fit one line. If you want your notification to be longer, for example, to create a larger text area, you can do it in this way:

Correct Answer: C
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 5
Custom duration in milliseconds as a parameter for the setDuration method is available when you are working with:

Correct Answer: A
Question 6
What is demonstrated by the code below?
// RawDao.java
@Dao
interface RawDao {
@RawQuery
User getUserViaQuery(SupportSQLiteQuery query);
}
// Usage of RawDao
...
SimpleSQLiteQuery query =
new SimpleSQLiteQuery("SELECT * FROM User WHERE id = ? LIMIT 1",
new Object[]{userId});
User user = rawDao.getUserViaQuery(query);
...

Correct Answer: B
Question 7
Enable debugging on your device: If you are using the emulator, this is enabled by default. But for a connected device, you need to

Correct Answer: C
Question 8
For example, our preferences.xml file was added by addPreferencesFromResource (R.xml.preferences). Our preferences.xml file contains such item:
<SwitchPreference android:id="@+id/notification" android:key="@string/pref_notification_key" android:title="@string/pref_notification_title" android:summary="@string/pref_notification_summary" android:defaultValue="@bool/pref_notification_default_value" app:iconSpaceReserved="false"/> In our Fragment, we can dynamically get current notification preference value in this way:

Correct Answer: A
Question 9
Which build options in the Build menu to choose to delete all intermediate/cached build files.

Correct Answer: E
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).
Question 10
Room can export your database's schema information into a JSON file at compile time. What annotation processor property you should set in your app/build.gradle file to export the schema?

Correct Answer: A
Explanation: Only visible for TestSimulate members. You can sign-up / login (it's free).