KnowledgeBoat Logo

Computer Applications

Define the following:

(a) Normal flow of control

(b) Conditional flow of control

Input in Java

16 Likes

Answer

(a) Normal flow of control

It is a sequential movement of the control from one statement to another from beginning to the end of the program. It is the simplest way of executing a program, where there is no restriction on flow of control during the process.

(b) Conditional flow of control

Sometimes, it may happen that a statement or a set of statements is executed only when a given condition results in true. However, if the condition results in false, then these statements are ignored and the control moves forward to the next statement of the program. This type of flow of control is known as the conditional flow of control and the statements are known as the decision making statements.

It can be achieved by using the following statements:

  1. if statement
  2. if-else statement
  3. if-else-if statement

Answered By

10 Likes


Related Questions