ASP. NET interview questions

Source: Internet
Author: User
Tags form post

Http://www.ittestpapers.com/categories/Technical-Interview-Questions/ (there are using interview question and answers in this website)

 

I do a lot of interviewing here, and for a while we were hiring ASP. net people. here's some of the questions that I asked them. I came up with these questions because you 'd "just know" this stuff if you spent time working on a real world ASP. net Site-through design, development, debugging, production debugging, and deployment.

Do they suck? Did I miss any? How do you think people did?

  • From constructor to destructor (taking into consideration dispose () and the concept of non-deterministic finalization), what the are events fired as part of the ASP. net System. web. UI. page lifecycle. why are they important? What interesting things can you do at each?
  • What are ashx files? What are httphandlers? Where can they be configured?
  • What is needed to configure a new extension for use in ASP. NET? For example, what if I wanted my system to serve aspx files with a *. jsp extension?
  • What events fire when binding data to a data grid? What are they good?
  • Explain how postbacks work, on both the client-side and server-side. How do I chain my own Javascript into the client side without losing PostBack functionality?
  • How does viewstate work and why is it either useful or edevil?
  • What is the OO relationship between An ASPX page and Its CS/VB code behind file in ASP. NET 1.1? In 2.0?
  • What happens from the point an HTTP request is already ed on a TCP/IP Port up until the page fires the on_load event?
  • How does IIS communicate at runtime with ASP. NET? Where is ASP. NET at runtime in iis5? IIS6?
  • What is an assembly binding redirect? Where are the places an administrator or developer can affect how Assembly Binding policy is applied?
  • Compare and contrast loadlibrary (), cocreateinstance (), Createobject () and Assembly. Load ().

 

 

A while back, I posted a list of ASP. net interview questions. conventional wisdom was split, with about half the folks saying I was nuts and that it was a list of trivia. the others said basically "ya, those are good. I 'd probably have to look a few up. "To me, that's the right response.

certainly I wasn' t trying to boil all. NET software development down to a few simple "trivia" questions. however, I was trying to get folks thinking. I believe that really good ASP. net (and for that matter, winforms) is a little [read: lot] More than just draging a control onto a designer and hoping for the best. A good race driver knows his car-what it can do and what it can't.

So, here's another list... a greatly expanded list, for your consumption (with attribution ). I wrote this on a plane last week on the way from Boise to Portland. I tried to take into consideration the concerns that my lists contain unreasonable trivia. I tried to make a list that was organized by section. if you 've never down ASP. net, you obviously won't know all the ASP. net section. if you're an indenpendant consultant, you may never come upon some of these concepts. however, ever question here has come up more than once in the last 4 years of my time at corillian. so, Knowing Groking these questions may not make you a good or bad developer, but it will save you time when problems arise.

What great. NET developers ought to know

Everyone who writes code

    • Describe the difference between a thread and a process?
    • What is a Windows service and how does its lifecycle differ from a "standard" EXE?
    • 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 wocould this affect a system design?
    • What is the difference between an EXE and a DLL?
    • What is strong-typing versus weak-typing? Which is preferred? Why?
    • Corillian's product is a "component container." name at least 3 component containers that ship now with the Windows Server family.
    • What is a PID? How is it useful when troubleshooting a system?
    • How many processes can listen on a single TCP/IP Port?
    • What is the GAC? What problem does it solve?

Mid-level. Net developer

  • Describe the difference between interface-oriented, object-oriented and Aspect-Oriented Programming.
  • Describe what an interface is and how it's different from a class.
  • What is reflection?
  • What is the difference between XML Web Services Using asmx and. Net remoting using soap?
  • Are the type system represented by XMLSCHEMA and the CLS isomorphic?
  • Conceptually, what is the difference between early-binding and late-binding?
  • Is using assembly. Load a static reference or dynamic reference?
  • When wocould using assembly. loadfrom or assembly. LoadFile be appropriate?
  • What is an Asssembly qualified name? Is it a filename? How is it different?
  • Is this valid? Assembly. Load ("foo. dll ");
  • How is a stronugly-named Assembly different from one That isn' t stronugly-named?
  • Can datetimes be null?
  • What is the JIT? What is ngen? What are limitations and benefits of each?
  • How does the generational garbage collector in the. net clr manage object lifetime? What is non-deterministic finalization?
  • What is the difference between finalize () and dispose ()?
  • How is the using () pattern useful? What is idisposable? How does it support deterministic finalization?
  • What does this useful command line do? Tasklist/M "mscor *"
  • What is the difference between in-Proc and out-of-proc?
  • What technology enables out-of-Proc communication in. Net?
  • When you're running a component within ASP. NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

