Google News
logo
Swift - Quiz(MCQ)
What are the characteristics of Switch in Swift?
A)
It supports any kind of data, and not only synchronize but also checks for equality
B)
Switch statement must be exhaustive, which means that you have to cover all possible values for your variable
C)
When a case is matched in switch, the program exits from the switch case and does not continue checking the next cases. So you don’t need to explicitly break out the switch at the end of case
D)
All of the above

Correct Answer :   All of the above

Advertisement