A developer needs a value that must never be reassigned after it is set. Which declaration should they use in Kotlin?
Select an option, then click Submit answer.
- ○ val
- ○ var
- ○ lateinit var
- ○ const var
Loading demo links...
Showing 1–10 of 10 questions
A developer needs a value that must never be reassigned after it is set. Which declaration should they use in Kotlin?
Select an option, then click Submit answer.
What is the output of this Kotlin code? fun main() { val name = "Sara"; println("Hello, $name!") }
Select an option, then click Submit answer.
What is the entry point of a standalone Kotlin program?
Select an option, then click Submit answer.
A variable is declared as var city: String? = null. Which expression safely reads its length without crashing?
Select an option, then click Submit answer.
What does the Elvis operator ?: do in the expression val label = name ?: "Guest"?
Select an option, then click Submit answer.
What is printed by this code? val grade = 85; val result = when { grade >= 90 -> "A"; grade >= 80 -> "B"; else -> "C" }; println(result)
Select an option, then click Submit answer.
How many times does this loop body run? for (i in 1..5) { println(i) }
Select an option, then click Submit answer.
A developer wants the sequence 10, 8, 6, 4, 2. Which range expression produces it?
Select an option, then click Submit answer.
Which TWO statements about Kotlin are true? Select TWO.
Select all that apply, then click Submit answer.
Which TWO statements about Android SDK levels are true? Select TWO.
Select all that apply, then click Submit answer.
This page holds a free practice test for the Android Application Development (AND-X01) certification from Android. You will find 10 free questions, drawn from the full Study4Pass practice set of 80 questions for this exam. The questions follow the same topic balance as the real exam: Kotlin Programming Fundamentals; Android Framework and Android Studio; User Interfaces, Layouts and Styles; Activities, Intents, Dialogs and Widgets; Navigation, Firebase and Location Services; App Testing and Publishing.
Pick an answer for each question and check it straight away — the correct answer and a full explanation appear under the question. There is no time limit and nothing to sign up for. When an explanation is not enough, use Ask AI: this is an AI-Enabled practice test, and Ask AI explains the concept behind the question in plain language. Ready for more? The full 80-question set adds a timed Exam Simulation mode, topic training for your weak areas, and a flagged-question review.
Covers the Kotlin language from the v12 outline lessons 1-3: variables with val and var, data types and null safety, string templates and input, if and when expressions, for, while and do-while loops, break, continue and return, plus functions with default arguments and object-oriented programming with classes, data classes, inheritance, companion objects and visibility modifiers.
val and var, null safety and safe calls, Elvis operator, when expressions, ranges and loops, functions and default arguments, classes and constructors, data classes, open classes and inheritance, companion objects
Covers outline lesson 4: the Android software stack from the Linux kernel to the application framework, the role of AndroidManifest.xml, Gradle builds and dependencies, SDK levels, the standard project and res folder structure, Android Virtual Devices and the emulator, and debugging with Logcat in Android Studio.
Android architecture layers, AndroidManifest.xml, Gradle builds, minSdk and targetSdk, project structure, AVD and emulator use, Logcat debugging
Covers outline lessons 5-6: View and ViewGroup, building user interfaces with LinearLayout, ConstraintLayout, FrameLayout and ScrollView, match_parent and wrap_content sizing, dp and sp units, styles versus themes, View Binding, and options, context and popup menus.
View and ViewGroup, LinearLayout and ConstraintLayout, layout sizing, dp and sp units, styles and themes, View Binding, options and context menus
Covers outline lessons 7-8: the activity lifecycle, explicit and implicit intents and passing extras, Snackbar versus Toast, AlertDialog, notification channels and notifications, and common Android widgets including RecyclerView, Spinner, CheckBox, RadioButton and ProgressBar.
activity lifecycle callbacks, explicit and implicit intents, intent extras, Snackbar and Toast, AlertDialog, notification channels, RecyclerView, Spinner and form widgets
Covers outline lessons 9-11: the Navigation component with NavController, navigation graphs, Safe Args, bottom navigation, navigation drawers, back-stack control and deep links; Firebase Authentication and the Realtime Database and Cloud Firestore with listeners and security rules; and location-aware apps using the fused location provider, runtime permissions, Google Maps markers, and Geocoder.
NavController and NavGraph, Safe Args, deep links, Firebase Authentication, Realtime Database and Firestore, security rules, fused location, runtime permissions, Google Maps and Geocoder
Covers outline lesson 12: local unit tests versus instrumented tests, JUnit assertions, Espresso UI testing, release signing and keystore safety, versionCode versus versionName, Google Play Console testing and production tracks, and pre-publish checks for a release build.
unit and instrumented tests, JUnit assertions, Espresso UI tests, app signing and keystores, versionCode management, Play Console release tracks, pre-publish checks
Yes — the 10 questions on this page are completely free, with no signup and no payment details needed.
80 questions. The 10 free questions above are a sample of that full set, in the same style and topic balance.
Yes — every question shows the correct answer with an explanation, and Ask AI can explain the concept behind a question in plain words if you want to go deeper.