web 2.0

Interview Questions Series 1

Q1) Describe the difference between a Thread and a Process?Ans) Process is a collection of multiple threads ans is a unit of allocation. whereas thread is a unit of execution which allow an application to run multiple task, multiple threads in a process share the same virtual memory.Q2)What is a Windows Service and how does its lifecycle differ from a “standard” EXE?Ans) Windows services are the long running Process and have no user interface and control by Service Control Manager. Windows Services can start when the os starts and all the logs of windows service maintain in Widnows Event Log. Q3)What is the difference between an EXE and a DLL?Ans) An Exe can run independently where as DLL need an executeable file(EXE) to perform any function. DLL is in Process file where as EXE is out Process file. Q4)What is strong-typing versus weak-typing? Which is preferred? Why?Ans) Strong type check the variable and data type as soon as possible usually at compile time where as Weak type reverse the situation means as late as possible at runtime. furthermore,the preference is depends upon what are you up to. If you are writing script then use weak typing and if you are writing application in which speed is really matters then I sugges you should do strong type.Q5)What are PDBs? Where must they be located for debugging to work?Ans)PDB is Program database file which contain the state information.It contains the debug information of assembly.Q6)What is FullTrust? Do GAC’ed assemblies have FullTrust?Ans) Fulltrust assemblies means your code is allowed to do any thing, All .net Permission granted. Yes GAC Have full trust permission because it reside on local hd but we can change that using CASPOL.Q7)Why is catch(Exception) almost always a bad idea?Ans) Well , being a programmer if a LOC expected to throw error then why dont we catch directly that specific exception for example instead of catch(Exception ex){it catches all the exception and perform accrodingly} we can catch(NullException ex) {It catches only NullException type} Good Idea.Q8) What is the difference between Debug.Write and Trace.Write? When should each be used?Ans) Debug.write only works in Debug mode whereas Trace.write works in both Debug and release mode.Q9) What is Reference Type and value Type?Ans) String is Reference Type.Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short,strut, uint, ulong, ushortValue types are stored in the StackReference type - class, delegate, interface, object, stringReference types are stored in the Heap

Comments

Kanchan , on 11/2/2008 8:20:44 AM Said:

Kanchan

It's great site and very helpful. Thanks a lot for such an informative site

Shailesh thapa India, on 7/28/2009 7:02:37 AM Said:

Shailesh thapa

hi,
    thanks for your beautiful posts,i am looking shopping cart built in c#,many sites have shown the cart but with no source code or without explaination.Can u post a beautiful article regarding the shopping cart and it's functionalitry, from the scratch to end,we all who are searching for shopping cart will be much much thankful of you.  

Thanks in advance
brooni.123@gmail.com

Online Booking Software United States, on 11/2/2009 11:29:10 AM Said:

Online Booking Software

Admiring the time and effort you put into your blog and detailed information you offer! I will bookmark your blog and have my children check up here often. Thumbs up!

natural supplements United States, on 11/2/2009 3:43:44 PM Said:

natural supplements

I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful.

Alaskan Smoked Salmon Spread United States, on 11/2/2009 3:46:58 PM Said:

Alaskan Smoked Salmon Spread

Valuable information and excellent design you got here! I would like to thank you for sharing your thoughts and time into the stuff you post!! Thumbs up

self defense techniques United States, on 11/2/2009 3:47:44 PM Said:

self defense techniques

Dude.. I am not much into reading, but somehow I got to read lots of articles on your blog. Its amazing how interesting it is for me to visit you very often.

tramadol medications United States, on 11/4/2009 4:05:29 PM Said:

tramadol medications

Nice to be visiting your blog again, it has been months for me. Well this article that i've been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share.

Christmas Jigsaw Puzzle United States, on 11/5/2009 12:49:28 PM Said:

Christmas Jigsaw Puzzle

This is a really good read for me, Must admit that you are one of the best bloggers I ever saw.Thanks for posting this informative article.

provillus liquid United States, on 11/13/2009 7:36:40 AM Said:

provillus liquid

I admit, I have not been on this webpage in a long time... however it was another joy to see It is such an important topic and ignored by so many, even professionals. I thank you to help making people more aware of possible issues.
Great stuff as usual...

Work Travel Canada United States, on 11/13/2009 9:25:47 PM Said:

Work Travel Canada

You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and very broad for me. I am looking forward for your next post, I will try to get the hang of it!

Canopy Swings - Find one that fits your style United States, on 11/16/2009 5:37:35 PM Said:

Canopy Swings - Find one that fits your style

When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get four emails with the same comment.
Is there any way you can remove me from that service?
Thanks!

Ordering Acai Berry Product United States, on 11/18/2009 5:13:53 PM Said:

Ordering Acai Berry Product

I was wondering what is up with that weird gravatar??? I know 5am is early and I'm not looking my best at that hour, but I hope I don't look like this! I might however make that face if I'm asked to do 100 pushups. lol

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading