Exam Information
Free practice questions with explanations
Android AND-801 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 10
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Lesson 10: Location-Aware Apps: Using GPS and Google Maps
A logistics company is building an Android app that shows drivers the nearest depot on a Google Map. The app must work on devices where the user has granted only approximate location, and battery use must stay low because drivers use the app for hours. The developer currently requests fine location and polls GPS every second to refresh the map marker. Which change is the BEST way to meet the requirements?
Correct Answer: BExplanationUsers may grant only approximate location, so the app should request coarse location as well, and a fused location request with a balanced power accuracy priority and a longer interval gives updates at lower battery cost than continuous GPS polling. Keeping fine location and merely lowering polling via an alarm still demands a permission that the user may have withheld and wastes the location pipeline's setup cost. Loading the maps website in a WebView avoids the Maps SDK integration and API key the app is meant to use. The Geocoder converts between addresses and coordinates and does not produce live device positions, so it cannot drive the marker.
-
2 Question 2 Single choice Lesson 1: Introduction to Kotlin
A developer is writing a Kotlin utility that reads a user-supplied integer from a console program. The developer wants a variable that can be reassigned later in the function but must never hold null, and wants the compiler to reject any code path that might pass a nullable value into a function expecting a non-null Int. Which declaration best meets these requirements?
Correct Answer: AExplanationA var declared as a non-nullable Int is reassignable and the compiler enforces that it can never hold null, so passing it to a function expecting Int is always safe. The val with a nullable type fails the reassignment requirement and allows null. The nullable var fails the no-null requirement because the compiler will reject passing it to a non-null parameter without a check. const val requires a compile-time constant and cannot be reassigned, so it fails the reassignment requirement.
-
3 Question 3 Multiple choice Lesson 2: Control Flow Statements
A team is reviewing a Kotlin function that classifies incoming sensor readings. The function must return a category for each reading, must stop scanning a list as soon as a critical reading is found, and must skip readings flagged as invalid without ending the scan. Which TWO statements describe correct use of control flow in this design? (Choose two.)
Correct Answer: D, EExplanationbreak terminates the innermost enclosing loop, which satisfies stopping the scan at the first critical reading, and continue skips the remainder of the current iteration so invalid readings are passed over while the scan continues. The statement that continue ends the function is wrong because that is the behaviour of return. The claim about return is wrong because return exits the enclosing function entirely. The claim about when is wrong because a when used as a statement on a non-sealed, non-enum subject does not require else in the way stated, and this distractor misstates the rule.
-
4 Question 4 Drag and drop Lesson 3: Functions & Object-Oriented Programming (OOP)
A team is refactoring a Kotlin inventory module. Each requirement below must be met by a specific class or construct. Match each requirement to the Kotlin construct that satisfies it.
Drag each item onto its matching target. On a phone: tap an item, then tap a target.
Define a contract that unrelated classes can implement without inheriting any stateShare the same stored properties across several subclasses while preventing direct instantiation of the base typeStore a fixed set of named constants such as order states with a type-safe valueBuild a reusable container whose element type is supplied by each callerGeneric classEnum classData classAbstract classInterface classSealed objectCorrect Answer:- Share the same stored properties across several subclasses while preventing direct instantiation of the base type → Abstract class
- Define a contract that unrelated classes can implement without inheriting any state → Interface class
- Store a fixed set of named constants such as order states with a type-safe value → Enum class
- Build a reusable container whose element type is supplied by each caller → Generic class
ExplanationAn abstract class can hold state shared by subclasses and cannot be instantiated directly, which matches the first requirement. An interface defines behaviour contracts that classes implement without carrying backing state. Enum classes model a fixed, named, type-safe set of constants. Generic classes take a type parameter so the element type is chosen by the caller. A data class is used for value holders with generated equality and does not match the contract requirement, and a sealed object is a singleton that does not model the listed behaviours.
-
5 Question 5 Single choice Lesson 4: Android Framework and Android Studio
A company ships a shopping app that must keep running smoothly on devices with limited memory. During testing, the operating system terminated a background process that hosted a visible activity while another app was in the foreground, causing users to lose unsaved form input. The engineers want to understand which process category the system protects most strongly and where they should therefore keep critical UI state. Which explanation best describes the correct process priority behaviour?
Correct Answer: CExplanationThe foreground process holds the highest priority and is the last to be killed, so losing the form data suggests the app was not in the foreground at that moment, which means the team should examine lifecycle transitions and save state in onSaveInstanceState. The other choices misstate the ordering: cached processes are the first candidates for termination, visible processes are protected above cached processes, and services do not outrank the foreground process.
-
6 Question 6 Order list Lesson 5: Creating User Interface UI
A developer is building a pizza order screen where a customer selects a size using a radio button and a topping using a check box, and the order is confirmed on a button press. The developer must add the layout elements so the view IDs can be used by the activity code without causing lookup failures. Arrange the steps in the correct order.
Drag the steps into the correct order, or use the arrows.
- Inflate the layout with setContentView in the activity onCreate method
- Use findViewById with the R.id reference to obtain the view objects in the activity
- Declare each interactive view in the layout XML with a unique android:id attribute
- Add a RadioGroup containing the size RadioButton elements in the layout
Correct Answer:- Declare each interactive view in the layout XML with a unique android:id attribute
- Add a RadioGroup containing the size RadioButton elements in the layout
- Inflate the layout with setContentView in the activity onCreate method
- Use findViewById with the R.id reference to obtain the view objects in the activity
ExplanationThe layout XML must be defined first with unique IDs, so the generated R class contains the references. The RadioGroup container must hold the radio buttons so exclusive selection works, which is part of the layout definition. The activity must inflate the layout with setContentView before any view lookup, because findViewById searches the inflated hierarchy and returns null or fails if called earlier. Obtaining the views via findViewById is the final step once the hierarchy exists.
-
7 Question 7 Single choice Lesson 6: Android Layouts, Styles, Theme and Menus
A team builds a settings screen where a title and a long list of toggles must scroll vertically on small devices. The screen also has a single floating action button that must remain fixed at the bottom-right corner regardless of scroll position. The team wants the simplest layout arrangement that keeps the toggles scrollable and avoids nesting a ScrollView inside another scrolling container. Which approach is the BEST choice?
Correct Answer: AExplanationPlacing the scrollable content inside a ScrollView while the button sits as a sibling within a ConstraintLayout keeps the button anchored and out of the scrolling region. Wrapping everything in a ScrollView would make the button scroll away, which breaks the fixed-position requirement. TableRow is designed for grid-style rows and is not a scrolling container, so it cannot satisfy scrolling. A LinearLayout does not scroll merely by setting a scrollbars attribute, because scrolling requires a ScrollView wrapper.
-
8 Question 8 Dropdown Lesson 7: Toasts, Activities, Navigations, and Views
A developer is passing a selected order ID from a list activity to a detail activity. The receiving activity must read the value only if it was supplied, and must return to the previous screen without creating a new instance of the detail activity. Complete the Kotlin code by selecting the correct value for each blank.
Choose the correct value for each blank.
val orderId = intent.getStringExtra() ?: return
val intent = Intent(this, DetailActivity::class.java)
intent.putExtra(, orderId)
intent.flags = Intent.Correct Answer:val orderId = intent.getStringExtra("order_id") ?: return
val intent = Intent(this, DetailActivity::class.java)
intent.putExtra("order_id", orderId)
intent.flags = Intent.FLAG_ACTIVITY_SINGLE_TOPExplanationThe extra key must match between the sender and receiver, so both blanks use the same string key, and the flag FLAG_ACTIVITY_SINGLE_TOP prevents a second instance of an activity already at the top of the stack from being created, reusing it instead. FLAG_ACTIVITY_NEW_TASK starts the activity in a new task and does not avoid duplication. FLAG_ACTIVITY_CLEAR_TOP removes activities above the target but is not the primary way to stop a new instance when the activity is already on top. FLAG_ACTIVITY_NO_HISTORY keeps the activity out of the back stack, which conflicts with returning to the previous screen.
-
9 Question 9 Single choice Lesson 8: Android Dailogs, Snackbar, Menus WebView and Notifications
A health app posts reminder notifications on Android 8.0 and later. The product owner wants users to be able to silence the medication reminders separately from the hydration reminders in system settings, without disabling the entire app's notifications. Each reminder type must use its own sound and importance. Which implementation BEST satisfies this requirement?
Correct Answer: CExplanationOn Android 8.0 and later, notification importance and sound are controlled at the channel level, and users can silence individual channels in system settings. Creating one channel per reminder type gives independent control. Setting sounds on builders is ignored in favour of the channel configuration, so a single channel cannot give each type independent behaviour. Notification IDs identify a notification instance and do not create user-controllable categories. A Snackbar is a transient in-app message and is not a notification.
-
10 Question 10 Single choice Lesson 9: Android Storage, SQLite and Content Providers
A field-service app stores technician job records in an SQLite database. The company requires that the job data be readable only by the app, must survive app updates, and must not be exposed to other apps. Technicians also need an export feature that writes a CSV file users can attach to email. A developer proposes storing the database on external storage so it is easier to back up. Which storage decision BEST meets all requirements?
Correct Answer: BExplanationApp-private internal storage keeps the database inaccessible to other apps and persists across updates, meeting the security and durability requirements. The CSV export is a file meant to leave the app, so writing it to the app-specific external directory or sharing it through a FileProvider gives controlled access. Shared external storage is readable by other apps and violates confidentiality. Exporting the database through an exported content provider exposes the data to other apps. SharedPreferences is a key-value store and is unsuitable for relational job records.
These are 10 of the 45 questions in the full AND-801 pack.
Get All 45 QuestionsGet all 45 questions & answers
Full access options for Android AND-801
Self-study
PDF Version
- 45 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 45 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 45 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the AND-801 Exam (Android Application Development v8) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.