COMPUTER PROGRAMMING FUNDAMENTALS
PROGRAMMING LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
fixed variable
|
|
default variables
|
|
called by other programs
|
|
None of the above
|
Detailed explanation-1: -Subroutines are programs that are used by other routines to accomplish a particular task. A subroutine can be called from any point within the main body of the micro-program. Frequently, many micro-programs contain identical sections of code.
Detailed explanation-2: -All Exam Boards. A subroutine is a named section of code that can be called by writing the subroutine’s name in a program statement. Subroutines can also be referred to as procedures or functions.
Detailed explanation-3: -One program can call another program as a subroutine. The subroutine can be external (a separate program) or internal (included in the main program). Subroutines are useful when a program needs to repeat the same group of commands at several different places.
Detailed explanation-4: -A subprogram is either a function or a subroutine, and is either an internal, external, or module subprogram. You can also specify a function in a statement function statement. An external subprogram is a program unit.