Google Associate-Android-Developer Dumps - The Sure Way To Pass Exam [Q68-Q83]

Share

Google Associate-Android-Developer Dumps - The Sure Way To Pass Exam

Associate-Android-Developer Exam Questions (Updated 2021) 100% Real Question Answers


Career Opportunities

The professionals with the Associate Android Developer certification can take up the job roles of Software Developers, Application Developers, Software Engineers, Android Mobile Application Developers, and Associate Game Programmers, among others. The average salary for this certificate is $87,291 per annum. However, the remuneration will depend on numerous factors, such as location, level of experience, type of hiring organization, etc.


Google Associate-Android-Developer Exam Syllabus Topics:

TopicDetails
Topic 1
  • Know how to apply content descriptions to views for accessibility
  • Be able to describe the basic building blocks of an Android app
Topic 2
  • Understand the Android activity lifecycle
  • Understand how to create a custom View class and add it to a Layout
Topic 3
  • Display simple messages in a popup using a Toast or a Snackbar
  • Be able to use the System Log to output debug information
Topic 4
  • Understand how to define data using Room entities
  • Be able to schedule a background task using WorkManager
Topic 5
  • Understand how to localize an app
  • Understand how to display items in a Recycler View
Topic 6
  • Be able to read and parse raw resources or asset files
  • Be able to access Room database with data access object (DAO)
Topic 7
  • Be able to bind local data to a RecyclerView list using the Paging library
  • Understand the architecture of the Android system
Topic 8
  • Understand the basic debugging techniques available in Android Studio
  • Know how to build and run an Android app
Topic 9
  • Understand how to use a Repository to mediate data operations
  • Be able to create persistent Preference data from user input
Topic 10
  • Understand how to use breakpoints in Android Studio
  • Understand how to implement drawer navigation

 

NEW QUESTION 68
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:

  • A. Repository
  • B. ViewModel
  • C. Activity/Fragment
  • D. Room database

Answer: A

 

NEW QUESTION 69
With our Context we can get SharedPreferences with a method, named: getSharedPreferences (String name, int mode). What value can we transfer in a "mode"parameter?

  • A. MODE_PRIVATE or MODE_PUBLIC
  • B. MODE_WORLD_WRITEABLE, and MODE_MULTI_PROCESS
  • C. combination of MODE_WORLD_READABLE and MODE_WORLD_WRITEABLE
  • D. Value is either 0 or a combination of MODE_PRIVATE, MODE_WORLD_READABLE

Answer: D

 

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

  • A. InputStream input = context.getResources().openRawResource(R.raw.sample_teas);
  • B. InputStream input = context.openRawResource(R.raw.sample_teas);
  • C. InputStream input = context.getRawResource(R.raw.sample_teas);

Answer: A

 

NEW QUESTION 71
In application theme style, flag windowDrawsSystemBarBackgrounds (<item name="android:windowDrawsSystemBarBackgrounds">) indicates:

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

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 72
As an example. Our MutableLiveData<Long> object, named mLapseTime, is not connected to a Room database, etc. How can we change the value in mLapseTime?

  • A. mLapseTime.postValue("new String")
  • B. mLapseTime.changeValue(1000l)
  • C. mLapseTime.setValue(1000l)

Answer: C

 

NEW QUESTION 73
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 Into you can

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

Answer: D

 

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

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

Answer: E

 

NEW QUESTION 75
For example, we have a BufferedReader reader, associated with the json file through InputStreamReader. To get a file data we can do this:

  • A. var line: String? try {
    while (reader.readLine().also { line = it } != null) { builder.append(line)
    }
    val json = JSONObject(builder.toString())
    return json
    } catch (exception: IOException) {
    exception.printStackTrace()
    } catch (exception: JSONException) {
    exception.printStackTrace()
    }
  • B. var line: JSONObject ? try {
    while (reader.readJSONObject ().also { line = it } != null) {
    builder.append(line)
    }
    val json = JSONObject(builder.toString())
    return json
    } catch (exception: IOException) {
    exception.printStackTrace()
    } catch (exception: JSONException) {
    exception.printStackTrace()
    }
  • C. var line: String? try {
    while (reader.readLine().also { line = it } != null) { builder.append(line)
    }
    val json = JSONObject(builder.toString())
    return json
    } catch (exception: RuntimeException) {
    exception.printStackTrace()
    } catch (exception: ArrayIndexOutOfBoundsException) {
    exception.printStackTrace()
    }

Answer: A

 

