exam questions

Exam 200-901 All Questions

View all questions & answers for the 200-901 exam

Exam 200-901 topic 1 question 306 discussion

Actual exam question from Cisco's 200-901
Question #: 306
Topic #: 1
[All 200-901 Questions]

What are two benefits of using classes over functions when writing applications? (Choose two.)

  • A. improved readability
  • B. increased compatibility
  • C. variable reusability
  • D. increased performance
  • E. code organization
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
cerifyme85
Highly Voted 1 year, 9 months ago
Selected Answer: AE
I think
upvoted 6 times
...
daniii89
Most Recent 3 months ago
Selected Answer: AE
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.
upvoted 1 times
...
Muste
8 months, 3 weeks ago
Selected Answer: AE
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.
upvoted 1 times
...
m4xr1s
1 year, 8 months ago
Selected Answer: CE
C and E
upvoted 3 times
...
Woonesuf
1 year, 8 months ago
Selected Answer: AC
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/
upvoted 1 times
Woonesuf
1 year, 8 months ago
Actually C and E !!!
upvoted 2 times
...
...
brunorpacheco
1 year, 8 months ago
Pretty subjective.
upvoted 1 times
...
r3mo
1 year, 9 months ago
A and C..
upvoted 1 times
...
D0rm9nt
1 year, 10 months ago
correct
upvoted 1 times
...
outrageous7
1 year, 10 months ago
are we sure?
upvoted 1 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago