0
0
Android Kotlinmobile~20 mins

Android SDK and API levels in Android Kotlin - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Android SDK Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Android SDK Versions
Which Android SDK version introduced the Material Design guidelines?
AAPI level 23 (Marshmallow)
BAPI level 19 (KitKat)
CAPI level 21 (Lollipop)
DAPI level 18 (Jelly Bean)
Attempts:
2 left
💡 Hint
Material Design was a big visual update introduced around 2014.
ui_behavior
intermediate
2:00remaining
API Level and Runtime Permissions
From which Android API level did apps need to request dangerous permissions at runtime instead of install time?
AAPI level 22 (Lollipop MR1)
BAPI level 21 (Lollipop)
CAPI level 24 (Nougat)
DAPI level 23 (Marshmallow)
Attempts:
2 left
💡 Hint
This change improved user control over app permissions.
lifecycle
advanced
2:00remaining
Behavior Change in Background Execution
Which API level introduced restrictions on background services to improve battery life?
AAPI level 26 (Oreo)
BAPI level 25 (Nougat)
CAPI level 28 (Pie)
DAPI level 24 (Nougat)
Attempts:
2 left
💡 Hint
This change limited apps running in the background starting around 2017.
navigation
advanced
2:00remaining
API Level and Navigation Component
Which minimum API level is required to use the Android Jetpack Navigation Component?
AAPI level 16 (Jelly Bean)
BAPI level 19 (KitKat)
CAPI level 14 (Ice Cream Sandwich)
DAPI level 21 (Lollipop)
Attempts:
2 left
💡 Hint
Navigation Component supports most devices from Jelly Bean onward.
📝 Syntax
expert
2:00remaining
Checking API Level at Runtime
What is the correct Kotlin code snippet to check if the device is running at least API level 23 before executing a block?
Android Kotlin
if (/* condition here */) {
  // execute code
}
Aif (Build.VERSION.SDK_INT == Build.VERSION_CODES.M) { }
Bif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { }
Cif (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) { }
Dif (Build.VERSION.SDK_INT > Build.VERSION_CODES.M) { }
Attempts:
2 left
💡 Hint
You want to include API level 23 and above.