Science, asked by Goutami9643, 1 year ago

Which of the following statement is false?the for loop is a pretest loop.the loop body of the for loop is executed at least once.the control variable does not have to appear in the for loop.the control variable does not have to be an int data type?

Answers

Answered by sajithemmanuel73
0

Answer:

the loop body of the for loop is executed at least once

Explanation:

MARK ME AS BRAINLIEST..PLS

Answered by Anonymous
0

The statement "the loop body of the for loop is executed at least once" is false.

  • In the case of a for loop, a for loop checks how many times the loop will run by checking the condition given as a parameter. Thus for loop and while loop is called a pretest loop.
  • Only in the case of a do-while loop, execution of the whole body is done at least once. After that, it checks for the condition.
  • In the case of for loop, the control variable is not required always. We can run a for loop just by using conditional statements as TRUE or FALSE.
  • Lastly, the control variable doesn't always require an integer data type. It can be float or char or double.

#SPJ3

Similar questions