FUNDAMENTALS OF COMPUTER

COMPUTER PROGRAMMING FUNDAMENTALS

WHAT IS PROGRAMMING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
While
A
To provide a response if a statement is not met
B
To provide a response if a statement is met
C
A loop with a condition set at the start
D
Used in a question as part of the decision process
Explanation: 

Detailed explanation-1: -However a while loop will test the condition before the code within the block is executed. This means that the code is always executed first and then the expression or test condition is evaluated. This process is repeated as long as the expression evaluates to true. If the expression is false the loop terminates.

Detailed explanation-2: -A “While” Loop is used to repeat a specific block of code an unknown number of times, until a condition is met. For example, if we want to ask a user for a number between 1 and 10, we don’t know how many times the user may enter a larger number, so we keep asking “while the number is not between 1 and 10".

Detailed explanation-3: -A do while loop is a control flow statement that executes a block of code at least once, and then repeatedly executes the block, or not, depending on a given boolean condition at the end of the block. Some languages may use a different naming convention for this type of loop.

There is 1 question to complete.