Free Google Associate-Android-Developer Exam Actual Questions

The questions for Associate-Android-Developer were last updated On Nov 5, 2024

Question No. 1

In application theme style, value statusBarColor () means:

Show Answer Hide Answer
Question No. 2

When your code execution reaches the breakpoint, Android Studio pauses execution of your app. You can

Show Answer Hide Answer
Correct Answer: E

Question No. 3

In a class PreferenceFragmentCompat. What method is called during onCreate(Bundle) to supply the preferences for this fragment. And where subclasses are expected to call setPreferenceScreen (PreferenceScreen) either directly or via helper methods such as addPreferencesFromResource (int)?

Show Answer Hide Answer
Correct Answer: B

Question No. 4

In a class extended PreferenceFragmentCompat. What method is used to inflate the given XML resource and add the preference hierarchy to the current preference hierarchy?

Show Answer Hide Answer
Correct Answer: C

Question No. 5

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);

...

Show Answer Hide Answer
Correct Answer: A