Oracle
1Z0-409 · Question #16
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?
The correct answer is D. It executes the echo command infinitely with a sleep time of 5 seconds. See the full explanation below for the reasoning.
Question
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?
Options
- AIt executes the echo command 5 times with a sleep time of 5 minutes.
- BIt executes the echo command infinitely with a sleep time of 5 minutes.
- CIt executes the echo command 5 times with a sleep time of 5 seconds.
- DIt executes the echo command infinitely with a sleep time of 5 seconds.
How the community answered
(34 responses)- A9% (3)
- B6% (2)
- C3% (1)
- D82% (28)
Community Discussion
No community discussion yet for this question.