Here switch case is executed based on the value provided by $c=4$ in the given program. Now controls come to switch(4). Based on the value it will execute the statements associated with it. one more point here is the break keyword, this keyword is used to stop the execution of the program inside the switch block.
- Option (A) is wrong here because after printing IITB there is a break so IITM will not be printed.
- Option (B) is wrong because the default case is only executed if no case is matching but here switch(4) will print IITB but after that, there is a break so IISc will not be printed.
- switch(4) is match and print IITB as output.
- Option (D) is also wrong after IITB IITM can not be printed.
So Option (C) is correct.
Ref: switch Statement (C)