MCQs / Computer Science / Lab: Generating and Installing an APK
Lab: Generating and Installing an APK MCQs — Computer Science 14 multiple-choice questions on Lab: Generating and Installing an APK from Computer Science, each with the correct answer and, where available, a teacher's explanation. Read through them to revise the chapter, then practise the same questions one by one to test yourself.
1. Which Android Studio tool shows the size and contents of an APK? Device Manager Logcat APK Analyzer (Build → Analyze APK) Layout Inspector Answer: C) APK Analyzer (Build → Analyze APK)
Explanation: APK Analyzer breaks down dex files, resources and size.
Discuss this question
2. INSTALLFAILEDUPDATEINCOMPATIBLE usually means: The phone is full The APK has no icon The emulator is off The installed app has the same package name but a different signing key Answer: D) The installed app has the same package name but a different signing key
Explanation: Uninstall the old version signed with a different key first.
Discuss this question
3. Why must the keystore and passwords be backed up safely? It contains the source code Updates must be signed with the same key; losing it can prevent updating the app It makes the app run faster It is required to open Android Studio Answer: B) Updates must be signed with the same key; losing it can prevent updating the app
Explanation: The signing identity must stay the same across updates (unless Play upload-key reset is used).
Discuss this question
4. To install an APK received on WhatsApp, the user must allow: Developer options only Location access "Install unknown apps" for that source Airplane mode Answer: C) "Install unknown apps" for that source
Explanation: Android blocks installs from unknown sources until allowed.
Discuss this question
5. Which menu builds a debug APK in Android Studio? Tools → SDK Manager Run → Debug only Build → Build App Bundle(s) / APK(s) → Build APK(s) File → Export → APK Answer: C) Build → Build App Bundle(s) / APK(s) → Build APK(s)
Explanation: Build APK(s) creates app-debug.apk.
Discuss this question
6. Where should the keystore NOT be stored? On an encrypted backup In a password manager On a private USB drive In a public GitHub repository Answer: D) In a public GitHub repository
Explanation: Uploading the keystore exposes your signing key.
Discuss this question
7. The debug APK is signed with: No key at all Your release keystore An automatically generated debug key Google's app signing key Answer: C) An automatically generated debug key
Explanation: Android Studio signs debug builds with ~/.android/debug.keystore.
Discuss this question
8. Where is the debug APK saved? app/build/outputs/apk/debug/app-debug.apk app/src/main res/raw gradle/wrapper Answer: A) app/build/outputs/apk/debug/app-debug.apk
Explanation: Gradle writes outputs under app/build/outputs.
Discuss this question
9. Which command lists devices connected to adb? adb connect-all adb devices adb list adb show Answer: B) adb devices
Explanation: adb devices lists emulators and phones.
Discuss this question
10. The simplest way to install an APK on a running emulator is to: Restart Android Studio Drag and drop the APK file onto the emulator window Rename it to .zip Email it Answer: B) Drag and drop the APK file onto the emulator window
Explanation: The emulator installs dropped APKs automatically.
Discuss this question
11. Which command installs or updates an APK while keeping app data? adb install -r app.apk adb push app.apk adb install -d adb uninstall app.apk Answer: A) adb install -r app.apk
Explanation: -r reinstalls an existing app.
Discuss this question
12. Can an AAB file be installed directly on a phone by tapping it? Only on Android 4 Yes, always Only on emulators No – it is a publishing format; Play (or bundletool) generates APKs from it Answer: D) No – it is a publishing format; Play (or bundletool) generates APKs from it
Explanation: AABs are not directly installable.
Discuss this question
13. Which Gradle command builds a debug APK from the terminal? gradlew installRelease gradlew clean only gradlew assembleDebug gradlew run Answer: C) gradlew assembleDebug
Explanation: assembleDebug builds the debug variant.
Discuss this question
14. A keystore file for signing usually has the extension: .aab .apk .dex .jks Answer: D) .jks
Explanation: Java KeyStore files use .jks (or .keystore).
Discuss this question
Practise Lab: Generating and Installing an APK MCQs
More Computer Science chapters