We are providing online training of realtime Live project on Asp.Net MVC with Angular and Web API. For more information click here. If you have any query then drop the messase in CONTACT FORM

Friday, March 20, 2015

Basic interview questions and answers of ASP.NET



1. what is client-side code scripting in asp.net?

Client-side coding is used to do basic operations on the browser. It cannot be used to access the server or database on the server etc.
Client-side coding is done using scripting languages like Javascript, VbScript, JScript, etc. These scripting languages are easy to learn (they are different from vb.net and C#). The scripting languages provide only very minimal functionality.
The main use of client-side scripting is to validate user input before submitting a page to the server. For example, suppose we have a "Registration" page. Once the user enters all data and presses the "submit" button, all the user input will be sent to the server. In the server-side, we may have written vb.net or C# code to validate all user inputs like Name cannot be empty, etc. If the user does not enter a name and press submit, our server-side code will generate an error message and return the page to us.
In this case, the page was sent to the server and came back with an error message. It was an expensive operation. It consumed a lot of resources to send a page to the server and get it back to the browser with an error message.
If we can catch this validation error in the browser itself, instead of sending it to the server and coming back with an error, that will save a lot of time and resources. Users need not wait to send the page to the server and come back.

2. what is server-side scripting code in asp.net?

3. What is a Web Server?

4. What is IIS?

5.what is a virtual directory in asp net?

6. Can you explain the benefits and limitations of using Hidden frames?

7. Explain about Query String and its benefits and limitations.

8. What is a Page Directive?

9. How to use the directives in an ASP.NET page?

10. What is an assembly?

11. What is the assembly manifest?

12. What is a private and shared assembly?

13. What is Global Assembly Cache?

14. How assemblies avoid DLL Hell?

15. How do I create shared assemblies?

16. How do I create a unique assembly name?

17. How do I sign my DLL/EXE?

18. How do I place the assembly in a shared cache?

19. What is Cache Callback in Cache?

20. What is scavenging?

21. Explain different types of remote object creation mode in .NET.

22. Benefits and Limitations of using Viewstate for state management.

23. Machine config and web config. Can you explain to them?

24. Difference between an EXE and a DLL.

25. Explain the concept of strong names?

26. What are the different kinds of marshaling?

27. Which class does the remote object has to inherit?

28. What is a reflection?

29. What are the different types of JIT?

30. How can we perform transactions in .NET?

31. Name the validation controls in ASP.NET.

32. How to assign page specific attributes?

By using the @Page directive

33. Where is ViewState information stored?

34. What are the ways to maintain state?

35. What are the modes of storing the ASP.NET session?

36. How to find how the code was executed?

37. What are different IIS isolation levels?

38. How to format data inside DataGrid?

39. Tell which method to customize columns in DataGrid?

40. How do we force validation control to run?

41. Can we disable client side script in validation?

42. How to find how to code was executed.

43. Explain the difference between dataset and DataReader.

44. What are the ways of authentication technique in ASP.NET?

45. Can you explain how to sign out in forms authentication?

46. Explain Automatic Memory Management in .NET.

47. What is CAS?

48. Define Globalization and Localization.

49. Define Resource Files.

50. Explain Managed code an Un-managed code.

51. Explain in what order a destructor is called.

52. What is the side-by-side execution?

53. What is the break mode? What are the options to step through code?

54. Explain Session state management options in ASP.NET.

55. How to turn off cookies for a page?

56. How can you ensure a permanent cookie?

57. What is AutoPostback?

58. Explain login control and form authentication.

59. Response.Redirect vs Server.Transfer.?

60. Define View State.

61. What is the application domain?

62. List down the sequence of methods called during the page load.

63. Define the secured sockets layer.

64. Define Tracing.

65. Explain Exception handling in .Net.

66. What is impersonation?

67. What is a managed code in .Net?

68. What are Merge modules?

69. Define the steps to set up validation control.

70. What are the navigation ways between pages available in ASP.NET?

71. How do you open a page in a new window?

72. What are the validation controls available in ASP.NET?

74. Describe state management in ASP.NET.

75. Explain the client-side state management system.

76. Explain the server side state management system.

77. Explain cookies with examples.

79. Describe the disadvantage of cookies.

80. What is Session object? Describe in detail.

81. What are the Advantages and Disadvantages of Session?

82. Describe Master Page.

83. How you can access the Properties and Controls of Master Pages from content pages?

86. What does the Orientation property do in a Menu control?

87. Differentiate between client-side and server-side validations in Web pages.

88. Differentiate between Authentication and authorization.

89. What does the WebPart file do?

90. How would you enable impersonation in the web.config file?

91. Differentiate between File-based dependency and key-based dependency.

92. File-based dependency and key-based dependency. Globalization and localization.

93. Differentiate between a page theme and a global theme?

94. Differentiate between a HyperLink control and a LinkButton control.

95. How do Cookies work? Give an example of their abuse.

96. What are Custom User Controls in ASP.NET?

97. What is Role-based security?

98. What are the HTML server controls in ASP.NET?

99. What are the various types of cookies in ASP.NET?

100. How would you turn off cookies on one page of your website?

101. How would you create a permanent cookie?

102. Explain Culture and UICulture values.

103. The following list describes the available session state modes:

No comments: