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

Exam Questions

94%

Students found the real exam almost the same

1,057

Students passed this exam after ExamsQA Prep

95.1%

Average score during Real Exams at the Testing Centre

💡

Browse at least 50% questions to maximize your chances of passing

Free Preview Questions

Sample Associate-Android-Developer Exam Questions & Explanations

Practice with real question formats, multiple choice options, and detailed answer explanations for Google Cloud Associate-Android-Developer.

Question #1 Verified Q&A
What is a correct part of an Implicit Intent for sharing data implementation?
A val sendIntent = Intent().apply { action = Intent.ACTION_SEND<br /> ...
B val sendIntent = Intent(this, UploadService::class.java).apply { data = Uri.parse(fileUrl)<br /> ...
C val sendIntent = Intent(this, UploadService::class.java).apply { putExtra(Intent.EXTRA_TEXT,<br /> textMessage) ...
D val sendIntent = Intent().apply { type = Intent.ACTION_SEND;<br /> ...
Correct Answer: val sendIntent = Intent().apply { action = Intent.ACTION_SEND<br /> ...
Explanation:
Create the text message with a string<br />
val sendIntent = Intent().apply { action = Intent.ACTION_SEND<br />
putExtra(Intent.EXTRA_TEXT, textMessage) type = "text/plain"<br />
}<br />
<br />
Reference: https://developer.android.com/guide/components/fundamentals
Question #2 Verified Q&A
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 var builder = NotificationCompat.Builder(this, CHANNEL_ID)<br /> .setContentText("Much longer text that cannot fit one line...") .setLongText("Much longer text that cannot fit one line...")) ...
B var builder = NotificationCompat.Builder(this, CHANNEL_ID)<br /> .setContentText("Much longer text that cannot fit one line...")<br /> .setTheme(android.R.style.Theme_LongText);<br /> ...
C var builder = NotificationCompat.Builder(this, CHANNEL_ID)<br /> .setContentText("Much longer text that cannot fit one line...") .setStyle(NotificationCompat.BigTextStyle() .bigText("Much longer text that cannot fit one line...")) ...
Correct Answer: var builder = NotificationCompat.Builder(this, CHANNEL_ID)<br /> .setContentText("Much longer text that cannot fit one line...") .setStyle(NotificationCompat.BigTextStyle() .bigText("Much longer text that cannot fit one line...")) ...
Explanation:
https://developer.android.com/training/notify-user/build-notification
Question #3 Verified Q&A
Select correct demonstration of WorkRequest cancellation.
A val request1: WorkRequest = OneTimeWorkRequest.Builder (FooWorker::class.java).build() val request2: WorkRequest = OneTimeWorkRequest.Builder (BarWorker::class.java).build() val request3: WorkRequest = OneTimeWorkRequest.Builder (BazWorker::class.java).build() workManager.beginWith(request1, request2).then(request3).enqueue()
B val request: WorkRequest = OneTimeWorkRequest.Builder (FooWorker::class.java).build() workManager.enqueue(request) workManager.cancelWork(request)
C val request: WorkRequest = OneTimeWorkRequest.Builder (FooWorker::class.java).build() workManager.enqueue(request) workManager.cancelWorkById(request.id)
D val request: WorkRequest = OneTimeWorkRequest.Builder (FooWorker::class.java).build() workManager.enqueue(request)<br /> val status = workManager.getWorkInfoByIdLiveData(request.id) status.observe(...)
E workManager.enqueue(OneTimeWorkRequest.Builder(FooWorker::class.java).build())
Correct Answer: val request: WorkRequest = OneTimeWorkRequest.Builder (FooWorker::class.java).build() workManager.enqueue(request) workManager.cancelWorkById(request.id)
Explanation:
Videos: Working with WorkManager, from the 2018 Android Dev Summit WorkManager: Beyond the basics,<br />
from the 2019 Android Dev Summit<br />
<br />
Reference: https://developer.android.com/reference/androidx/work/WorkManager?hl=en
Question #4 Verified Q&A
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) {<br /> KeyEvent.KEYCODE_ENTER -> {<br /> currentValue--<br /> sendAccessibilityEvent (AccessibilityEvent.TYPE_VIEW_CONTEXT_CLICKED) true<br /> }<br /> ...<br /> }<br /> }
B override fun dispatchPopulateAccessibilityEvent(event: AccessibilityEvent): Boolean {<br /> return super.dispatchPopulateAccessibilityEvent(event).let { completed -> if (text?.isNotEmpty() ==<br /> true) {<br /> event.text.add(text) true<br /> } else {<br /> completed<br /> }<br /> }<br /> }
C override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean { return when(keyCode) {<br /> KeyEvent.KEYCODE_DPAD_LEFT -> {<br /> currentValue--<br /> sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED) true<br /> }<br /> ...<br /> }<br /> }
Correct Answer: override fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean { return when(keyCode) {<br /> KeyEvent.KEYCODE_DPAD_LEFT -> {<br /> currentValue--<br /> sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_TEXT_CHANGED) true<br /> }<br /> ...<br /> }<br /> }
Explanation:
https://developer.android.com/guide/topics/ui/accessibility/custom-views
Question #5 Verified Q&A
The easiest way of adding menu items (to specify the options menu for an activity) is inflating an<br />
<br />
XML file into the Menu via MenuInflater. With menu_main.xml we can do it in this way:
A override fun onOptionsItemSelected(item: MenuItem): Boolean {<br /> menuInflater.inflate(R.menu.menu_main, menu) return super.onOptionsItemSelected(item)<br /> }
B override fun onCreateOptionsMenu(menu: Menu): Boolean {<br /> menuInflater.inflate(R.menu.menu_main, menu)<br /> return true<br /> }
C override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)<br /> setContentView(R.menu.menu_main)<br /> }
Correct Answer: override fun onCreateOptionsMenu(menu: Menu): Boolean {<br /> menuInflater.inflate(R.menu.menu_main, menu)<br /> return true<br /> }
Explanation:
https://developer.android.com/guide/topics/ui/accessibility/custom-views

Want to practice all 128 questions?

Practice under real exam conditions with instant grading, timed simulations, and community insights.

Start Full Associate-Android-Developer Practice Test

Frequently Asked Questions

Common questions about the Google Cloud Associate-Android-Developer certification practice test

How many questions are in the Google Cloud Associate-Android-Developer practice exam on ExamsQA?
Our Associate-Android-Developer (Google Developers Certification – Associate Android Developer (Kotlin and Java Exam)) practice question bank currently includes 128 verified questions with comprehensive explanations.
Are the Associate-Android-Developer exam practice questions up to date for 2026?
Yes, all Google Cloud Associate-Android-Developer practice questions are regularly updated and verified against current exam objectives.
Will the Associate-Android-Developer practice questions help me pass on my first attempt?
The Associate-Android-Developer (Google Developers Certification – Associate Android Developer (Kotlin and Java Exam)) question bank is built to mirror the real exam's format and topics, with detailed explanations for every answer so you understand the reasoning — not just memorize responses.
Is there a free demo available for Associate-Android-Developer Google Developers Certification – Associate Android Developer (Kotlin and Java Exam)?
Yes, ExamsQA offers free demo questions for the Associate-Android-Developer exam so you can test the interface and question quality before purchasing full access.