Which code reads the text typed in an EditText named etName (Kotlin)?

  1. etName.input()
  2. etName.hint
  3. etName.text.toString()
  4. etName.getValue()
Answer

C) etName.text.toString()

text returns an Editable; toString() converts it to a String.

Computer Science MCQ · More Lab: Registration Form UI MCQs · Practise