nerdexam
Oracle

1Z0-811 · Question #61

Identify three advantages of object-oriented programming.

The correct answer is B. modularity. Modularity (B), code reuse (D), and information hiding (E) are the three correct answers - the system appears to show only B, but all three are recognized OOP advantages. Why B, D, and E are correct: OOP bundles data and behavior into objects (modularity), allows classes to be…

Object-Oriented Programming Principles

Question

Identify three advantages of object-oriented programming.

Options

  • AA separation of state and behavior
  • Bmodularity
  • Cinformation sharing
  • Dcode reuse
  • Einformation hiding

How the community answered

(48 responses)
  • B
    94% (45)
  • C
    2% (1)
  • E
    4% (2)

Explanation

Modularity (B), code reuse (D), and information hiding (E) are the three correct answers - the system appears to show only B, but all three are recognized OOP advantages.

Why B, D, and E are correct: OOP bundles data and behavior into objects (modularity), allows classes to be extended or instantiated repeatedly without rewriting logic (code reuse), and restricts direct access to internal state through encapsulation (information hiding). These three properties are foundational to why OOP became the dominant paradigm.

Why A is wrong: "Separation of state and behavior" describes procedural programming, not OOP. OOP does the opposite - it combines state (fields) and behavior (methods) inside the same object.

Why C is wrong: "Information sharing" is not a standard OOP advantage and contradicts information hiding. OOP deliberately limits sharing of internal details to reduce coupling.

Memory tip: Think of the acronym MRC - Modularity, Reuse, Concealm ent (hiding). If an answer sounds like OOP exposes or separates things, it's a trap - OOP encapsulates and combines.

Topics

#modularity#code reuse#encapsulation#OOP principles

Community Discussion

No community discussion yet for this question.

Full 1Z0-811 Practice