English

What are the advantages of defining a method in a program? - Computer Applications

Advertisements
Advertisements

Question

What are the advantages of defining a method in a program? 

Answer in Brief

Solution

The advantages of defining a method in a program are as follows:

  1. Because the same program segment can be used repeatedly by changing the input values to achieve the desired outputs, it promotes reusability and shortens the program's duration.
  2. It decreases the amount of memory.
  3. Because the program is relatively shorter, it also makes debugging easier.
shaalaa.com
  Is there an error in this question or solution?
Chapter 5: User - Defined Methods - EXERCISES [Page 337]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 5 User - Defined Methods
EXERCISES | Q VI. 12. | Page 337
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×