nerdexam
Cisco

200-901 · Question #516

What are two benefits of organizing code into classes, methods, functions, and modules? (Choose two.)

The correct answer is A. improves readability B. improves reusability. Organizing code into well-named classes, methods, functions, and modules provides two primary software engineering benefits. First, 'improves readability' (A): breaking logic into named, focused units makes code easier to understand, navigate, and maintain because each piece…

Software Development and Design

Question

What are two benefits of organizing code into classes, methods, functions, and modules? (Choose two.)

Options

  • Aimproves readability
  • Bimproves reusability
  • Cimproves parallelism
  • Dimproves performance
  • Edecreases complexity

How the community answered

(46 responses)
  • A
    93% (43)
  • C
    4% (2)
  • E
    2% (1)

Explanation

Organizing code into well-named classes, methods, functions, and modules provides two primary software engineering benefits. First, 'improves readability' (A): breaking logic into named, focused units makes code easier to understand, navigate, and maintain because each piece has a clear, single responsibility. Second, 'improves reusability' (B): encapsulated functions and modules can be called from multiple places in the codebase (or across projects) without duplicating code. Organizing code into abstractions does not inherently improve parallelism (C) or raw performance (D) - those require different techniques. While good structure can help manage complexity, 'decreases complexity' (E) is a less precise description of the direct benefit than readability and reusability.

Topics

#Code organization#Modularity#Reusability#Readability

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice