Top ASP.NET interview questions and answers, Best ASP.NET interview questions

 ASP.NET Interview Questions and Answers:

1. What’s the change between Response.Write() andResponse.Output.Write()?
 Response.Output.Write() offers you to produce formatted output.

 2. What supplies are fired in the web page load?
 Init() - when the web site is instantiated
 Load() - when the web page is loaded to server memory
 PreRender() - the brief minute before the web page is displayed to the user as HTML
 Unload() - when web page finishes loading.

 3. When within the web page processing range is ViewState available?
 After the Init() and before the Page_Load(), or OnLoad() for a control.

4. What namespace performs the Web web site belong in the .NET Framework worth hierarchy?
 System.Web.UI.Page

 5. Where do you list the info on the user’s locale?
 CodeBehind is signficant to Visual Studio.NET only.

 6. What’s the adjustment between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?
 CodeBehind is signficant to Visual Studio.NET only.

 7. What is the Global.asax depleted for?
 The Global.asax (including the Global.asax.cs file) is used up to start tool and session amount events.

 8. What are the Application_Start and Session_Start subroutines spent for?
 This is at which you can set the certain variables for the Application and Session objects.

 9. Whats an assembly?
 Assemblies are the construction blocks of the .NET framework;

 10. Whats MSIL, and why serves to my developers look for an growth of it if at all?
 MSIL is the Microsoft Intermediate Language. All .NET compatible languages serves to get persuaded to MSIL. MSIL as well offers the .NET Framework to JIT aggregate the bunch on the installed computer.

 11. Which technique do you invoke on the DataAdapter control to bundle your generated dataset in on data?
 The Fill() method.

 12. Can you edit info in the Repeater control?
 No, it just recently reports the info based on data from its information source.

 13. Which template should you provide, in shape to screen information in a Repeater control?
 ItemTemplate.

 14. Name two residences typical in most any support control?
 ControlToValidate real estate and Text property.

 15. What base lesson do all Web Forms inherit from?
 The Page class.

 16. What is the adjustment between Server.Transfer and Response.Redirect? Why may I decide on one during the other?
 Server.Transfer transfers web site processing based on data from one web site directly to the subsequently web site without constructing a round-trip returning to the client's browser. This gives a quicker response in a tiny bit of moderated overhead on the server. Server.Transfer performs not update the customers url history listing or the most recent url. Response.Redirect is exhausted to redirect the user's browser to a different web page or site. This performas a trip going back to the customer at which the client's browser is redirected to the new page. The user's browser history catalog is updated to reflect the new address.

 17. What is ViewState?
 ViewState permits the community of objects (serializable) to be stored in a hidden field on the page. ViewState is transported to the patron and going back to the server, and is not stored on the server or any !no! external source. ViewState is exhausted the retain the neighborhood of server-side objects between postabacks.

 18. What is the lifespan for items stored in ViewState?
 Item stored in ViewState arrive for the livlihood of the present page. This includes postbacks (to the same page).

 19. What performs the "EnableViewState" places do? Why may I seek it on or off?
 It permits the web page to save the users record on a order around postbacks. It shelters the server-side price for a looking at control to ViewState, that is stored as a hidden superiority on the web page before sending the web page to the clientele browser. When the web page is requested going back to the server the server control is recreated through the sector stored in viewstate.

 20. What are the strange kinds of Session area management opportunities to be had among ASP.NET?
 ASP.NET supplies In-Process and Out-of-Process sector management. In-Process stores the session in memory on the web server. This requires the a "sticky-server" (or no load-balancing) so this the user is presistently reconnected to the same web server. Out-of-Process Session arrangement management stores information in an external information source. The external information source may be either a SQL Server or a State Server service. Out-of-Process community management requires who all objects stored in session are serializable. 
 
  Best ASP.NET Interview Questions:

1. Describe the adjustment between a Thread and a Process?
 2. What is a Windows Service and how performs its lifecycle fluctuate for a norm EXE?
 3. What is the maximum rate of memory any single technique on Windows can address? Is the numerous as opposed to the maximum virtual memory for the system? How are able to now impact a process design?
 4. What is the adjustment between an EXE and a DLL?
 5. What is strong-typing versus weak-typing? Which is preferred? Why?
 6. Whats incorrect in a succession want this? DateTime.Parse(myString
 7. What are PDBs? Where ought to properties be located for debugging to work?
 8. What is cyclomatic complexity and why is it important?
 9. Write a average lock() additonally dual preventing to craft a rule section across a variable access.
 10. What is FullTrust? Do GAC’ed assemblies undergo FullTrust?
 11. What boost performs your code take in if you decorate it in attributes demanding particular Security permissions?
 12. What performs such do? gacutil /l | submit /i “about”
 13. What performs that do? sn -t foo.dll
 14. What ports ought to be open for DCOM more than a firewall? What is the purpose of Port 135?
 15. Contrast OOP and SOA. What are tenets of each
 16. How performs the XmlSerializer work? What ACL permissions performs a procedure utilizing it require?
 17. Why is catch(Exception) all but regularly a bad idea?
 18. What is the change between Debug.Write and Trace.Write? When when every be used?
 19. What is the adjustment between a Debug and Release build? Is there a extensive swiftness difference? Why or why not?
 20. Does JITting come about per-assembly or per-method? How performs their effect the struggling set?
 21. Contrast the use of an abstract base superiority against an interface?
 22. What is the adjustment between a.Equals(b) and a == b?
 23. In the context of a comparison, how is object identity versus object equivalence?
 24. How will one do a deep imitate in .NET?
 25. Explain modern believing obtainable IClonable.
 26. What is boxing?
 27. Is line a price kind or a reference type?

Post a Comment

1 Comments

  1. Hi

    I like this post:

    You create good material for community.

    Please keep posting.

    Let me introduce other material that may be good for net community.

    Source: Construction interview questions

    Best rgs
    Peter

    ReplyDelete

Thank you for your valuable comment.