Welcome to the “Understanding Android Application and Activity Lifecycles” quiz! This quiz focuses on the essential concepts of lifecycle management in Android, including process states, the Activity Stack, activity states, and handling state changes. You’ll explore how Android manages limited resources, prioritizes processes, and transitions activities between states to ensure a responsive user experience.
1.
How can an activity avoid being restarted during specific configuration changes?
2.
What happens to an activity's state when it is paused?
3.
Which lifecycle method is called when an activity transitions to the foreground?
4.
What is the role of lifecycle-aware components in Android?
5.
What happens to an activity when it is paused?
6.
What is the lowest-priority process state in Android?
7.
What is a visible process in Android?
8.
What is the purpose of handling state changes in Android applications?
9.
Which state is assigned the highest priority in the Android process hierarchy?
10.
What is the purpose of the Activity Stack in Android?
11.
What is a configuration change in Android?
12.
What is the main goal of Android's process and activity lifecycle management?
13.
How does Android determine which process to terminate when resources are constrained?
14.
What is the Activity Stack also referred to as?
15.
What is the primary responsibility of the Android operating system regarding resource management?
16.
What happens to an activity when it is killed by the runtime system?
17.
What is a primary cause for an activity to transition from active to paused?
18.
What is the default behavior of an activity during a configuration change?
19.
Which activity state retains all its data but is no longer visible to the user?
20.
What determines a process's priority in Android?