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