The . . . . . . . . statement in pseudocode acts like loop.

Goto
Exit
End
If

The correct answer is: While.

A while loop is a control flow statement that allows code to be executed repeatedly as long as a condition is true. The syntax for a while loop in pseudocode is as follows:

while condition:
statement(s)

The condition is evaluated before each iteration of the loop. If the condition is true, the statement(s) inside the loop are executed. After the statement(s) are executed, the condition is evaluated again. This process continues until the condition is false.

For example, the following pseudocode prints the numbers from 1 to 10:

i = 1
while i <= 10:
print(i)
i = i + 1

The first time the condition is evaluated, i is 1 and the condition is true. Therefore, the statement inside the loop is executed, which prints 1. After the statement is executed, i is incremented to 2. The condition is evaluated again, and since i is still less than or equal to 10, the statement inside the loop is executed again. This process continues until i is 11, at which point the condition is false and the loop terminates.

The other options are not loops.

  • Goto is a statement that transfers control to a label.
  • Exit is a statement that terminates the program.
  • End is a statement that marks the end of a program or function.
  • If is a statement that executes a block of code if a condition is true.
Exit mobile version