A. Improved readability – Classes help organize related data and behavior, making the code more readable and easier to understand, especially in larger applications.
E. Code organization – Classes provide a structured way to group functions (methods) and variables (attributes), improving maintainability and modularity in the codebase.
benefits of classes over functions :
- Organization: Classes can group related data and methods into a logical unit, making the code more modular and maintainable.
- Abstraction: Classes can hide the implementation details of objects and expose only the relevant interfaces, making the code more readable and robust
- Specialization: Classes can inherit from other classes and override or extend their methods, making the code more reusable and flexible.
I choose A & C
A. Variable Reusability - "Creating a new class creates a new type of object, allowing new instances of that type to be made. Each class instance can have attributes attached to it for maintaining its state."
Reference: https://docs.python.org/3/tutorial/classes.html
C. Code Organization - "Classes provide an easy way of keeping the data members and methods together in one place which helps in keeping the program more organized."
Reference: https://intellipaat.com/blog/tutorial/python-tutorial/python-classes-and-objects/
This section is not available anymore. Please use the main Exam Page.200-901 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
cerifyme85
Highly Voted 1 year, 9 months agodaniii89
Most Recent 3 months agoMuste
8 months, 3 weeks agom4xr1s
1 year, 8 months agoWoonesuf
1 year, 8 months agoWoonesuf
1 year, 8 months agobrunorpacheco
1 year, 8 months agor3mo
1 year, 9 months agoD0rm9nt
1 year, 10 months agooutrageous7
1 year, 10 months ago