Certified Information Systems Security Professional CISSP · Free Practice Question Easy
Question 125
- A Cohesion
- B Coupling
- C Software libraries
- D Object-oriented programming
Reveal correct answer
Correct answer: A
Explanation
Correct Answer:
A is correct. Cohesion reflects how many different types of tasks a module can carry out, with the goal being to perform only one task (high cohesion), which makes modules easier to maintain.
Incorrect Answers:
B is incorrect. Coupling is a measure of how much a module depends on other modules. A module that has low (loose) coupling does not need to communicate with many other modules to carry out its job. A module that has high (tight) coupling depends on many other modules to carry out its tasks. Low coupling is more desirable because the module is easier to understand and easier to reuse, and it can be changed without affecting many modules around it.
C is incorrect. A software library is a collection of components that do specific things that are useful to many other components.
D is incorrect. In object-oriented programming (OOP), related functions and data are encapsulated together in classes, which may then be instantiated as objects.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
