Accenture interview question

Scenario based question .NET related syntaxes reason for switch