Question: What is the select statement used for?

  1. executing a function concurrently
  2. executing a different case based on the type of a variable
  3. executing a different case based on the value of a variable
  4. executing a different case based on which channel returns first

Answer: The correct answer of the above question is Option D:executing a different case based on which channel returns first