Interview Questions

Here are some questions to ask yourself to ensure that you have a good understanding of fragments in Android:

  1. What is the parent class of Fragment?
  2. How is a fragment like an activity?
  3. How is a fragment different from an activity?
  4. What is a back stack used for?
  5. Can you have an application that does not use a back stack?
  6. True or false: rolling back a FragmentTransaction restores an application to its prior state.
  7. How does a <fragment> tag specify which fragment to use?
  8. Do you attach the data adapter to the ListFragment, or to the ListView within the ListFragment?
  9. What are the different ways to find an existing fragment running in your application?
  10. What is an interpolator, and what is it used for?
  11. List some of the view dimensions ...

Get Pro Android 4 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.