Q. Can we have “try” block only without “catch” block in C#?
A. Yes, we can have only try block without catch block but we have to have finally block in asp.net web forms.
Q. List out any 2 different types of errors in C# asp.net web forms applications?
A. Here are the 2 errors in C# -
Compile Time Error
Run Time Error
Asp.Net interview questions and answers pdf C# Languages using to develop web forms in Visual Studio business requirements
Q. Do we get error while executing “finally” block in C#?
A. Yes. We may get error in finally block also.
Q. Specify the assembly name where System namespace are available in C# asp.net web applications?
A. Assembly Name – mscorlib.dll will be used for asp.net components.
Q. Explain Jagged Arrays in C#?
A. If the elements of an array is an array then it’s called as jagged array. The elements can be of different sizes and dimensions.