Black Friday Sale - Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70dumps

Associate-Android-Developer Questions and Answers

Question # 6

What method should we use with Notification.Builder to supply a PendingIntent to be sent when the notification is clicked?

A.

setContentInfo

B.

setContentIntent

C.

setDeleteIntent

Full Access
Question # 7

SharedPreferences.Editor is an interface used for modifying values in a SharedPreferences object. All changes you make in an editor are batched, and not copied back to the original SharedPreferences until you call:

A.

commit()

B.

apply()

C.

commit() or apply()

Full Access
Question # 8

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

then use the tools in the Debugger tab to identify the state of the app. With Step Out you can

A.

examine the object tree for a variable; expand it in the Variables view. If the Variables view is not visible

B.

evaluate an expression at the current execution point

C.

advance to the next line in the code (without entering a method)

D.

advance to the first line inside a method call

E.

advance to the next line outside the current method

F.

continue running the app normally

Full Access
Question # 9

With a room database. When performing queries, you'll often want your app's UI to update automatically when the data changes. Can you use a return value of type LiveData in your query method description to achieve this?

A.

Yes

B.

No

Full Access
Question # 10

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

A.

Application

B.

Layouts

C.

Activities

D.

Services

E.

AlarmManager

F.

WorkManager

G.

Broadcast receivers

Full Access
Question # 11

With recommended app architecture. Fill the following diagram, which shows how all the modules usually should interact with one another after designing the app (drag modules to correct places).

Full Access
Question # 12

What do you want from Room when you create a DAO method and annotate it with @Update?

Example:

@Dao

interface MyDao {

@Update

fun updateUsers(vararg users: User)

}

A.

Room generates an implementation that inserts all parameters into the database in a single transaction.

B.

Room modifies a set of entities, given as parameters, in the database. It uses a query that matches against the primary key of each entity.

C.

Room removes a set of entities, given as parameters, from the database. It uses the primary keys to find the entities to delete.

Full Access
Question # 13

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

A.

enable transfer data from the device in usb connection options.

B.

enable debugging in the device developer options.

C.

enable connection in bluetooth options.

Full Access
Question # 14

What happens when you create a DAO method and annotate it with @Insert?

Example:

@Dao

interface MyDao {

@Insert(onConflict = OnConflictStrategy.REPLACE)

fun insertUsers(vararg users: User)

}

A.

Room generates an implementation that inserts all parameters into the database in a single transaction.

B.

Room modifies a set of entities, given as parameters, in the database. It uses a query that matches against the primary key of each entity.

C.

Room removes a set of entities, given as parameters, from the database. It uses the primary keys to find the entities to delete.

Full Access
Question # 15

The Layout Inspector in Android Studio allows you to compare your app layout with design mockups, display a magnified or 3D view of your app, and examine details of its layout at runtime. When this is especially useful?

A.

when your layout is built entirely in XML rather than runtime and the layout is behaving expectedly.

B.

when your layout is built at runtime rather than entirely in XML and the layout is behaving unexpectedly.

Full Access
Question # 16

In application theme style, flag windowActionBar () indicates:

A.

whether the given application component is available to other applications.

B.

whether action modes should overlay window content when there is not reserved space for their UI (such as an Action Bar).

C.

whether this window's Action Bar should overlay application content.

D.

whether this window should have an Action Bar in place of the usual title bar.

Full Access
Question # 17

In application theme style, flag windowDrawsSystemBarBackgrounds () indicates:

A.

whether this window should have an Action Bar in place of the usual title bar.

B.

whether there should be no title on this window.

C.

that this window should not be displayed at all.

D.

whether this is a floating window.

E.

whether this Window is responsible for drawing the background for the system bars.

Full Access
Question # 18

In application theme style, flag windowNoTitle () indicates:

A.

whether this window should have an Action Bar in place of the usual title bar.

B.

whether there should be no title on this window.

C.

that this window should not be displayed at all.

D.

whether this is a floating window.

E.

whether this Window is responsible for drawing the background for the system bars.

Full Access
Question # 19

Custom duration in milliseconds as a parameter for the setDuration method is available when you are working with:

A.

Toast

B.

Snackbar

C.

for none of them

D.

for both of them

Full Access