QuestionQ290

Secure Software Implementation

Which coding practices help simplify code? Each correct answer represents a complete solution. Choose all that apply.

Choose three
  • A Programmers should use multiple small and simple functions rather than a single complex function.
  • B Software should avoid ambiguities and hidden assumptions, recursions, and GoTo statements.
  • C Programmers should implement high-consequence functions in minimum required lines of code and follow proper coding standards.
  • D Processes should have multiple entry and exit points.
Explanation

Code is simpler and easier to verify when it is decomposed into small, focused functions; avoids ambiguity, hidden assumptions, recursion, and unstructured jumps; and keeps high-consequence functions as short as necessary while following coding standards. Structured code favors single entry and exit points rather than multiple ones.

Community Discussion

No comments yet. Be the first to start the discussion!