Which of the following coding practices are helpful in simplifying code?

Which of the following coding practices are helpful in simplifying code? Each correct answer
represents a complete solution. Choose all that apply.

Which of the following coding practices are helpful in simplifying code? Each correct answer
represents a complete solution. Choose all that apply.

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.
Processes should have multiple entry and exit points.

C.
Programmers should implement high-consequence functions in minimum required lines of code
and follow proper coding standards.
Processes should have multiple entry and exit points.

Explanation:
The various coding practices that are helpful in simplifying the code are as follows:
Programmers should implement high-consequence functions in minimum required lines of code
and follow the proper coding standards. Software should implement the functions that are defined
in the software specification. Software should avoid ambiguities and hidden assumptions,
recursion, and GoTo statements. Programmers should use multiple small and simple functions
rather than a complex function. The processes should have only one entry point and minimum exit
points. Interdependencies should be minimum so that a process module or component can be
disabled when it is not needed, or replaced when it is found insecure or a better alternative is
available, without disturbing the software operations. Programmers should use object-oriented
techniques to keep the code simple and small. Some of the object-oriented techniques are object
only one entry point and the minimum number of exit points.



Leave a Reply 0

Your email address will not be published. Required fields are marked *