CISSP practice question 34 of 35

Which programming methodology allows a programmer to use pre-determined blocks of code end consequently reducing development time and programming costs?

Full set: 1,485 questions

Domain Software Development Security

Answer options
A: Application security
B: Object oriented Correct answer
C: Blocked algorithm
D: Assembly language
Correct Answer:
B. Object oriented
Explanation

Object-Oriented Programming (OOP) is a programming paradigm based on the concept of "objects," which are instances of classes. A class serves as a blueprint, a pre-determined block of code that bundles data (attributes) and the methods (functions) that operate on that data. This structure inherently promotes code reusability. By creating and reusing objects, programmers can build complex applications from existing, tested components. This modular approach significantly reduces development time, minimizes redundant code, and lowers overall programming costs, directly addressing the core of the question.

References

1. Abelson, H., & Sussman, G. J. (1996). Structure and Interpretation of Computer Programs (2nd ed.). MIT Press. Section 3.1, "Assignment and Local State," introduces the concept of computational objects that encapsulate state and behavior, forming the basis for modularity and reusability in programming. (Available via MIT Press and MIT OCW).

2. Weisfeld, M. (2009). The Object-Oriented Thought Process (3rd ed.). Addison-Wesley Professional. Chapter 2, "How to Think in Terms of Objects," explains that a primary advantage of OOP is the ability to reuse code. It states, "One of the main promises of OO development is code reuse... a developer can build a new class by picking and choosing from a set of existing classes." (p. 29).

3. Snyder, A. (1986). Encapsulation and inheritance in object-oriented programming languages. In Conference proceedings on Object-oriented programming systems, languages and applications (OOPSLA '86) (pp. 38–45). ACM. This foundational paper discusses how core OOP concepts like encapsulation and inheritance are mechanisms that facilitate the creation of reusable software components. DOI: https://doi.org/10.1145/28697.28702.

Scroll to Top