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.
How does the Android runtime system determine which activity to launch with an Intent?
2.
What is the main purpose of a Content Provider?
3.
What happens when a Service is killed due to insufficient resources?
4.
Where are Android application resources such as strings, images, and layouts stored?
5.
What is a practical use case for Broadcast Receivers?
6.
What type of Intent is used for system-wide notifications like power connection or screen changes?
7.
What is a practical use case for an Android Service?
8.
How can an Android Service reduce the likelihood of being terminated?
9.
What is the primary function of an activity in an Android app?
10.
What is a Broadcast Intent used for?
11.
What is the relationship between activities and fragments in Android?
12.
What is the role of a Broadcast Receiver?
13.
What file defines the structure of an Android application, including its components and permissions?
14.
What is the Android Context class used for?
15.
How can one activity launch another activity in Android?
16.
What is the default location for the Application Manifest file in an Android project?
17.
What type of components are described as standalone modules of functionality in Android?
18.
What is the purpose of a fragment in Android?
19.
What is the purpose of the R class in Android?
20.
What type of Intent allows Android to select the best matching activity to perform an action?