What are the three of the reasons programmers use independent Sub procedures?

What will be an ideal response?


List three:1. Avoid duplicating code: When different sections of a program need to perform the same task, you can enter the code in a procedure and then have each section call the procedure to perform its task when needed.2. Modify in only one place: If the task performed by an independent Sub procedure subsequently changes, you need to make the modification in only the procedure rather than in all of the sections that use the procedure.3. Make procedures easier to code and understand: If an event procedure performs many tasks, you can prevent the procedure's code from getting unwieldy and difficult to understand by assigning some of the tasks to one or more independent Sub procedures. Doing this makes the event procedure easier to code because it allows you to concentrate on one small piece of the code at a time.4. Allow a team of programmers to code the application: Independent Sub procedures areused extensively in large and complex applications, which typically are written by a team ofprogrammers. The team will break up the application's code into small and manageable tasks, and then assign some of the tasks to different team members to be coded as independent Sub procedures. Doing this allows more than one programmer to work on the application at the same time, decreasing the time it takes to complete the application.

Computer Science & Information Technology

You might also like to view...

The DB function used to calculate the declining balance depreciation has the following syntax: _______.

A. =DB(salvage, life, period [month]) B. =DB(cost, salvage, period [month]) C. =DB(salvage, cost, life, period [month]) D. =DB(cost, salvage, life, period [month])

Computer Science & Information Technology

In an AVL tree, if after deleting a node the root is left or even high, we need to do a right rotation to fix it.

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

Computer Science & Information Technology

The dye-sublimation printing technique is an example of what method of color printing?

A. PPM B. RGB C. CMYK D. LEDS

Computer Science & Information Technology

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

1. When configuring a 1756-ENET Ethernet driver using RSLinx, select a dummy modem cable to connect the module and the personal computer. 2. The 1756-ENET Ethernet driver must be configured prior to configuring the personal computer with which communication is desired. 3. In the Add New RSLinx Classic Driver window, the best option is to accept the default driver name. 4. When configuring a 1756-ENET Ethernet driver using RSLinx, enter the IP address of the 1756-ENET module in the Configure Driver window; do not enter the IP address of the personal computer. 5. In the Configure Drivers window, the word “running” listed twice for a configured driver verifies communication with the target device.

Computer Science & Information Technology