exam questions

Exam FC0-U61 All Questions

View all questions & answers for the FC0-U61 exam

Exam FC0-U61 topic 1 question 241 discussion

Actual exam question from CompTIA's FC0-U61
Question #: 241
Topic #: 1
[All FC0-U61 Questions]

Which of the following would be the BEST design construct to allow developers to group functions and properties for reuse when designing an application?

  • A. Constant
  • B. Vector
  • C. Function
  • D. Class
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
fcc_class
2 months ago
Selected Answer: D
D. Class Explanation: A class is a fundamental programming construct used in object-oriented programming (OOP) to group functions (methods) and properties (attributes) together. This allows for code reusability, modularity, and organization when designing an application. Why not the other options? A. Constant – A constant holds a fixed value that does not change, but it does not group functions and properties. B. Vector – A vector is a dynamic array used for storing elements, but it is not used for organizing functions and properties. C. Function – A function encapsulates a block of code but does not provide a structure to group multiple functions and properties together. Since a class enables grouping of related functions and properties, it is the best design construct for application development.
upvoted 1 times
...
_denw
8 months, 2 weeks ago
Selected Answer: D
D. Class A class is the best design construct to allow developers to group functions (methods) and properties (attributes) for reuse when designing an application. Classes serve as blueprints for creating objects (instances) that share the same attributes and behaviors, facilitating code reusability, organization, and modular design in object-oriented programming.
upvoted 2 times
...
CircaG
10 months ago
D. Class. In object-oriented programming, a class is a blueprint for creating objects. It encapsulates data (properties) and behaviors (functions/methods) into a single unit. This encapsulation promotes code organization, reusability, and maintainability.
upvoted 2 times
...
TheMCP
1 year, 7 months ago
Selected Answer: C
Function = reusable blocks of code
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