Multiple choice technology operating systems

You want to wait for 5 sec at the end of the loop in each loop cycle.Which command will you use?

  1. sleep

  2. pause

  3. wait

  4. any of above three

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

sleep is the standard shell/programming command used to pause execution for a specified duration (e.g., sleep 5). pause and wait serve different purposes, such as waiting for background processes or user input, making them incorrect for simple duration-based delays.