ASP.NET interview questions only (1)
.NET Interview Questions and Answers
(Continued from previous question...)
ASP.NET interview questions only (1)
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?
(Continued on next question...)
Other Interview Questions
- What is .NET?
- How many languages .NET is supporting now?
- How is .NET able to support multiple languages?
- How ASP .NET different from ASP?
- What is smart navigation?
- What is view state?
- How do you validate the controls in an ASP .NET page?
- Can the validation be done in the server side? Or this can be done only in the Client side?
- How to manage pagination in a page?
- What is ADO .NET and what is difference between ADO and ADO.NET?
- Observations between VB.NET and VC#.NET?
- Advantages of migrating to VB.NET ?
- Advantages of VB.NET
- Using ActiveX Control in .Net
- What is Machine.config?
- What is Web.config?
- What is the difference between ADO and ADO.NET?
- What is the difference between VB and VB.NET?
- What is a Strong Name?
- What is a Manifest?
- Creating a Key Pair?
- What is the difference between "using System.Data;" and directly adding the reference from "Add References Dialog Box"?
- What is GAC?
- What is a Metadata?
- What is managed code and managed data?
- What is .NET / .NET Framework?
- What is Reflection?
- What is "Common Type System" (CTS)?
- What is "Common Language Specification" (CLS)?
- What is "Common Language Runtime" (CLR)?
- What are Attributes?
- What are the Types of Assemblies?
- What is an Intermediate language?
- ASP.NET Authentication Providers and IIS Security
- What is the difference between ASP and ASP.NET?
- Using COM Component in .Net
- What is an assembly?
- What is a Web Service?
- webFarm Vs webGardens
- What is the difference between a namespace and assembly name?
- What’s a Windows process?
- What’s typical about a Windows process in regards to memory allocation?
- Explain what relationship is between a Process, Application Domain, and Application?
- What are possible implementations of distributed applications in .NET?
- What are the consideration in deciding to use .NET Remoting or ASP.NET Web Services?
- What’s a proxy of the server object in .NET Remoting?
- What are remotable objects in .NET Remoting?
- What are channels in .NET Remoting?
- What security measures exist for .NET Remoting in System.Runtime.Remoting?
- What is a formatter?
- Choosing between HTTP and TCP for protocols and Binary and SOAP for formatters, what are the trade-offs?
- What’s SingleCall activation mode used for?
- What’s Singleton activation mode?
- How do you define the lease of the object?
- Can you configure a .NET Remoting object via XML file?
- How can you automatically generate interface for the remotable object in .NET with Microsoft tools?
- What is Delegation?
- What is "Microsoft Intermediate Language" (MSIL)?
- Differences between Datagrid, Datalist and Repeater?
- I am constantly writing the drawing procedures with System.Drawing.Graphics, but having to use the try and dispose blocks is too time-consuming with Graphics objects. Can I automate this?
- How do you trigger the Paint event in System.Drawing?
- With these events, why wouldn’t Microsoft combine Invalidate and Paint, so that you wouldn’t have to tell it to repaint, and then to force it to repaint?
- How can you assign an RGB color to a System.Drawing.Color object?
- What class does Icon derive from? Isn’t it just a Bitmap with a wrapper name around it?
- Before in my VB app I would just load the icons from DLL. How can I load the icons provided by .NET dynamically?
- When displaying fonts, what’s the difference between pixels, points and ems?
- What is the difference between VB 6 and VB.NET?
- What are the authentication methods in .NET?
- What is Serialization in .NET?
- What’s the use of System.Diagnostics.Process class?
- Difference Abstract class and Interface
- re-clarification of object based:
- How to achieve Polymorphism in VB.Net?
- Difference between Class And Interface
- What doesu mean by .NET framework?
- What is assembly?
- What is namespaces?
- NET framework overview
- What is the base class of .NET?
- Explain assemblies.
- Name some of the languages .NET support?
- ADO.NET features? Benefits? Drawbacks?
- How many types of exception handlers are there in .NET?
- Difference between Panel and GroupBox classes?
- What is the base class of Button control?
- What is Response object? How is it related to ASP’s Response object?
- What is IIS? Have you used it?
- Main differences between ASP and ASP.NET.
- What are the advantages and drawbacks of using ADO.NET?
- Why The JavaScript Validation Not Run on the Asp.Net Button But Run SuccessFully On The HTML Button
- what is the difference between user control an custom control? advantages/disadvantages?
- What’s the difference between Response.Write() andResponse.Output.Write()?
- What is the use of ErrorProvider Control?
- What is CLR?
- What is Delegate and what is it used for ?
- How is meant by DLL ?
- Which DLL translate XML to SQL in IIS?
- Can anyone tell me about Secure Socket Layer? How to make use of the technology?
- What is the Differnce Between Response.write & response.output.Write
- Which dll is required to translate XML to SQL in IIS ?
- What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why.
- What is serialization, how it works in .NET?
- What should one do to make class serializable?
- What exactly is being serialized when you perform serialization?
- How does output caching work in ASP.NET?
- What is connection pooling and how do you make your application use it?
- What are different methods of session maintenance in ASP.NET?
- What is Viewstate?
- Can any object be stored in a Viewstate?
- What should you do to store an object in a Viewstate?
- Explain how Viewstate is being formed and how it’s stored on client.
- What do you know about ADO.NET’s objects and methods?
- Explain DataSet.AcceptChanges and DataAdapter.Update methods.
- When we go for html server controls and when we go for web server controls?
- ASP.NET interview questions only (1)
- ASP.NET interview questions only (2)
- ASP.NET interview questions only (3)
|