Certified Professional in Python Programming (PCPP-32-101) — Question 19
What is true about the unbind() method? (Choose two.)
Answer options
- A. It is invoked from within the event's object.
- B. It is invoked from within a widget’s object
- C. It needs a widget's object as an argument.
- D. It needs the event name as an argument
Correct answer: B, D
Explanation
Option B is correct because the unbind() method is specifically called from within a widget's object to remove event handlers. Option D is also correct since the method requires the event name as an argument to specify which event to unbind. Options A and C are incorrect as they misrepresent the context and requirements of the unbind() method.