Labour Day Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 2493360325

Good News !!! Associate-Android-Developer Google Developers Certification - Associate Android Developer (Kotlin and Java Exam) is now Stable and With Pass Result

Associate-Android-Developer Practice Exam Questions and Answers

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

Last Update 1 day ago
Total Questions : 128

Associate-Android-Developer is stable now with all latest exam questions are added 1 day ago. Just download our Full package and start your journey with Google Developers Certification - Associate Android Developer (Kotlin and Java Exam) certification. All these Google Associate-Android-Developer practice exam questions are real and verified by our Experts in the related industry fields.

Associate-Android-Developer PDF

Associate-Android-Developer PDF (Printable)
$48
$119.99

Associate-Android-Developer Testing Engine

Associate-Android-Developer PDF (Printable)
$56
$139.99

Associate-Android-Developer PDF + Testing Engine

Associate-Android-Developer PDF (Printable)
$70.8
$176.99
Question # 1

Move the major components of the Android platform to correct places in diagram.

Question # 1

Options:

Discussion 0
Question # 2

In Android 8.0, API level 26, some APIs regarding notification behaviors were moved from Notification to NotificationChannel. For example, what should we use instead of NotificationCompat.Builder.setPriority() for Android 8.0 and higher?

Options:

A.  

NotificationChannel.setPriority()

B.  

NotificationChannel.setImportance()

C.  

NotificationCompat.Builder.setImportance()

Discussion 0
Question # 3

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 UserWHERE id = ? LIMIT 1",

new Object[]{userId});

User user = rawDao.getUserViaQuery(query);

...

Options:

A.  

A method in a Dao annotated class as a raw query method where you can pass the query as a

SupportSQLiteQuery.

B.  

A method in a Dao annotated class as a query method.

C.  

A method in a RoomDatabase class as a query method.

Discussion 0
Question # 4

We have a custom view that extends android.widget.ProgressBar. Our progress bar is not touchable, focusable, etc.: it just shows progress. Style for our custom progress bar extends

“Widget.AppCompat.ProgressBar.Horizontal”. An item, named “progressDrawable”, in our style, is a xml file . What we usually can see as a main single element in this xml file:

Options:

A.  

A State List ( element )

B.  

A Layer List ( element) with items android:id="@+id/progress" and android:id="@+id/ background" inside it.

C.  

An element with android:id="@+id/progress" identifier

Discussion 0
Question # 5

Android uses adapters (from the Adapter class) to connect data with View items in a list. There are many different kinds of adapters available, and you can also write custom adapters. To connect data with View items, the adapter needs to know about the View items. From what is extended the entity that is usually used in an adapter and describes a View item and its position within the RecyclerView?

Options:

A.  

RecyclerView.AdapterDataObserver

B.  

RecyclerView.ItemDecoration

C.  

RecyclerView.ViewHolder

D.  

RecyclerViewAccessibilityDelegate

Discussion 0
Question # 6

In our TeaViewModel class, that extends ViewModel, we have such method:

public LiveData getTea() { return mTea;

}

An observer in our Activity (type of mViewModel variable in example is TeaViewModel) is set in this way:

mViewModel.getTea().observe(this, this::displayTea);

What will be a correct displayTea method definition?

Options:

A.  

private void displayTea()

B.  

private void displayTea(Tea tea)

C.  

private void displayTea(LiveData)

D.  

private void displayTea(LiveData)

Discussion 0
Question # 7

Select correct statements about Hardware Abstraction Layer (HAL). (Choose two.)

Options:

A.  

The HAL provides standard interfaces that expose device hardware capabilities to the higher-level Java API framework.

B.  

The HAL function both as apps for users and to provide key capabilities that developers can access from their own app. For example, if your app would like to deliver an SMS message, you don't need to build that functionality yourself – you can instead invoke whichever SMS app is already installed to deliver a message to the recipient you specify

C.  

The HAL consists of multiple library modules, each of which implements an interface for a specific type of hardware component, such as the camera or bluetooth module. When a framework API makes a call to access device hardware, the Android system loads the library module for that hardware component.

