[Q60-Q83] Try 100% Updated Associate-Android-Developer Exam Questions [2021]

Share

Try 100% Updated Associate-Android-Developer Exam Questions [2021]

Pass Associate-Android-Developer Exam - Real Questions & Answers


How to Prepare for Google Associate Android Developer Certified Exam

Preparation Guide for Google Associate Android Developer Certified Exam

Introduction

Google has designed a track for IT professionals to endorse as a cloud DevOps Engineer on the GCP platform. This accreditation program gives Google cloud professionals a way to endorse their skills. The evaluation relies on a meticulous exam using the industry-standard methodology to conclude whether or not an aspirant meets Google’s proficiency standards.

According to Google, Associate Android Developer Certified exam test facilitates organizations to influence android application development. By leveraging the experience of the android studio for the development of the applications that’s why the latest version of Android Studio will be used in this certification.

Certification is evidence of your skills, expertise in those areas in which you like to work. If a candidate wants to work as Google Associate Android Developer Certified and prove his knowledge, certification is offered by Google. This Google Associate Android Developer Certified Certification helps a candidate to validates his skills in Google Associate Android Developer Certified Technology.

In this guide, we will cover the Google Associate Android Developer Certified practice exams, Google Associate Android Developer Certified Professionals salary, and all aspects of the Google Associate Android Developer Certification.

 

NEW QUESTION 60
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?

  • A. NotificationCompat.Builder.setImportance()
  • B. NotificationChannel.setImportance()
  • C. NotificationChannel.setPriority()

Answer: B

Explanation:
Reference:
https://developer.android.com/training/notify-user/build-notification

 

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

  • A. only one item from PagedList that contains the updated information.
  • B. a completely new PagedList that contains the updated information.
  • C. one or more items from PagedList that contains the updated information.

Answer: B

Explanation:
Reference:
https://developer.android.com/topic/libraries/architecture/paging/ui

 

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

  • A. examine the object tree for a variable; expand it in the Variables view.
  • B. advance to the next line outside the current method
  • C. continue running the app normally
  • D. evaluate an expression at the current execution point
  • E. advance to the next line in the code (without entering a method)
  • F. advance to the first line inside a method call

Answer: E

 

NEW QUESTION 63
In general, you should send an AccessibilityEvent whenever the content of your custom view changes. For example, if you are implementing a custom slider bar that allows a user to select a numeric value by pressing the left or right arrows, your custom view should emit an event of type TYPE_VIEW_TEXT_CHANGED whenever the slider value changes. Which one of the following sample codes demonstrates the use of the sendAccessibilityEvent() method to report this event.

  • A. override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean { return when(keyCode) { KeyEvent.KEYCODE_DPAD_LEFT -> { currentValue-- sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED) true
    }
    ...
    }
    }
  • B. override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean { return when(keyCode) { KeyEvent.KEYCODE_ENTER -> { currentValue-- sendAccessibilityEvent (AccessibilityEvent.TYPE_VIEW_CONTEXT_CLICKED) true
    }
    ...
    }
    }
  • C. override fun dispatchPopulateAccessibilityEvent(event: AccessibilityEvent): Boolean { return super.dispatchPopulateAccessibilityEvent(event).let { completed -> if (text?.isNotEmpty() == true) { event.text.add(text) true
    } else {
    completed
    }
    }
    }

Answer: A

 

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

  • A. mTimerViewModel.getTimer().getValue().toString().observe(new Observer<Long>() {
    @Override
    public void onChanged(Long aLong) {
    callAnyChangeUIMethodHere(aLong)
    }
    });
  • B. mTimerViewModel.observe(new Observer<Long>() {
    @Override
    public void onChanged(Long aLong) {
    callAnyChangeUIMethodHere(aLong)
    }
    });
  • C. mTimerViewModel.getTimer().observe(this, new Observer<Long>() {
    @Override
    public void onChanged(Long aLong) {
    callAnyChangeUIMethodHere(aLong)
    }
    });

Answer: C

 

NEW QUESTION 65
In application theme style, flag windowNoTitle (<item name="windowNoTitle">) indicates:

  • A. whether there should be no title on this window.
  • B. that this window should not be displayed at all.
  • C. whether this Window is responsible for drawing the background for the system bars.
  • D. whether this window should have an Action Bar in place of the usual title bar.
  • E. whether this is a floating window.

Answer: A

Explanation:
Reference:
https://developer.android.com/guide/topics/ui/look-and-feel/themes https://developer.android.com/reference/android/R.styleable.html

 

