FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Complete this sentence: ____ is used to execute a particular set of statements repeatedly until a condition is satisfied.
A
Sequence
B
Iteration
C
Selection
D
All of the above
Explanation: 

Detailed explanation-1: -You can use the iterative statement structure to perform the same statement or group of statements repeatedly while a condition is true. This type of flow control is also referred to as “looping".

Detailed explanation-2: -If you put some condition for a block of statements, the execution flow may change based on the result evaluated by the condition. This process is called decision making in ‘C. ‘ It is also called as branching as a program decides which statement to execute based on the result of the evaluated condition.

Detailed explanation-3: -The iteration structure executes a sequence of statements repeatedly as long as a condition holds true. The sequence structure simply executes a sequence of statements in the order in which they occur.

Detailed explanation-4: -In python, a while loop is used to execute a block of statements repeatedly until a given condition is satisfied. And when the condition becomes false, the line immediately after the loop in the program is executed.

There is 1 question to complete.