Multiple choice

Which of the following statements is/are correct?

A. The getCount() returns the number of items in the pages. B. The. getItem() returns the fragment at the specified position.

  1. Only A

  2. Only B

  3. Both A and B

  4. Neither A nor B

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The getCount() returns the total number of fragments in the pages and the getItem() returns the fragment at the specified position.This method will be called as the user scrolls through the pages.