Question: Why is dispatchGroup used in certain situations?

  1. It allows multiple synchronous or asynchronous operations to run on different queues.
  2. It allows track and control execution of multiple operations together.
  3. It allows operations to wait for each other as desired.
  4. all of these answers.

Answer: The correct answer of the above question is Option D:all of these answers.