Interview Questions for .Net Developer


Interview Questions for .Net Developer

Interview Questions

  • What is strong-typing versus weak-typing?
  • What is the difference between an .EXE and a .DLL?
  • What is the difference between a thread and a process?
  • What is the difference between a.Equals(b) and a == b?
  • What is boxing?
  • Is string a value type or a reference type?
  • What is the Global Assembly Cache (GAC)? What problem does it solve?
  • What is an Interface and how is it different from a Class?
  • What is Reflection?
  • Conceptually, what is the difference between early-binding and late-binding?
  • When would using Assembly.LoadFrom or Assembly.LoadFile be appropriate?
  • What is an Asssembly Qualified Name? Is it a filename? How is it different?
  • How is a strongly-named assembly different from one that isn’t strongly-named?
  • What does this do? sn -t foo.dll
  • 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()
  • What is the difference between in-proc and out-of-proc? What technology enables out-of-proc communication in .Net?
  • What is FullTrust? Do GAC’ed assemblies have FullTrust?
  • 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?
  • 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()?
  • What is the purpose of XML Namespaces?
  • What is the difference between an XML "Fragment" and an XML "Document"?
  • How would you validate XML using .Net?
  • What is a PostBack?
  • What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState? Why is it either useful or evil?
  • What Session State providers are available in ASP .Net? What are the pros and cons of each?
  • What is the OO relationship between an ASPX page and its CS/VB code behind file?
  • How would one implement ASP .Net HTML output caching, caching outgoing versions of pages generated via all values of q= except where q=5 (as in http://localhost/page.aspx?q=5 )?
  • What are HttpHandlers?
  • What are HttpModules?
  • 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?
  • How do cookies work? What is an example of Cookie abuse?
  • What kind of data is passed via HTTP Headers?
  • How does IIS communicate at run time with ASP.NET? Where is ASP.NET at run time in the different versions of IIS (5 to 7)?
  • Whats the difference between an abstract class and interface? When would you want to use them?
  • What's the difference between a left join and an inner join?
  • What's the difference between viewstate and sessionstate?
  • What's the difference between overriding and overloading a method? Explain how both are done.
  • What's the difference between protected and internal? What about "protected internal"?
  • How do short-circuited operators work?
  • Explain what the StringBuilder class is and why you'd want to use it?
  • What's the difference between a static method and a non-static method?
  • What does the "volatile" keyword in c# mean?
  • Explain what happens when you pass a "ref" or "out" parameter into a method. What's the difference between those two keywords?
  • What's a weakreference? When would you want to use one?
  • What's the difference between a DataTable and a DataReader?
  • What's the difference between a value-type and a reference type?
  • What does the "readonly" keyword in c# mean?
  • 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 events fire when binding data to a data grid? What are they good for?
  • 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 evil?
  • What happens from the point an HTTP request is received on a TCP/IP port up until the Page fires the On_Load event?
  • How does IIS communicate at run time with ASP .Net?  Where is ASP .Net at run time in IIS5 and 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().

Coding Exercise
  • Write your own linked list class without using the built-in classes.
  • Write your own hashtable class without using the built-in classes.
  • Write a class that represents a binary tree. Write a method that traverses all nodes of the tree.
  • Write a method to perform a binary search on an array without using built-in methods.
  • Draw a database schema for a blog. Each user only has one blog, each blog has many categories, each category has many posts, and each post can belong to more than one category. Ask your applicant to write queries to pull specific information out.
  • (Event handlers) Create a class with a custom event handler, create another class which hooks onto the custom event handler.
  • (XML) Load an XML document and select all of the nodes with properties x, y, and z.
  • (Functional programming) Create a function that accepts another function as a parameter. A Map or Fold function works really good for this.
  • (Reflection) Write a function which determines if a class has a particular attribute.
  • (Regex) Write a regular expression which removes all tags from a block of HTML.
I hope you have enjoyed .net latest interview questions. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.
Interview Questions for .Net Developer Reviewed by Ravi Kumar on 1:32 PM Rating: 5

No comments:

All Rights Reserved by Etechpulse © 2012 - 2017

Contact Form


Email *

Message *

Powered by Blogger.