What does the while statement do in the script when the condition is true?

Observe the following while loop:
while true
do
echo ” Welcome”
sleep 5
done
What does the while statement do in the script when the condition is true?

Observe the following while loop:
while true
do
echo ” Welcome”
sleep 5
done
What does the while statement do in the script when the condition is true?

A.
It executes the echo command 5 times with a sleep time of 5 minutes.

B.
It executes the echo command infinitely with a sleep time of 5 minutes.

C.
It executes the echo command 5 times with a sleep time of 5 seconds.

D.
It executes the echo command infinitely with a sleep time of 5 seconds.



Leave a Reply 0

Your email address will not be published. Required fields are marked *