PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Blog available for sell
This blog is available for sale. Please 'contact us' if interested.
Advertise with us
Python Multiple Choice Questions
What is the use of duck typing?
A. More restriction on the type values that can be passed to a given method
B. No restriction on the type values that can be passed to a given method
C. Less restriction on the type values that can be passed to a given method
D. Makes the program code smaller
Show Answer
Next Question
Correct Answer:
C
Explanation: In Python, any set of classes with a common set of methods can be treated similarly. This is called duck typing. Hence duck typing imposes less restrictions.
© 2024-2025 Python Circle
Contact
Sponsor
Archive
Sitemap