InterviewSolution
| 1. |
What Are Control Instructions And How Many Types Of Control Instructions Are Available In A Shell? Explain In Brief. |
|
Answer» Control Instructions are the ones, which enable us to specify the order in which the VARIOUS instructions in a program/script are to be executed by the COMPUTER. Basically, they determine a flow of control in a program. There are 4 types of control instructions that are available in a shell: Sequence Control Instruction – This ensures that the instructions are executed in the same order in which they appear in the program. Selection or Decision Control Instruction – It allows the computer to take a decision as to which instruction is to be executed next. Repetition or Loop Control Instruction – It HELPS a computer to execute a group of statements repeatedly. Case-Control Instruction – This is USED when we need to SELECT from several alternatives. Control Instructions are the ones, which enable us to specify the order in which the various instructions in a program/script are to be executed by the computer. Basically, they determine a flow of control in a program. There are 4 types of control instructions that are available in a shell: Sequence Control Instruction – This ensures that the instructions are executed in the same order in which they appear in the program. Selection or Decision Control Instruction – It allows the computer to take a decision as to which instruction is to be executed next. Repetition or Loop Control Instruction – It helps a computer to execute a group of statements repeatedly. Case-Control Instruction – This is used when we need to select from several alternatives. |
|