FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Consider the loop control structure in programming. Which term describes a loop that continues repeating without a terminating (ending) condition?
A
Unlimited loop
B
Conditional loop
C
Infinite loop
D
Sequence loop
Explanation: 

Detailed explanation-1: -An infinite loop is a sequence of instructions in a computer program which loops endlessly, either due to the loop having no terminating condition, having one that can never be met, or one that causes the loop to start over.

Detailed explanation-2: -Because the while loop checks the condition/expression before the block is executed, the control structure is often also known as a pre-test loop.

Detailed explanation-3: -A loop is a sequence of instructions that is repeated until a certain condition is met. An example would be the process of getting an item of data and changing it, and then making sure some condition is checked-such as if a counter has reached a prescribed number.

Detailed explanation-4: -The basic Control Structures in programming languages are: Conditionals (or Selection): which are used to execute one or more statements if a condition is met. Loops (or Iteration): which purpose is to repeat a statement a certain number of times or while a condition is fulfilled.

There is 1 question to complete.