NEW QUESTION 76
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. NotificationChannel.setImportance()
  • B. NotificationChannel.setPriority()
  • C. NotificationCompat.Builder.setImportance()

Answer: A

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

 

NEW QUESTION 77
The easiest way of adding menu items (to specify the options menu for an activity) is inflating an XML file into the Menu via MenuInflater. With menu_main.xml we can do it in this way:

  • A. @Override
    public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true;
    }
  • B. @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.menu.menu_main);
    }
  • C. @Override
    public boolean onOptionsItemSelected(MenuItem item) {
    getMenuInflater().inflate(R.menu.menu_main, menu);
    return super.onOptionsItemSelected(item);
    }

Answer: A

Explanation:
Reference:
https://developer.android.com/guide/topics/ui/menus

 

NEW QUESTION 78
To automate UI tests with Android Studio, you implement your test code in a separate Android test folder. Folder could be named:

  • A. app/java/androidTest
  • B. app/androidTest/java
  • C. app/src/androidTest/java

Answer: C

 

NEW QUESTION 79
What is illustrated in the picture?

  • A. The Variables and Watches panes in the Debugger window
  • B. Debugging native code using LLDB
  • C. Adding a watchpoint to a variable in memory
  • D. The Breakpoints window lists all the current breakpoints and includes behavior settings for each
  • E. Logcat window with filter settings

Answer: C

 

NEW QUESTION 80
By default, the notification's text content is truncated to fit one line. If you want your notification to be longer, for example, to create a larger text area, you can do it in this way:

  • A. NotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID)
    .setContentText("Much longer text that cannot fit one line...")
    .setStyle(new NotificationCompat.BigTextStyle()
    .bigText("Much longer text that cannot fit one line..."))
    ...
  • B. NotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID)
    .setContentText("Much longer text that cannot fit one line...")
    .setLongText("Much longer text that cannot fit one line..."))
    ...
  • C. NotificationCompat.Builder builder = new NotificationCompat.Builder(this, CHANNEL_ID)
    .setContentText("Much longer text that cannot fit one line...")
    .setTheme(android.R.style.Theme_LongText);
    ...

Answer: A

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

 

NEW QUESTION 81
LiveData.postValue() and LiveData.setValue() methods have some differences. So if you have a following code executed in the main thread:
liveData.postValue("a"); liveData.setValue("b");
What will be the correct statement?

  • A. The value "a" would be set at first and would not be overridden with the value "b".
  • B. The value "a" would be set at first and later the main thread would override it with the value "b".
  • C. The value "b" would be set at first and later the main thread would override it with the value "a".
  • D. The value "b" would be set at first and would not be overridden with the value "a".

Answer: B

 

NEW QUESTION 82
Which statement is most true about layout_constraintLeft_toRightOf and layout_constraintStart_toEndOf constraints ?

  • A. layout_constraintLeft_toRightOf works with horizontal axes and layout_constraintStart_toEndOf works with vertical axes
  • B. layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in case if user choose a language that uses right-to-left (RTL) scripts, such as Arabic or Hebrew, for their UI locale
  • C. layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in any case
  • D. layout_constraintLeft_toRightOf is equal to layout_constraintStart_toEndOf in case if user choose a language that uses left-to-right (LTR) scripts, such as English or French, for their UI locale

Answer: D

Explanation:
Reference:
https://developer.android.com/training/basics/supporting-devices/languages

 

NEW QUESTION 83
......


Exam Topics

Before attempting the certification exam, the candidates must develop competence in solving the coding challenges that are covered in it. The content of the test is briefly outlined below:

App Functionality: Within this subject area, the examinees should possess the capacity to construct apps that utilize media services, messaging, connectivity, and multitasking of Android to design and develop the full-featured applications working primarily on mobile devices.

User Interface: This domain requires competence in quickly creating applications with effective and clean user interfaces that can benefit from the rich UI frameworks of Android.

Debugging: The applicants should have an understanding of the debugging tools within the domain of Android Studio. They also need to be able to design and create more robust and reliable apps.

Data Management: The test takers should demonstrate their skills in leveraging the effective techniques and frameworks of Android to schedule or effectively carry out data storage or retrieval within a mobile environment.

Testing: The examinees need to have the skills required to evaluate the operation of running programs to discover errors and unexpected or abnormal behavior.

 

Pass Google Associate-Android-Developer Exam Quickly With Real4Prep: https://www.real4prep.com/Associate-Android-Developer-exam.html