HCLTech interview question

basic dotnet concepts, few scenario question