List four guidelines for correct modular programming.

What will be an ideal response?


Four guidelines for correct modular programming are:

A. Keep each module to a manageable size
B. Pay particular attention to the critical interfaces
C. Minimize the number of modules the user needs to modify when making changes
D. Maintain the hierarchical relationships set up in the top-down phases

Computer Science & Information Technology

You might also like to view...

Exceptions generated by the classes from the java.lang package are stored in ____.

A. java.util B. java.io C. java.awt D. java.lang

Computer Science & Information Technology

What is top-down design?

What will be an ideal response?

Computer Science & Information Technology

The strongest link in any security scheme is the user.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Analyze the following code:

``` public class Test { public static void main(String[] args) { Test test = new Test(); test.setAction(() -> System.out.print("Action 1! ")); } public void setAction(T t) { t.m1(); } } interface T { public void m1(); public void m2(); } ``` a. The program displays Action 1. b. The program has a compile error because T is not a functional interface. T contains multiple methods. c. The program would work if you delete the method m2 from the interface T. d. The program has a runtime error because T is not a functional interface. T contains multiple methods.

Computer Science & Information Technology