NEW QUESTION 66
By executing an allowMainThreadQueries() method to the room database builder RoomDatabase.Builder, we can:

  • A. disable the main thread query check for Room
  • B. set the database factory
  • C. handle database opening
  • D. handle database first time creation

Answer: A

 

NEW QUESTION 67
To build a debug APK, you can open a command line and navigate to the root of your project directory. To initiate a debug build, invoke the assembleDebug task:
gradlew assembleDebug
This creates an APK named [module_name]-debug.apk in [project_name]/[module_name]/build/outputs/apk/ Select correct statements about generated file. (Choose all that apply.)

  • A. You can immediately install this file on a device.
  • B. The file is already signed with the debug key
  • C. The file is already aligned with zipalign

Answer: A,B,C

Explanation:
Reference:
https://developer.android.com/studio/run

 

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

Answer:

Explanation:

Reference:
https://developer.android.com/guide/platform

 

NEW QUESTION 69
Filter logcat messages. If in the filter menu, a filter option "Show only selected application"? means:

  • A. Apply no filters. Logcat displays all log messages from the device, regardless of which process you selected.
  • B. Display the messages produced by the app code only (the default). Logcat filters the log messages using the PID of the active app.
  • 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.

Answer: B

 

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

  • 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!!) })

Answer: B

 

NEW QUESTION 71
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?

  • A. room.expandProjection
  • B. room.schemaLocation
  • C. room.incremental

Answer: B

Explanation:
android {
...
defaultConfig {
...
javaCompileOptions {
annotationProcessorOptions {
arguments += ["room.schemaLocation":
"$projectDir/schemas".toString()]
}
}
}
}

 

NEW QUESTION 72
When using an ImageView, ImageButton, CheckBox, or other View that conveys information graphically. What attribute to use to provide a content label for that View?

  • A. android:hint
  • B. android:contentDescription
  • C. android:labelFor

Answer: B

Explanation:
Reference:
https://support.google.com/accessibility/android/answer/7158690?hl=en

 

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

  • A. Snackbar
  • B. for none of them
  • C. Toast
  • D. for both of them

Answer: A

 

NEW QUESTION 74
Choose the most correct statement.

  • A. Android is an open source, Linux-based software stack created for a wide array of devices and form factors.
  • B. Android is a closed source, Linux-based software stack created for a wide array of devices and form factors.
  • C. Android is an open source software stack created for a highly limited array of devices and form factors.
  • D. Android is a closed source, Windows-based software stack created for a wide array of devices and form factors.

Answer: A

Explanation:
Reference:
https://developer.android.com/guide/platform

 

NEW QUESTION 75
Select a correct statement about PagedList.

  • A. PagedList is content-mutable. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can change once loaded.
  • B. PagedList is content-immutable. This means that, although new content can be loaded into an instance of PagedList, the loaded items themselves cannot change once loaded.
  • C. PagedList is content-accidental. This means that new content can be loaded into an instance of PagedList and the loaded items themselves can be changed to accidental values randomly.

Answer: B

Explanation:
Reference:
https://developer.android.com/topic/libraries/architecture/paging/ui

 

NEW QUESTION 76
Select four different types of app components. (Choose four.)

  • A. Content providers
  • B. Services
  • C. WorkManager
  • D. Broadcast receivers
  • E. AlarmManager
  • F. Application
  • G. Layouts
  • H. Activities
  • I. Fragments

Answer: A,B,D,H

 

NEW QUESTION 77
For example, our preferences.xml file was added by addPreferencesFromResource (R.xml.preferences). Our preferences.xml file contains such item:
<ListPreference android:id="@+id/order_by" android:key="@string/pref_sort_key" android:title="@string/pref_sort_title" android:summary="@string/pref_sort_summary" android:dialogTitle="@string/pref_sort_dialog_title" android:entries="@array/sort_oder" android:entryValues="@array/sort_oder_value" android:defaultValue="@string/pref_default_sort_value" app:iconSpaceReserved="false" /> In our Fragment, we can dynamically get current notification preference value in this way:

  • A. val sortBy = PreferenceManager.getDefaultSharedPreferences(context).getString( context!!.getString(R.string.pref_sort_key), context!!.getString(R.string.pref_default_sort_value) )
  • B. val sortBy = PreferenceManager.getDefaultSharedPreferences(context).getString( context!!.getString(R.string.pref_sort_key), context!!.resources.getBoolean(R.bool.pref_default_sort_value) )
  • C. val sortBy = PreferenceManager.getSharedPreferences(context).getBoolean( context!!.resources.getBoolean(R.bool.pref_default_sort_value), context!!.getString(R.string.pref_sort_key) )
  • D. val sortBy = PreferenceManager.getSharedPreferences(context).getString( context!!.getString(R.string.pref_default_sort_value), context!!.getString(R.string.pref_sort_key), )

