Monday, February 27, 2006

Dotnet Interview Questions


1. What is the root namespace for all types?
2. What is CLR?
a. Diff between CLR & CTS
3. Trace and Debug belongs to which namespaces?
4. ColumnMapping belongs to which namespaces?
5. In order to get assembly info which namespace we should import?
6. Difference between Friend and Protected Friend.
7. What is an abstract class?
8. What is diff. between abstract class and an interface? * What is shadowing? * Difference between Overriding and overloading
9. How do u declare static variable and how it is declared and what is its lifetime?
10. Diff between Dataset and Datareader?
11. How do u get record no from 5 to 15 from a dataset of 100 records.
12. Difference between Dataset and Recordset.
13. Why Datareader is useful?
14. How do u call and execute a SP in .NET?
15. What is DLL hell?
16. What is versioning in .NET?
17. What are the ASP.NET list controls and diff. between them?
18. What is difference between ASP State Management and ASP.NET State Management? (Imp)
19. How can we pass information between 2 asp.net pages?
20. Diff between Web User Control and Web Custom Control.
21. What is an indexed property?
22. I've 2 buttons on an asp.net page (.aspx). i wanna execute same routine clicking on 2 buttons. How?
23. How do we Sort the data from a Dataset?
24. How do we get only edited/deleted/inserted records from a Dataset?
25. How Dataadapter.fill works?
26. How can we implement a Identity (SQL Server) call in an asp.net page?
27. What is Viewstate?
28. What is the life cycle of an asp.net page?
29. Explain the differences between Server-side and Client-side code?
30. What type of code (server or client) is found in a Code-Behindclass?
31. Should validation (did the user enter a real date) occurserver-side or client-side? Why?
32. What does the "EnableViewState" property do? Why would I want it on or off?
33. What is the difference between Server.Transfer and Response.Redirect? Whywould I choose one over the other?
34. Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component
35. Let's say I have an existing application written using VisualStudio 6 (VB 6, InterDev 6) and this application utilizes Windows 2000 COM+ transaction services. How would you approach migrating this application to .NET
36. Can you explain the difference between an ADO.NET Dataset and anADO Recordset?
37. Can you give an example of what might be best suited to place inthe Application_Start and Session_Start subroutines?
38. If I'm developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across hree web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users?
39. What are ASP.NET Web Forms? How is this technology different thanwhat is available though ASP (1.0-3.0)?
40. How does VB.NET/C# achieve polymorphism?
41. Can you explain what inheritance is and an example of when you might use it?
42. How would you implement inheritance using VB.NET/C#?
43. Whats an assembly
44. Describe the difference between inline and code behind - which is best in a loosely coupled solution
45. Explain what a diffgram is, and a good use for one
46. Where would you use an iHTTPModule, and what are the limitations of any approach you might take in implementing one
47. What are the disadvantages of viewstate/what are the benefits
48. Describe session handling in a webfarm, how does it work and what are the > limits
49. How would you get ASP.NET running in Apache web servers – why would you even do this?
50. What’s MSIL, and why should my developers need an appreciation ofit if at all?
51. In what order do the events of an ASPX page execute. As a developer is it important to undertsand these events?
52. Which method do you invoke on the DataAdapter control to load yourgenerated dataset with data?
53. Can you edit data in the Repeater control?
54. Which template must you provide, in order to display data in aRepeater control?
55. How can you provide an alternating color scheme in a Repeatercontrol?
56. What property must you set, and what method must you call in yourcode, in order to bind the data from some data source to the Repeatercontrol?
57. What base class do all Web Forms inherit from?
58. What method do you use to explicitly kill a user s session?
59. How do you turn off cookies for one page in your site?
60. Which two properties are on every validation control?
61. What tags do you need to add within the asp:datagrid tags to bindcolumns manually?
62. How do you create a permanent cookie?
63. What tag do you use to add a hyperlink column to the DataGrid?
64. What is the standard you use to wrap up a call to a Web service
65. Which method do you use to redirect the user to another pagewithout performing a round trip to the client?
66. What is the transport protocol you use to call a Web service SOAP
67. True or False: A Web service can only be written in .NET
68. What does WSDL stand for?
69. What property do you have to set to tell the grid which page to go to when using the Pager object?
70. Where on the Internet would you look for Web services?
71. What tags do you need to add within the asp:datagrid tags to bind columns manually.
72. 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?
73. How is a property designated as read-only?
74. Which control would you use if you needed to make sure the valuesin two different controls matched?
75. True or False: To test a Web service you must create a windowsapplication or Web application to consume this service?
76. How many classes can a single .NET DLL contain?

Briefly explain how code behind works and contrast that using the inlinestyle.
What are HTML controls, Web controls, and server controls?
Briefly explain how the server control validation controls work.- Briefly explain what user controls are and what server controls are andthe differences between the two.
Briefly explain how server form post-back works (perhaps ask about view state as well).
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. (Extra credit: Have you heard of comdna. :-)
Briefly describe the role of global.asax.
How would ASP and ASP.NET apps run at the same time on the same server?
What are good ADO.NET object(s) to replace the ADO Recordset object.

What's new in .NET 2.0?

.NET 2.0 come with lot of new features. Some of the features are listed below

1. 64bit CLR
2. Productivity ease-of-use
3. Faster, resource aware
4. New Managed solutions
5. Security

With 64 bit CLR, the new CLR can target the platform or machine like X86, X64 etc. Garbase collector was redesigned in 2.0