Set - 10

Question 6 :

What's the C# syntax to catch any possible exception?

Answer :

A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.

Question 7 :

Can multiple catch blocks be executed for a single try statement?

Answer :

No. Once the proper catch block processed, control is transferred to the finally block (if there are any).

Question 8 :

Explain the three services model commonly know as a three-tier application?

Answer :

Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources).

Question 9 :

Why does DllImport not work for me?

Answer :

All methods marked with the DllImport attribute must be marked as public static extern.

Question 10 :

What is a delegate?

Answer :

A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers.