Question: Given the fragment below, how would you get access to a TextView with an ID of text_home contained in the layout file of a Fragment class?

  1. root.getById(R.id.text_home)
  2. findViewByID(R.id.text_home)
  3. root.findViewById(R.id.text_home)
  4. root.find(R.id.text_home)

Answer: The correct answer of the above question is Option C:root.findViewById(R.id.text_home)