Weekend Sale Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Associate-Android-Developer Exam Results

Google Developers Certification - Associate Android Developer (Kotlin and Java Exam) Questions and Answers

Question 13

The Log class allows you to create log messages that appear in logcat. Generally, you could use the following log methods: (Choose five.)

Options:

A.

Log.e(String, String) (error)

B.

Log.a(String, String) (all outputs)

C.

Log.w(String, String) (warning)

D.

Log.i(String, String) (information)

E.

Log.q(String, String) (QUESTION NO:s)

F.

Log.d(String, String) (debug)

G.

Log.v(String, String) (verbose)

Question 14

By adding a RoomDatabase.Callback to the room database builder RoomDatabase.Builder (method

addCallback(RoomDatabase.Callback callback)), we can: (Choose two.)

Options:

A.

set the database factory

B.

handle database first time creation

C.

handle database opening

D.

disable the main thread query check for Room

Question 15

As an example. In an Activity we have our TimerViewModel object (extended ViewModel), named mTimerViewModel. mTimerViewModel.timer method returns a LiveData value. What can be a correct way to set an observer to change UI in case if data was changed?

Options:

A.

mTimerViewModel!!.timer.value.toString().observe

(Observer { aLong -> callAnyChangeUIMethodHere(aLong!!) })

B.

mTimerViewModel!!.timer.observe

(this, Observer { aLong -> callAnyChangeUIMethodHere(aLong!!) })

C.

mTimerViewModel.observe

(Observer { aLong -> callAnyChangeUIMethodHere(aLong!!) })

Question 16

Filter logcat messages. If in the filter menu, a filter option “Edit Filter Configuration”? means:

Options:

A.

Display the messages produced by the app code only (the default). Logcat filters the log messages using the PID of the active app.

B.

Apply no filters. Logcat displays all log messages from the device, regardless of which process you selected.

C.

Create or modify a custom filter. For example, you could create a filter to view log messages from two apps at the same time.