181,917 views
3 votes
3 votes
The while loop has two important parts: (1) a boolean expression that is tested for a true or false value, and (2) a statement or block of statements that is repeated as long as the expression is true.A.TrueB.False

User Substack
by
3.4k points

2 Answers

5 votes
5 votes

Answer:

The given statement is "True".

Step-by-step explanation:

The while loop is iterating the condition when the condition is true if the condition which is given inside the while loop parenthesis is false it will not iterating the loop that's why sometimes while is also known as an Entry control loop. The while loop has tested the condition for a true or false value that's why the first statement is true.

In the second statement, the statement inside the while loop is executed until the condition of while loop is true when the condition id False it stops the execution of a while loop that's why the second statement is true.

User Mark Veenstra
by
3.6k points
2 votes
2 votes

Answer:

True is the correct answer for the above question.

Step-by-step explanation:

  • The loop is used to repeat some specifies tasks for a finite amount of time. It is of three types:- For, Do-while and While.
  • The While Loop is a Loop that has two things:- 1. The condition is used to decide that the loop statement executes or not and 2. Some line of the statement which holds the operation which helps the condition to be false after a finite iteration of the loop, so the loop executes finite times.
  • The question-statement also wants to state which is described above. Hence the Question statement is a true statement.
User Adrien De Peretti
by
3.5k points