This week's book giveaway is in the OCP forum.
We're giving away four copies of OCP Java SE 8 Programmer II Exam Study Guide and have Kathy Sierra, Bert Bates, & Elizabeth Robson on-line!
See this thread for details.
Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Event HandlerS  RSS feed

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Based on the code:

1. Describe what it displays.
An alertdialog box will appear when the user selects an insufficient number of options.

2. When does an event handler (included in the code) executes?
The event handler gets executed whenever a user selects an option.

3. Explain the meaning of all of the parameters in the central, complicated call of the code.
???

4. Describe how the code handles two possible situations?
Situation 1: If the user selects an insufficient number of options, an error will pop up in the form of an alert dialog box.
Situation 2: If the user selects a sufficient number of options, the error will not pop up???


5. Explain a feature of what is displayed.
When the user selects an insufficient number of options, a dialog box will pop up (which is a form of an error) and will have a disabled button to reset the quiz. This would only be enabled if the user has selected atleast 1 option.


I have a series of question based on this question, but I'm not sure if I'm answering them correctly.
 
Rancher
Posts: 42975
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
#3: Assuming you're talking about onClick (not sure what else might be "the central call of the code"), you can find descriptions of API call parameters in the Android javadocs.

I think there is much too little context to answer the others with any degree of certainty. Your answers may well be correct, but we can't tell for sure from this code snippet.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!