Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to launch the Android emulator from the command line.
Android Kotlin
emulator -avd [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using commands like 'start' or 'run' which are not valid emulator options.
Not specifying the exact AVD name.
✗ Incorrect
The command 'emulator -avd Pixel_5_API_30' starts the emulator with the specified virtual device name.
2fill in blank
mediumComplete the code to list all available Android Virtual Devices (AVDs).
Android Kotlin
emulator -list-[1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'devices' which is not recognized by the emulator command.
Using 'images' or 'emulators' which are invalid options.
✗ Incorrect
The command 'emulator -list-avds' lists all the available Android Virtual Devices.
3fill in blank
hardFix the error in the command to start the emulator with a cold boot.
Android Kotlin
emulator -avd Pixel_5_API_30 [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-cold-boot' which is not a valid emulator option.
Using '-wipe-data' which erases user data instead of just cold booting.
✗ Incorrect
The option '-no-snapshot-load' forces the emulator to start fresh without loading a saved snapshot, effectively a cold boot.
4fill in blank
hardFill both blanks to correctly start the emulator with a specific scale and no audio.
Android Kotlin
emulator -avd Pixel_5_API_30 [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-no-window' which hides the emulator window.
Using GPU options which are unrelated to scale or audio.
✗ Incorrect
The option '-scale 0.75' sets the emulator window scale to 75%, and '-no-audio' disables audio output.
5fill in blank
hardFill all three blanks to create an AVD with a specific name, device, and system image using the avdmanager command.
Android Kotlin
avdmanager create avd -n [1] -d [2] -k "system-images;android-30;google_apis;x86"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using device names instead of device ids.
Mixing up the order of name and device options.
✗ Incorrect
The command creates an AVD named 'MyEmulator' using the device 'Pixel_5' and the system image for Android 30 with Google APIs. The device id is 'pixel'.