Module 4 Quiz :Android App Components – Intents, Activities, and Broadcast Receivers (Android App Development Specialization) Answers 2025
Question 1 — What an Activity Is
❌ A message describing an action/event
❌ Background component
✔️ A component that defines a user-facing operation on the screen
❌ Event handler for broadcasts
Question 2 — What a Hook Method Is
❌ Unnamed block of code
❌ Event handler for broadcasts
✔️ Used to customize framework classes with app-specific logic
❌ Smallest unit of execution
Question 3 — Activity Lifecycle Hook Methods
❌ onBind() (Service hook)
❌ onReceive() (BroadcastReceiver hook)
✔️ onDestroy()
✔️ onResume()
✔️ onStart()
✔️ onPause()
✔️ onCreate()
✔️ onStop()
Question 4 — startActivityForResult()
❌ Asynchronous + one-way
❌ Synchronous + two-way
❌ Synchronous + one-way
✔️ Asynchronous + two-way (starts activity, returns result later)
Question 5 — Lifecycle Methods NOT Guaranteed in Low Memory
✔️ onDestroy()
✔️ onStop()
❌ onResume()
❌ onPause()
Question 6 — System Services That Call Lifecycle Methods
✔️ Activity Manager Service
❌ Location Manager
❌ Notification Manager
❌ Window Manager
Question 7 — What Happens When User Types in Keyboard
✔️ UI focus unchanged — no lifecycle callbacks
❌ onResume() called
❌ New activity created
❌ onStart() called
Question 8 — What a Task Is
❌ Unit of execution
✔️ Group of activities user interacts with to perform a job
❌ Unnamed block of code
❌ Background component
Question 9 — Activities in Concurrent Apps
✔️ UI-thread methods must be short + non-blocking
✔️ Long ops must use background threads
✔️ UI toolkit only accessed on UI thread
❌ Activities cannot be used concurrently
Question 10 — HaMeR Framework Capabilities
❌ Handles async requests via intents (that’s IntentService)
❌ Background component
✔️ Enables background work + publishes results to UI thread without direct threading APIs
✔️ Enables background operations + UI-thread publishing
📌 SUMMARY TABLE
| Q | Correct Answers (✔️) |
|---|---|
| 1 | Activity = UI-facing component |
| 2 | Hook method customizes framework classes |
| 3 | onCreate, onStart, onResume, onPause, onStop, onDestroy |
| 4 | Asynchronous & two-way |
| 5 | onStop, onDestroy |
| 6 | Activity Manager Service |
| 7 | UI focus unchanged; no lifecycle calls |
| 8 | Group of activities = a task |
| 9 | Non-blocking UI, background threads, UI-thread access only |
| 10 | Background → UI thread, no manual thread/handler work |