Thursday, June 30, 2005

What's the advantage of using strongly typed datasets in ADO.NET?

Monday, June 27, 2005

A circular project dependency occurs when two or more projects depend on each other. For example: FileOne in ProjectA depends on FileTwo in ProjectB, and FileThree in ProjectB depends on FileFour back in ProjectA.

How will U solve such dependencies in VS.NET ?

Wednesday, June 22, 2005

Suppose U have a file that needs to be shared between a .NET application and a non-.NET application for writing/reading. How will U do it ?

Thursday, June 16, 2005

Webservice questions:
  • What's the difference btw a *.WSDL file and a *.DISCO file?
  • Diff btw *.vsdisco and *.disco file?
  • How does dynamic discovery (in case of *.vsdisco) work? What goes on behind the scenes?

Wednesday, June 15, 2005

How do U change the account under which asp.net runs? In IIS5 and IIS6?
What do the special accounts "machine" and "system" mean?
What are the differences between Response.Redirect(), Server.Transfer() and Server.Execute() ?

Tuesday, June 14, 2005

U need to insert a binary value in a registry key. What object type would U use to insert the data?
What is a channel sink in .NET remoting?
Explain how would U create a chain of channel sinks and how they are useful?
Can I use a binary formatter with a HTTP channel in .NET remoting?

Monday, June 13, 2005

Have U ever used thread-pooling in .NET? What classes did U use?
What is a race condition? How is it different from a dead-lock?
How can U use delegates for asynchronous programming?
Ever heard of 'AsyncCallBack'?
What's the difference btw 'out' and 'ref' parameters?

Why does .NET have both 'out' and 'ref' parameters?
(Hint: I have observed that after compilation, the IL assembly code of both 'out' and 'ref' is same)
Can I declare a delegate outside of a class? i.e. public delegate void myDelegate()
Can I declare a event outside of a class? i.e. public event myDelegate myEvent;
If not then WHY?

Is is necessary that a event delegate should take the 'source' and 'EventArgs' parameters?

Have U ever heard of the 'EventHandler' delegate? Where have U seen it being used?

Wednesday, June 08, 2005

What is obfuscation and how does it work?
How to Decompilers work ?

Tuesday, June 07, 2005

  • How would U debug a service? Will F5 work?
  • How would U debug the OnStart() method of a service?
Can U create a custom event log? (besides the "Application", "Security" and "System")
I need to create a public/private key pair. What .NET SDK tool can I use?
  • Can 2 services share a same process?
  • In the OnStart() method of a service, I try to make a database connection that takes around 40 sec. What will happen?
  • How is the Pause() method different from a Stop() method in a service?
  • A service is handling some Performance counters, EventLogs etc. Is it possible to add a new Perf counter without recompiling the service application?

Monday, June 06, 2005

How is the DLL Hell problem solved in .NET?
Can you change the value of a variable while debugging a C# application?
U develop an application that supports various languages using globalization. How will U compare or sort strings?. Will the == or equals() method suffice?
By default, ASP.NET configuration files that are located in subdirectories override and extend configuration settings that are declared in parent configuration files. In application hosting scenarios, you might want to lock some settings of an ASP.NET application to prevent modification at lower levels. How will U do so?

Thursday, June 02, 2005

What are events and delegates?
How are events different from delegates? (I typically use the "+" operator to assign a delegate to a event)
What are weak references? What are their advantages?
  • How does GC work in .NET?
  • Since objects are automatically memory-managed, can a .NET application ever go "out of memory" ??
  • Are there resources that cannot be garbage collected? Why do we have a Dispose() method?
  • What's the difference between Finalize() and Dispose() method? When to use what?
  • What are generations in GC? What's the advantage of having generations?
  • How does GC work in a distributed environment such as "Remoting"?
  • When do we use the "SuppressFinalize()" method?

Important Notice - to all wannabe geeks..

Over the last couple of years, I have been taking interviews for .NET and I realise that the percentage of developers who have their fundamentals strong is so less !!!
In this blog, I am going to post dotnet interview questions.

These questions will not have their answers. This is on purpose !!!!

I do not want someone to just read the answers and mug-up for an interview...A true geek should take the pain to find out the answers and understand the underlying concepts.
It is possible that some of the answers may be found at my other blog:
http://NarenCoolGeek.blogspot.com/

Note: Some questions would be very simple, some complex and confusing...Enjoy !!!