Android Studio – 8 – Activity Lifecycle in Android MCQ

Android Studio – 8 – Activity Lifecycle in Android

1 / 26

1. What is the Activity Lifecycle in Android?

2 / 26

2. Which method is called when an Activity is first created?

3 / 26

3. Which method is called when an Activity is about to become visible to the user?

4 / 26

4. Which method is called when an Activity is no longer visible to the user?

5 / 26

5. Which method is called when an Activity is paused and can no longer respond to user input?

6 / 26

6. Which method is called when an Activity is resumed after being paused?

7 / 26

7. Which method is called when an Activity is stopped and can no longer be seen by the user?

8 / 26

8. Which method is called when an Activity is destroyed and its resources are released?

9 / 26

9. Which method is called when an Activity is restarted after being stopped?

10 / 26

10. In which order are the onCreate(), onStart(), and onResume() methods called when an Activity is first created?

11 / 26

11. In which order are the onPause(), onStop(), and onDestroy() methods called when an Activity is being destroyed?

12 / 26

12. Which method is called when an Activity is brought back to the foreground after being paused?

13 / 26

13. What is the purpose of the onPause() method in the Activity Lifecycle?

14 / 26

14. What is the purpose of the onStart() method in the Activity Lifecycle?

15 / 26

15. What is the purpose of the onStop() method in the Activity Lifecycle?

16 / 26

16. What is the purpose of the onRestart() method in the Activity Lifecycle?

17 / 26

17. Which method is called when an Activity is paused and another Activity comes into focus?

18 / 26

18. Which method is called when an Activity is stopped and another Activity comes into focus?

19 / 26

19. Which method is called when an Activity is destroyed and another Activity comes into focus?

20 / 26

20. What is the purpose of the onDestroy() method in the Activity Lifecycle?

21 / 26

21. What is the purpose of the onRestoreInstanceState() method in the Activity Lifecycle?

22 / 26

22. Which method is called when an Activity is paused and the user interacts with another Activity?

23 / 26

23. Which method is called when an Activity is stopped and the user interacts with another Activity?

24 / 26

24. Which method is called when an Activity is destroyed and the user interacts with another Activity?

25 / 26

25. What is the purpose of the onSaveInstanceState() method in the Activity Lifecycle?

26 / 26

26. Which method is called when an Activity is paused and the user presses the back button?

Your score is

0%