Question asked in Interview

2 day before I had interview. Interviewer asked me these questions? I was not able to answer them.

How to Handle exception without try catch block in C#?Which software is used to debug not visual studio (line by line). Suppose there are 1000 lines of code.I have not used any software yet for this.Does anybody having any idea.Difference between var and dynamic?How to set master page dynamically?

1. if you working on asp.net application web.config has application_error event in that you can catch the exception directly.2. what you want to debug exactly, firebug can be used to debug the javascript3. var vs dynamicvar : it is Statically typed – This means the type of variable declared is decided by the compiler at compile time, Since the compiler knows about the type and the methods and properties of the type at the compile time itself, Visual Studio shows intelligence since the type of variable assigned is known to compiler.Dynamic : it is Dynamically typed - This means the type of variable declared is decided by the compiler at runtime time, Since the compiler comes to about the type and the methods and properties of the type at the run time, intelligence is not available since the type and its related methods and properties can be known at run time onlyThanksKoolprasd2003Editor, DotNetSpider MVMMicrosoft MVP 2014 [ASP.NET/IIS]