D.  

Using a HAL, not using a Linux kernel, allows Android to take advantage of key security features and allows device manufacturers to develop hardware drivers for a well-known kernel.

Discussion 0
Question # 8

If content in a PagedList updates, the PagedListAdapter object receives:

Options:

A.  

only one item from PagedList that contains the updated information.

B.  

one or more items from PagedList that contains the updated information.

C.  

a completely new PagedList that contains the updated information.

Discussion 0
Question # 9

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:

Options:

A.  

http://schemas.android.com/apk/res/[your package name]

B.  

http://schemas.android.com/apk/[your package name]

C.  

http://schemas.android.com/[your package name]

Discussion 0
Question # 10

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

Options:

A.  

setContentInfo

B.  

setContentIntent

C.  

setDeleteIntent

Discussion 0
Question # 11

A class that you create for managing multiple data sources. In addition to a Room database, this class could manage remote data sources such as a web server. It is about:

Options:

A.  

Activity/Fragment

B.  

ViewModel

C.  

Repository

D.  

Room database

Discussion 0
Question # 12

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?

Options:

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.

Discussion 0
Question # 13

To run your local unit tests, follow these steps:

1.Be sure your project is synchronized with Gradle by clicking Sync Project in the toolbar.

2.Run your test in one of the following ways (select possible): (Choose three.)

Options:

A.  

To run a single test, open the Project window, and then right-click a test and click Run.

B.  

To test all methods in a class, right-click a class or method in the test file and click Run.

C.  

To run all tests in a directory, right-click on the directory and select Run tests.

D.  

To run all tests in Project, open the Project window, and then right-click a test and click Run.

Discussion 0
Question # 14

Select 3 major components of the Room. (Choose three.)

Options:

A.  

@Entity

B.  

@Query

C.  

@RawQuery

D.  

@DAO

E.  

@WorkerThread

F.  

@Database

Discussion 0
Question # 15

@Query is the main annotation used in DAO classes. It allows you to perform read/write operations on a database. Each @Query method is verified at compile time, so what happens if there is a problem with the query?

Options:

A.  

a runtime error occurs instead of a compilation failure.

B.  

a compilation error occurs instead of a runtime failure.

C.  

both compilation error and runtime failure occurs.

Discussion 0
Question # 16

Once your test has obtained a UiObject object, you can call the methods in the UiObject class to perform user interactions on the UI component represented by that object. You can specify such actions as: (Choose four.)

Options:

A.  

click() : Clicks the center of the visible bounds of the UI element.

B.  

touch() : Touch the center of the visible bounds of the UI element.

C.  

dragTo() : Drags this object to arbitrary coordinates.

D.  

moveTo() : Move this object to arbitrary coordinates.

E.  

setText() : Sets the text in an editable field, after clearing the field's content. Conversely, the

clearTextField() method clears the existing text in an editable field.

F.  

swipeUp() : Performs the swipe up action on the UiObject. Similarly, the swipeDown(), swipeLeft(), and swipeRight() methods perform corresponding actions.

Discussion 0
Question # 17

To create a basic JUnit 4 test class, create a class that contains one or more test methods. A test method begins with the specific annotation and contains the code to exercise and verify a single functionality in the component that you want to test. What is the annotation?

Options:

A.  

@RunWith

B.  

@LargeTest

C.  

@Rule

D.  

@Test

Discussion 0
Question # 18

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?

Options:

A.  

room.expandProjection

B.  

room.incremental

C.  

room.schemaLocation

Discussion 0
Question # 19

For example, we have a file in our assets folder app/src/main/assets/sample_teas.json. To get an InputStream for reading it, from out Context context, we can try do this:

Options:

A.  

val input = context!!.resources.openRawResource(R.raw.sample_teas)

B.  

val input = context!!.assets.open("sample_teas.json")

C.  

val input = context!!.resources.assets.open("sample_teas.json")

Discussion 0
Get Associate-Android-Developer dumps and pass your exam in 24 hours!

Free Exams Sample Questions