Search This Blog

Tuesday, May 20, 2008

Interview questions for .NET

  1. What is a static class?
  2. What is static member?
  3. What is static function?
  4. What is static constructor?
  5. How can we inherit a static variable?
  6. How can we inherit a static member?
  7. Can we use a static function with a non-static variable?
  8. How can we access static variable?
  9. Why main function is static?
  10. How will you load dynamic assembly? How will create assesblies at run time?
  11. What is Reflection?
  12. If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) in my application?
  13. How do you create threading in.NET? What is the namespace for that?
  14. What do you mean by Serialize and MarshalByRef?
  15. What is the difference between Array and LinkedList?
  16. What is Asynchronous call and how it can be implemented using delegates?
  17. How to create events for a control? What is custom events? How to create it?
  18. If you want to write your own dot net language, what steps you will you take care?
  19. Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
  20. How dot net compiled code will become platform independent?
  21. Without modifying source code if we compile again, will it be generated MSIL again?
  22. How does you handle this COM components developed in other programming languages in.NET?
  23. How CCW (Com Callable Wrapper) and RCW (Runtime Callable Wrappers) works?
  24. What are the new thee features of COM+ services, which are not there in COM (MTS)?
  25. What are the differences between COM architecture and.NET architecture?
  26. Can we copy a COM dll to GAC folder?
  27. What is Shared and Repeatable Inheritance?
  28. Can you explain what inheritance is and an example of when you might use it?
  29. How can you write a class to restrict that only one object of this class can be created (Singleton class)?
  30. What are virtual destructures?
  31. What is close method? How its different from Finalize and Dispose?
  32. What is Boxing and UnBoxing?
  33. What is check/uncheck?
  34. What is the use of base keyword? Tell me a practical example for base keyword’s usage?
  35. What are the different.NET tools which you used in projects?
  36. What will do to avoid prior case?
  37. What happens when you try to update data in a dataset in.NET while the record is already deleted in SQL Server as backend?
  38. What is concurrency? How will you avoid concurrency when dealing with dataset?
  39. One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid this problem?
  40. How do you merge two datasets into the third dataset in a simple manner?
  41. If you are executing these statements in commandObject. “Select * from Table1; Select * from Table2″ How you will deal result set?
  42. How do you sort a dataset.
  43. If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?
  44. What is the use of Parameter object?
  45. How to generateXML from a dataset and vice versa?
  46. How do you implement locking concept for dataset?
  47. How will you do Redo and Undo in TextBox control?
  48. How to implement DataGrid in.NET? How would you make a combo-box appear in one column of a DataGrid? What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods. what is the access specifier used for that methods in the code behind file and why?
  49. How can we create Tree control in asp.NET?
  50. Write a program in C# to find the angle between the hours and minutes in a clock?
  51. Write a program to create a user control with name and surname as data members and login as method and also the code to call it.
  52. How can you read 3rd line from a text file?
  53. Explain the code behind wors and contrast that using the inline style.
  54. Explain different types of HTML, Web and server controls.
  55. What are the differences between user control and server control?
  56. How server form post-back works?
  57. 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?
  58. How would ASP and ASP.NET apps run at the same time on the same server?
  59. What are good ADO.NET object to replace to ADO Recordset object.
  60. Explain the differences between Server-side code and Client-side code.
  61. What type of code(server or client) is found in a Code-Behind class?
  62. Should validation (did the user enter a real date) occur server-side or client-side? Why?
  63. What does the “EnableViewState” property do? Why would I want it on or off?
  64. What is the difference between Server.Transfer and response.Redirect? Why?
  65. Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced.NET component?
  66. Let’s say I have an existing application written using VB6 and this application utilizes Windows 2000 COM+ transaction services. How would you approach migrating this application to.NET?
  67. If I am developing an application that must accomodate multiple security levels though secure login and my ASP.NET web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?
  68. What are ASP.NET web forms? How is this technology different than what is available though ASP(1.0-3.0)?
  69. How does VB.NET achieve polymorphism?
  70. How does C# achieve polymorphism?
  71. Can you explain what is Inheritance and an example in VB.NET and C# of when you might use it?
  72. Describe difference between inline and code-behind?
  73. What is loosely coupled solution in.NET?
  74. What is diffgram?
  75. Where would you use an iHTTPModule and what are the limitations of any approach you might take in implementing one?
  76. What are the Advantages and DisAdvantages of viewstate?
  77. Describe session handling in a webform, how does it work and what are the limitations?
  78. How would you get ASP.NET running in Apache web servers? Explain it’s limitations.
  79. What is MSIL and why should my developers need an appreciation of it if at all?
  80. Which methos do you invoke on the DataAdapter control to load your generated dataset with data?
  81. Can you edit data in Repeater control? How?
  82. Which template must you provide, in order to display data in a Repeater control?
  83. How can you provide an alternating color scheme in a Repeater control?
  84. 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?
  85. What base class do all web forms inherit from?
  86. What method do you use to explicitly kill a user’s session? How?
  87. How do you turn off cookies for one page in your site? Give an example.
  88. Which two properties are on every validation control?
  89. What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
  90. How do you create a permanent cookie?
  91. What tag do you use to add a hyperlink column to the dataGrid?
  92. What is the standard you use to wrap up a call to a Web Service?
  93. Which method do you use to redirect the user to another page without performing a round trip to the client? How?
  94. What is the transport protocol you use to call a Seb Service SOAP?
  95. What does WSDL stand for?
  96. What property do you have to set to tell the grid which page to go to when using the Pager object?
  97. Where on the Internet would you look for Web Services?
  98. What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
  99. 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?
  100. How is a property designated as read-only?
  101. Which control would you use if you needed to make sure the values in two different controls matched?


