Welcome to the “Anatomy of an Android App” quiz! This quiz will test your understanding of the core components that make up an Android application, including activities, fragments, intents, services, broadcast receivers, and content providers. You’ll also explore the roles of the Application Manifest, application resources, and the Android Context class. This foundational knowledge is essential for building efficient, modular, and reusable Android applications.
1.
What is a Broadcast Intent used for?
2.
What type of components are described as standalone modules of functionality in Android?
3.
What happens when a Service is killed due to insufficient resources?
4.
What type of Intent allows Android to select the best matching activity to perform an action?
5.
Where are Android application resources such as strings, images, and layouts stored?
6.
How can one activity launch another activity in Android?
7.
How can an Android Service reduce the likelihood of being terminated?
8.
What is the purpose of the R class in Android?
9.
What is the default location for the Application Manifest file in an Android project?
10.
What file defines the structure of an Android application, including its components and permissions?
11.
What is a practical use case for an Android Service?
12.
What is the primary function of an activity in an Android app?
13.
What is the relationship between activities and fragments in Android?
14.
What is the Android Context class used for?
15.
What is the purpose of a fragment in Android?
16.
What is the main purpose of a Content Provider?
17.
What is the role of a Broadcast Receiver?
18.
What is a practical use case for Broadcast Receivers?
19.
How does the Android runtime system determine which activity to launch with an Intent?
20.
What type of Intent is used for system-wide notifications like power connection or screen changes?