What is procedure? List the types of procedures.
The small, logical and functional part of the program is known as procedure or module.
The types of procedures are listed below:
1) SUB procedure.
2) FUNCTION procedure.
What is modular programming? Mention any four advantages of modular programming.
Modular programming is a programming technique in which a program is divided into many small logical, manageable and functional parts.
Any four advantages of modular programming are listed below:
1) The same procedure can be used more than once without rewriting it. So, it reduces the length of the program.
2) Individual procedure can be written independently so; it is suitable for a teamwork.
3) The debugging of the program becomes easier and faster.
4) The procedure can be tested and developed separately.