Following is the code used for executing Switch statement in playground. I executed few switch statements without using default. My doubt is why it is optional for some and mandatory for other statements.Thanks in advance!.Following is the code used for executing Switch