Senior developers/explorts

  • What's wrong with a line like this? Datetime. parse (mystring );
  • What are PDBs? Where must they be located for debugging to work?
  • What is cyclomatic complexity and why is it important?
  • Write a standard lock () plus "double check" to create a critical section around a variable access.
  • What is fulltrust? Do GAC 'ed assemblies have fulltrust?
  • What benefit does your code receive if you decorate it with attributes demanding specific security permissions?
  • What does this do? Gacutil/L | find/I "corillian"
  • What does this do? Sn-T Foo. dll
  • What ports must be open for DCOM over a firewall? What is the purpose of port 135?
  • Contrast OOP and SOA. What are tenets of each?
  • How does the xmlserializer work? What ACL permissions does a process using it require?
  • Why is catch (exception) almost always a bad idea?
  • What is the difference between Debug. Write and trace. Write? When should each be used?
  • What is the difference between a debug and release build? Is there a significant speed difference? Why or why not?
  • Does jitting occur per-assembly or per-method? How does this affect the working set?
  • Contrast the use of an abstract base class against an interface?
  • What is the difference between a. Equals (B) and a = B?
  • In the context of a comparison, what is object identity versus object equivalence?
  • How wocould one do a deep copy in. Net?
  • Explain current thinking around iclonable.
  • What is boxing?
  • Is string a value type or a reference type?
  • What is the significance of the "propertyspecified" pattern used by the xmlserializer? What problem does it attempt to solve?
  • Why are out parameters a bad idea in. Net? Are they?
  • Can attributes be placed on specific parameters to a method? Why is this useful?

C # component developers

    • Juxtapose the use of override with new. What is shadowing?
    • Explain the use of virtual, sealed, override, and abstract.
    • Explain the importance and use of each component of this string: Foo. Bar, version = 2.0.205.0, culture = neutral, publickeytoken = 593777ae2d274679d
    • Explain the differences between public, protected, private and internal.
    • What benefit do you get from using a primary InterOP assembly (PIA )?
    • By what mechanic does nunit know what methods to test?
    • What is the difference between: Catch (exception e) {Throw E;} and catch (exception e) {Throw ;}
    • What is the difference between typeof (FOO) and myfoo. GetType ()?
    • Explain what's happening in the First constructor: public class c {public C (string a): this () {;}; public C (){;}} how is this construct useful?
    • What isThis? Can this be used within a static method?

ASP. NET (UI) Developers

  • Describe how a browser-based form post becomes a server-side event like button1_onclick.
  • What is a PostBack?
  • What is viewstate? How is it encoded? Is it encrypted? Who uses viewstate?
  • What is the <machinekey> element and what two ASP. NET technologies is it used?
  • What three session state providers are available in ASP. NET 1.1? What are the pros and cons of each?
  • What is Web gardening? How wocould using it affect a design?
  • Given one ASP. NET application, how many application objects does it have on a single proc box? A dual? A dual with Web gardening enabled? How wocould this affect a design?
  • Are threads reused in ASP. NET between reqeusts? Does every httprequest get its own thread? Shocould you use Thread Local Storage with ASP. NET?
  • Is the [threadstatic] attribute useful in ASP. NET? Are there side effects? Good or bad?
  • Give an example of how using an httphandler cocould simplify an existing design that serves check images from an. ASPX page.
  • What kinds of events can an httpmodule subscribe? What influence can they have on an implementation? What can be done without recompiling the ASP. NET application?
  • Describe ways to present an arbitrary endpoint (URL) and route requests to that endpoint to ASP. NET.
  • Explain how cookies work. Give an example of cookie abuse.
  • Explain the importance of httprequest. validateinput ()?
  • What kind of data is passed via HTTP headers?
  • Juxtapose the HTTP verbs get and post. What is head?
  • Name and describe at least a half dozen HTTP status codes and what they express to the requesting client.
  • How does if-not-modified-since work? How can it be programmatically implemented with ASP. NET?
    Explain <@ outputcache %> and the usage of varybyparam, varybyheader.
  • How does varybycustom work?
  • How wocould one implement ASP. net HTML output caching, caching outgoing versions of pages generated via all values of Q = exist t where q = 5 (as in http: // localhost/page. aspx? Q = 5 )?

Developers using XML

  • What is the purpose of XML Namespaces?
  • When is the DOM appropriate for use? When is it not? Are there size limitations?
  • What is the WS-I basic profile and why is it important?
  • Write a small XML document that uses a default namespace and a qualified (prefixed) namespace. include elements from both namespace.
  • What is the one fundamental difference between elements and attributes?
  • What is the difference between well-formed XML and valid XML?
  • How wocould you validate XML using. Net?
  • Why is this almost always a bad idea? When is it a good idea? Myxmldocument. selectnodes ("// mynode ");
  • Describe the difference between pull-style parsers (xmlreader) and Eventing-readers (SAX)
  • What is the difference between xpathdocument and xmldocument? Describe situations where one shocould be used over the other.
  • What is the difference between an XML "fragment" and an XML "document ."
  • What does it meant to say "the canonical" form of XML?
  • Why is the XML infoset specification different from the xml dom? What does the infoset attempt to solve?
  • Contrast dtds versus xsds. What are their similarities and differences? Which is preferred and why?
  • Does system. XML support dtds? How?
  • Can any XML Schema be represented as an object graph? Vice versa?
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.