Answer: A

 

NEW QUESTION 78
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?

  • A. @Rule
  • B. @LargeTest
  • C. @RunWith
  • D. @Test

Answer: D

 

NEW QUESTION 79
What do you want from Room when you create a DAO method and annotate it with @Delete?
Example:
@Dao
public interface MyDao {
@Delete
public void deleteUsers(User... users);
}

  • 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.

Answer: C

 

NEW QUESTION 80
A content label sometimes depends on information only available at runtime, or the meaning of a View might change over time. For example, a Play button might change to a Pause button during music playback. In these cases, to update the content label at the appropriate time, we can use:

  • A. View#setContentLabel(int contentDescriptionResId)
  • B. View#setContentDescription(int contentDescriptionResId)
  • C. View#setContentLabel(CharSequence contentDescription)
  • D. View#setContentDescription(CharSequence contentDescription)

Answer: D

Explanation:
Reference:
https://support.google.com/accessibility/android/answer/7158690?hl=en

 

NEW QUESTION 81
In general, you should send an AccessibilityEvent whenever the content of your custom view changes. For example, if you are implementing a custom slider bar that allows a user to select a numeric value by pressing the left or right arrows, your custom view should emit an event of type TYPE_VIEW_TEXT_CHANGED whenever the slider value changes. Which one of the following sample codes demonstrates the use of the sendAccessibilityEvent() method to report this event.

  • A. @Override
    public boolean onKeyUp (int keyCode, KeyEvent event) {
    if (keyCode == KeyEvent.KEYCODE_ENTER) {
    currentValue--;
    sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CONTEXT_CLICKED);
    return true;
    }
    ...
    }
  • B. @Override
    public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) { boolean completed = super.dispatchPopulateAccessibilityEvent(event); CharSequence text = getText(); if (!TextUtils.isEmpty(text)) { event.getText().add(text); return true;
    }
    return completed;
    }
  • C. @Override
    public boolean onKeyUp (int keyCode, KeyEvent event) {
    if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT) {
    currentValue--;
    sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED);
    return true;
    }
    ...
    }

Answer: C

Explanation:
Reference:
https://developer.android.com/guide/topics/ui/accessibility/custom-views

 

NEW QUESTION 82
For example, our preferences.xml file was added by addPreferencesFromResource (R.xml.preferences). Our preferences.xml file contains such item:
<ListPreference android:id="@+id/order_by" android:key="@string/pref_sort_key" android:title="@string/pref_sort_title" android:summary="@string/pref_sort_summary" android:dialogTitle="@string/pref_sort_dialog_title" android:entries="@array/sort_oder" android:entryValues="@array/sort_oder_value" android:defaultValue="@string/pref_default_sort_value" app:iconSpaceReserved="false" /> In our Fragment, we can dynamically get current notification preference value in this way:

  • A. boolean sortBy = PreferenceManager.getSharedPreferences(getContext()).getBoolean ( getContext().getResources().getBoolean(R.bool.pref_default_sort_value), getContext().getString(R.string.pref_sort_key) );
  • B. String sortBy = PreferenceManager.getDefaultSharedPreferences(getContext ()).getString( getContext().getString(R.string.pref_sort_key), getContext().getString(R.string.pref_default_sort_value) )
  • C. String sortBy = PreferenceManager.getSharedPreferences(getContext()).getString( getContext().getString(R.string.pref_default_sort_value), getContext().getString(R.string.pref_sort_key) );
  • D. String sortBy = PreferenceManager.getDefaultSharedPreferences(getContext ()).getString( getContext().getString(R.string.pref_sort_key), getContext().getResources().getBoolean(R.bool.pref_default_sort_value) );

Answer: B

 

NEW QUESTION 83
......


User interface

  • Describing the Android operation lifecycle.
  • Building a UI with a ConstraintLayout,
  • Creating an Activity that shows the Layout
  • Knowing how to make a custom app theme.
  • Adding accessibility hooks to a custom View.
  • Understanding how to use content descriptions to make views more available.
  • Describing how to build a custom View class and include it in a Layout.
  • Knowing how to show items in a RecyclerView by the Paging library and binding local data.
  • Understanding how to use menu-based and drawer navigation.

 

Associate-Android-Developer Exam Questions Get Updated [2021] with Correct Answers: https://www.testkingpdf.com/Associate-Android-Developer-testking-pdf-torrent.html