nerdexam
Android

AND-401 · Question #134

Which of the following methods updates a ListView when an element is added to the data set?

The correct answer is C. notifyDataSetChanged(). See the full explanation below for the reasoning.

Question

Which of the following methods updates a ListView when an element is added to the data set?

Options

  • Anotify()
  • BnotifyAll()
  • CnotifyDataSetChanged()
  • DnotifyDataSetInvalidate()

How the community answered

(48 responses)
  • A
    17% (8)
  • B
    4% (2)
  • C
    71% (34)
  • D
    8% (4)

Community Discussion

No community discussion yet for this question.

Full AND-401 Practice