0
0
Android Kotlinmobile~10 mins

Why Android dominates mobile market share in Android Kotlin - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to print the Android market share percentage.

Android Kotlin
val marketShare = 72.2
println("Android market share is $[1]%")
Drag options to blanks, or click blank then click option'
AandroidShare
BmarketShare
C72.2
D"marketShare"
Attempts:
3 left
💡 Hint
Common Mistakes
Using quotes around the variable name prints the name, not the value.
Using an undefined variable name causes an error.
2fill in blank
medium

Complete the code to create a list of Android advantages.

Android Kotlin
val advantages = listOf("Open Source", [1], "Wide Device Range")
Drag options to blanks, or click blank then click option'
A"Limited Apps"
BCustomizable
C"Customizable"
D"Expensive"
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around string elements.
Using invalid variable names instead of strings.
3fill in blank
hard

Fix the error in the code that checks if Android is dominant.

Android Kotlin
val marketShare = 72.2
val isDominant = marketShare [1] 50
println("Is Android dominant? $isDominant")
Drag options to blanks, or click blank then click option'
A>
B==
C<
D=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' instead of '==' or comparison operators.
Using '<' which checks the opposite condition.
4fill in blank
hard

Fill both blanks to create a map of Android features and their benefits.

Android Kotlin
val features = mapOf("Open Source" to [1], "Customizable" to [2])
Drag options to blanks, or click blank then click option'
A"Free to use"
B"Limited"
C"Flexible UI"
D"Expensive"
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up benefits with negative words.
Using incorrect syntax for mapOf values.
5fill in blank
hard

Fill all three blanks to filter Android devices with screen size over 6 inches.

Android Kotlin
val devices = listOf(5.5, 6.1, 6.5, 5.8)
val largeScreens = devices.filter { it [1] [2] } // inches
println("Large screens: $[3]")
Drag options to blanks, or click blank then click option'
A>
B6
ClargeScreens
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using '<' instead of '>' for filtering.
Printing the wrong variable name.