.NET WebDev and Web Services Questions


  1. How does ASP page work?
  2. How ASP.NET page works?
  3. What are the contents of cookie?
  4. How do you create a permanent cookie?
  5. What is ViewState? What does the “EnableViewState” property do? Whay would I want it on or off?
  6. Give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?
  7. Describe the role of global.asax?
  8. How can you debug your.NET application?
  9. How do you deploy your ASP.NET application?
  10. Where do we store our connection string in ASP.NET application?
  11. Explain security types in ASP.NET?
  12. Where do we store our connection string in ASP.NET application?
  13. Explain different Authentication modes in ASP.NET?
  14. How.NET has implemented security for web applications?
  15. How to do forms authentication in ASP.NET?
  16. Explain authentication levels in.NET?
  17. Explain authorization levels in.NET?
  18. How can you debug an ASP page, without touching the code?
  19. How can you handle Exceptions in ASP.NET?
  20. How can you handle UnManaged Code Exceptions in ASP.NET?
  21. Which is the namespace used to write error message in event Lof File?
  22. What are the Page level transaction and class level transaction?
  23. What are different transaction options?
  24. What is the namespace for encryption?
  25. What is the difference between application and cache variables?
  26. What is the difference between control and component?
  27. You have defined one page_load event in ASPx page and same page_load event in code behind, how will program run?
  28. Where would you use an IHttpModule, and what are the limitations of any approach you might take in implementing one?
  29. Can you edit data in the Repeater control? Which template must you provide, in order to display data in Repeater control? How can you provide an alternating color scheme in a repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some source to the repeater?
  30. In what order do the events of an ASPX page executes. As a developer is it important to understand these events?
  31. How would you get ASP.NET running in Apache web servers? Why would you even do this?
  32. What tags do you need to add within the ASP:datagrid tags to bind columns manualy?
  33. How can we create pie chart in ASP.NET?
  34. How do you understand asynchronous web services?
  35. What are the events fired when web service called?
  36. How do you perform a transaction in web services?
  37. How does SOAP transport happen and what is the role of HTTP in it? How you can access a webservice using soap?
  38. What are the different formatters can be used in both Binary and SOAP?
  39. How will you expose/publish a webservice?
  40. What is disco file?
  41. What’s the attribute for webservice method? What is the namespace for creating webservice?
  42. Can you pass SOAP messages through remoting?
  43. Explain web client class and its methods?
  44. What is flow of remoting?
  45. Explain the concept of data island?
  46. How to useXML DOM model on client using JavaScript?
  47. What are the ways to create a tree view control usingXML, XSL and JavaScript?
  48. What is XPathNavigator?
  49. What is the use of Template in XSL?
  50. What is “Well FormedXML” and “ValidXML“?
  51. How will you do SubString in XSL?
  52. How do you deal sorting columns dynamically inXML?
  53. What is “Async” property ofXML?
  54. What is XPath query?
  55. Explain differences between Element and Node.
  56. What is CDATA section?
  57. Explain definition and differences between DOM and SAX?
  58. What is GetElementbyname method will do?
  59. What will selectnode method will do?
  60. What is validXML document?
  61. What is well formedXML document?
  62. What is the difference betweenXMLDocument andXMLDataDocument?
  63. Can I replace my Sqlserver withXML files and how about handling the same?
  64. Write syntax to serialize class usingXML Serializer?
  65. How can we configure the sites in web server(IIS)?
  66. Explain advantages of IIS 6.0?

No comments: