Kotlin Fundamentals: Activity and Fragment lifecycles quiz

  1. Which of the following is not an activity lifecycle state?
  2. Which lifecycle method is called to make an activity visible?
  3. Which lifecycle method is called to give an activity focus?
  4. Your app contains a physics simulation that requires heavy computation to display onscreen. Then the user gets a phone call. Which of the following is true?
  5. Which lifecycle method should you override to pause the simulation when the app is not on the screen?
  6. To make a class lifecycle-aware through the Jetpack lifecycle library, which interface should the class implement?