Question: For the for-yield construct, is the scope separate between for-body and yield-body?
- Yes and no. It is different depending on the for construct and what it does.
- Yes, because the for section does not expose its scope.
- No, because for-yield shares the same scope, even though they are within separate curly braces.
- Yes, because they are within different curly braces.
Answer: The correct answer of the above question is Option C:No, because for-yield shares the same scope, even though they are within separate curly braces.