Multiple choice

Match the Event Handlers with the Event listeners:

   
1. onClick() A. OnFocusChangeListener()
2. onLongClick() B. OnClickListener()
3. onFocusChange() C. OnLongClickListener()
4. onKey() D. OnMenuItemClickListener()
5. onTouch() E. OnTouchListener()
6. onMenuItemClick() F. OnKeyListener()

  1. 1 – A, 2 – B, 3 – C, 4 – D, 5 – E, 6 – F

  2. 1 – B, 2 – C, 3 – A, 4 – F, 5 – E, 6 – D

  3. 1 – C, 2 – B, 3 – A, 4 – E, 5 – F, 6 – D

  4. 1 – A, 2 – C, 3 – B, 4 – D, 5 – F, 6 – E

  5. 1 – E, 2 – C, 3 – B, 4 – D, 5 – F, 6 – A

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

Here the mapping of the Event Handlers and Event Listeners are very simple. But, notice that they are case sensitive. With the help of Eclipse IDE, this is easy enough.