Tuesday, October 13, 2009

Asp.Net Interview Questions(51-60)

51. what is the differences between Server-side and Client-side code?

Server side code will execute at server end all the business logic will execute at server end
where as client side code will execute at client side at browser end.

52. How does VB.NET/C# achieve polymorphism?

Function overloading.
Operator overloading

Does C# support multiple-inheritance?

No.we go for interface.

53. Who is a protected class-level variable available to?

It is available to any sub-class (a class inheriting this class).

54. Are private class-level variables inherited?

Yes, but they are not accessible. Although they are not visible or accessible via the class interface, they are inherited.

55. Describe the accessibility modifier “protected internal”.

It is available to classes that are within the same assembly and derived from the specified base class.

56. What’s the top .NET class that everything is derived from?

System.Object.

57. What does the term immutable mean?

The data value may not be changed. Note: The variable value may be changed, but the original immutable data value was discarded and a new data value was created in memory.

58.Explain the three services model commonly know as a three-tier application.
Presentation (UI), Business (logic and underlying code) and Data (from storage or other sources).


59. What’s the difference between System.String and System.Text.StringBuilder classes?

System.String is immutable. System.StringBuilder was designed with the purpose of having a mutable string where a variety of operations can be performed.

60. What’s the advantage of using System.Text.StringBuilder over System.String?

StringBuilder is more efficient in cases where there is a large amount of string manipulation. Strings are immutable, so each time a string is changed, a new instance in memory is created.

No comments:

Post a Comment