ASP.NET - INTERVIEW QUESTIONS I


From freshersonline.com

Jump to: navigation, search

Interview Question Home

1. Describe the difference between a Thread and a Process?

2. What is a Windows Service and how does its lifecycle differ from a .standard. EXE?

3. What is the maximum amount of memory any single process on Windows can address?

Is this different than the maximum virtual memory for the system? How would this affect a system design?

4. What is the difference between an EXE and a DLL?

5. What is strong-typing versus weak-typing? Which is preferred? Why?

6. What.s wrong with a line like this? DateTime.Parse(myString

7. What are PDBs? Where must they be located for debugging to work?

8. What is cyclomatic complexity and why is it important?

9. Write a standard lock() plus double check to create a critical section around a variable access.

10. What is FullTrust? Do GAC’ed assemblies have FullTrust?

11. What benefit does your code receive if you decorate it with attributes demanding specific Security permissions?

12. What does this do? gacutil /l | find /i about

13. What does this do? sn -t foo.dll

14. What ports must be open for DCOM over a firewall? What is the purpose of Port 135?

15. Contrast OOP and SOA. What are tenets of each

16. How does the XmlSerializer work? What ACL permissions does a process using it require?

17. Why is catch(Exception) almost always a bad idea?

18. What is the difference between Debug.Write and Trace.Write? When should each be used?

19. What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?

20. Does JITting occur per-assembly or per-method? How does this affect the working set?

21. Contrast the use of an abstract base class against an interface?

22. What is the difference between a.Equals(b) and a == b?

23. In the context of a comparison, what is object identity versus object equivalence?

24. How would one do a deep copy in .NET?

25. Explain current thinking around IClonable.

26. What is boxing?

27. Is string a value type or a reference type?

28. What is the maximum length of a varchar field in SQL Server?

29. How do you define an integer in SQL Server?

30. How do you separate business logic while creating an ASP.NET application?

31. If there is a calendar control to be included in each page of your application, and

we do not intend to use the Microsoft-provided calendar control, how do you develop it?

Do you copy and paste the code into each and very page of your application?

32. How do you debug an ASP.NET application?

33. How do you deploy an ASP.NET application?

34. Name a few differences between .NET application and a Java application?

35. Specify the best ways to store variables so that we can access them in various pages of ASP.NET application?

36. What are the XML files that are important in developing an ASP.NET application?

37. What is XSLT and what is its use?

38. Can you give an example of what might be best suited to place in the application_Start and Session_Start subroutines?

39. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

40. Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

41. What are good ADO.NET object(s) to replace the ADO Recordset object.?

42. How would ASP and ASP.NET apps run at the same time on the same server?

43. Can the action attribute of a server-side tag be set to a value and if not how can you

possibly pass data from a form page to a subsequent page. Briefly describe the role of global.asax.

44. Briefly explain how server form post-back works (perhaps ask about view state as well).?

45. Briefly explain what user controls are and what server controls are and the differences between the two.

46. Briefly explain how the server control validation controls work.?

47. What are HTML controls, Web controls, and server controls?

48. Briefly explain how code behind works and contrast that using the inline style.?

49. How many classes can a single .NET DLL contain?

50. True or False: To test a Web service you must create a windows application or Web application to consume this service?

51. Which control would you use if you needed to make sure the values in two different controls matched?

52. How is a property designated as read-only?

53. Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?

54. What tags do you need to add within the asp:datagrid tags to bind columns manually.?

55. Where on the Internet would you look for Web services?

56. the Pager object?

57. What property do you have to set to tell the grid which page to go to when using ?

58. What does WSDL stand for?

59. True or False: A Web service can only be written in .NET?

60. What is the transport protocol you use to call a Web service SOAP?

61. Which method do you use to redirect the user to another page without performing a round trip to the client?

62. What is the standard you use to wrap up a call to a Web service?

63. What tag do you use to add a hyperlink column to the DataGrid?

64. How do you create a permanent cookie?

65. What tags do you need to add within the asp:datagrid tags to bind columns manually?

66. Which two properties are on every validation control?

67. How do you turn off cookies for one page in your site?

68. Can you explain what inheritance is and an example of when you might use it?

69. What method do you use to explicitly kill a user s session?

70. What base class do all Web Forms inherit from? 71. What property must you set, and what method must you call in your code, in order to bind

the data from some data source to the Repeater control?

72. How can you provide an alternating color scheme in a Repeater control?

73. Which template must you provide, in order to display data in a Repeater control?

74. Can you edit data in the Repeater control?

75. Which method do you invoke on the DataAdapter control to load your generated dataset with data?

76. In what order do the events of an ASPX page execute. As a developer is it important to understand these events?

77. Whats MSIL, and why should my developers need an appreciation of it if at all?

78. How would you get ASP.NET running in Apache web servers - why would you even do this?

79. Describe session handling in a webfarm, how does it work and what are the limits?

80. What are the disadvantages of viewstate/what are the benefits?

81. Can you explain what inheritance is and an example of when you might use it?

82. Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one?

83. How would you implement inheritance using VB.NET/C#?

84. Describe the difference between inline and code behind - which is best in a loosely coupled solution.

85. Whats an assembly ..?

86. How would you implement inheritance using VB.NET/C#?

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

88. Can you give an example of what might be best suited to place in the Application Start and Session Start subroutines?

89. Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?

90. Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component

91. What is the difference between Servers? Transfer and Response. Redirect? Why would I choose one over the other?

92. What does the "EnableViewState" property do? Why would I want it on or off?

93. Should validation (did the user enter a real date) occur server-side or client-side? Why?

94. What type of code (server or client) is found in a Code-Behind class?

95. Explain the differences between Server-side and Client-side code?

Personal tools