Home / CSE MCQs / Swift :: Discussion

Discussion :: Swift

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

    View Answer

    Workspace

    Answer : Option D

    Explanation :



Be The First To Comment