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