COMPUTER PROGRAMMING FUNDAMENTALS
WHAT IS PROGRAMMING
| 
 Question 
 [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
 
 | 
| 
 | 
  Functions 
 
 | 
| 
 | 
  Procedures 
 
 | 
| 
 | 
  Functions and procedures 
 
 | 
| 
 | 
 None of the above
 
 | 
Detailed explanation-1: -In high-level languages, subprograms are also called subroutines, procedures, and functions. In object-oriented languages, they are usually called methods or constructors.
Detailed explanation-2: -There are two types of subprograms: Procedures and Functions. A function is used for calculating value and a procedure is used to do an action. A subprogram can be considered as a module that is integrated to build a large program. This helps to give a modular architecture.
Detailed explanation-3: -A subprogram is a program unit/module that performs a particular task. These subprograms are combined to form larger programs. This is basically called the ‘Modular design’. A subprogram can be invoked by another subprogram or program which is called the calling program.
Detailed explanation-4: -A Subprogram is a program inside any larger program that can be reused any number of times. Characteristics of a Subprogram: (1) A Subprogram is implemented using the Call & Return instructions in Assembly Language.