Wednesday, July 12, 2006

ASP.NET

  • 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 would 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?
  • 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 “about”
  • 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 would one do a deep copy in .NET?
  • Explain current thinking around IClonable.
  • What is boxing?
  • Is string a value type or a reference type?

The following questions are taken from the link below

---------------------------------------------------------------

http://www.pkblogs.com/basittanveer/2006/05/aspnet-interview-questions.html

-------------------------------------------------------------------

1. What is the difference between encoding and encryption? Which is easy to break? Can we disable the view state application wide? can we disable it on page wide? can we disable it for a control?

Ans: encoding is easy to break, we can disable it page wide and control level.

2. Can you read the View State? Disadvantage of a view state. ( asked to me in IFLEX Solutions)

Ans: Yes we can read the view state since it is encoded using base64 string, so it is easy to break it, we also have view state decoders ( http://www.pluralsight.com/toolcontent/ViewStateDecoder21.zip)

3. What is provider Model? (asked to me in mindlogicx , salsoft)

Ans: Provider model means that microsoft has provided a set of interfaces, a new vendor just needs to implement them and write the functionality for their software to work with MS. example SQL provider model, ODBC provider model, MySQL proviuder model.

4. Any idea of Enterprise library?

http://www.dotnetjunkies.com/Article/29EF3A4F-A0C2-4BB2-A215-8F87F100A9F9.dcik

5. Can we have multiple web.config files in a sigle web project? ( asked to me in IFLEX Solutions, salsoft)

Ans: Yes we can have them for each sub folders in the web project main folder.

6. Can we have more then one configuration file?

Ans: yes

7. What is the difference between syncronus and asyncronus?

Ans: syncronus means you are waiting for the responce to come back, while in the asyncronus you start with the next staement and whenever the results come back a call back function is called.

8. Difference between http and https? what is purpose of aspnet_wp.exe ? what is an ISAPI filter? what do you mean by HTTP Handler?

Ans: https means it is using SSL, aspnet_wp is the worker process that handles all the asp net requests, ISAPI filter helps the iis in identifying the request type and forwarding it to the appropriate handler.

9. what is side by side execution?

Ans: It means that we can have two dot net version running on the same server machine, and the application build in asp.net 1.1 will be server by dot net framework 1.1 and the applications build in asp.net 2.0 will be server by dot net framework 2.0.

10. can we have two different versions of dot net frameworks running on the same machine?

Ans: yes

11. Can we have an updateable view in SQL?

Ans: Yes

12. What is the difference between typed and untyped dataset?

Ans: typed data set contains the inforation of the db/table structure

No comments: