<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-319718671785572812</id><updated>2024-08-30T19:34:00.429+05:30</updated><category term=".net"/><category term=".net framework"/><category term="CLR"/><category term="JIT Compiler"/><category term="Lesrn dotnet"/><category term="MSIL Code"/><category term="c#"/><title type='text'>.NET Technology</title><subtitle type='html'>A powerful technology to develop desktop,mobile &amp;amp; web applications.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetprofesor.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/319718671785572812/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dotnetprofesor.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ashok Agrawal</name><uri>http://www.blogger.com/profile/13775116372371286699</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-319718671785572812.post-3239112645985360692</id><published>2011-02-18T18:58:00.000+05:30</published><updated>2011-02-18T18:58:27.037+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term=".net"/><category scheme="http://www.blogger.com/atom/ns#" term=".net framework"/><category scheme="http://www.blogger.com/atom/ns#" term="c#"/><category scheme="http://www.blogger.com/atom/ns#" term="CLR"/><category scheme="http://www.blogger.com/atom/ns#" term="JIT Compiler"/><category scheme="http://www.blogger.com/atom/ns#" term="Lesrn dotnet"/><category scheme="http://www.blogger.com/atom/ns#" term="MSIL Code"/><title type='text'>.NET FRAMEWORK &amp; CORE CONCEPT</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Like any other  plateform, the .Net  Framework introduces terimnology that you need to  be aware of Following  is a list of some of these terms:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 100%;&quot;&gt;&lt;b&gt;1. &lt;/b&gt;&lt;u&gt;&lt;b&gt;CLR&lt;/b&gt;&lt;/u&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;The Common Language  Runtime (CLR) is a  key .Net Framework component. The CLR is the  container, or the  execution environment, in which all the managed code  runs. The CLR  getsits name from the fact that .Net provides a binary  standard and any  programming language that adheres to the binary  standard can be used for  writing code that can be run by the CLR. In  its infrastructure services  to support execution of managed code. These  services include automatic  memory management, type safety, thread and  process management, security  and versioning. The CLR sits between the  managed code and the operating  system so that your code is insulated  from interacting directly with the  operating system. This arrangement  makes your code portable to some  extent and also frees you from having  to do system-level tasks so that  you can concentrate on writing  application code.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 100%;&quot;&gt;&lt;b&gt;The  CLR provides the following services:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Code Management&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Software  memory isolation&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Verification  of the tyoe  safety of MSIL&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Conversion of  MSIL to native  code&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Loading and  execution of  managed code (MSIL or native)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Accessing  metadata (enhanced  type information)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Managing  memory for managed  objects&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Insertion and  execution of  securty checks&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Handling  exceptions,  including cross-language exceptions&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Interopeation  between .NET  Framework objects and COM objects&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Automation of  objects layout  for late binding&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;Supporting  developer  services (Profiling, debugging, etc.)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;font-family: Verdana,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 100%;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;2. MANAGED  CODE&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 100%;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;The  Code which is  managed by CLR.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;Managed code runs under  a  contract of cooperation with the CLR. This means that managed code  must  supply the metadata necessary for the runtime to provide services  such  as memory management, cross-language integration, code access  security,  and automatic control of objects lifetime.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: Verdana,sans-serif; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 100%;&quot;&gt;&lt;b&gt;3.  MSIL&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: verdana; text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;The Microsoft  intermediate Language (MSIL) is  the equivelent of Java byte code. The  MSIL executes the managed code.  languages that support generating MSIL  can leverage the infrastructure  services of the CLR.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: 85%;&quot;&gt;MSIL is a stack based set of instructions  designed to be easily generated from source code by compilers and other  tools. Several kinds of instructions are provided, including  instructions for arithmetic and logical operations, control flow, direct  memory access, exception handling,and method invocation. These is also a   set of MSIL instructions for implementing object-oriented programming  constructs such a s virtual method caals, field acess array access, and  object allocation and initialization.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 100%;&quot;&gt;&lt;b&gt;4. JIT&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;The CLR provides  three JIT compilers for converting MSIL to native code: EconoJIT,JIT,  and OpJIT. Each JIT compilers has been designed to meet specific gaols  with respect to performance and resource usage. The performance  charactristics are summarized:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;JIT Compiler     Input Language     JIT Compiler  Overhead     Compilation Speed     Quality of Output&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;EconoJIT         MSIL(incl. OptIL)  Very Small                       Very Fast                 Low&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;JIT                 &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 85%;&quot;&gt;MSIL(incl. OptIL)   Medium to large               Moderate                 High&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 100%;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;OptJIT             OptIL only           Small                             Fast                         High&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: 85%;&quot;&gt;Because of the low overhead of the EconoJIT  compiler, as well as the ease with which it can be ported to new  architectures, the  .NET Framework does not include an interpreter for  MSIL. (EconoJIT is so named becauseit performs the same task as the full  JIT compiler but using less computer resources. As a trade-off, the  quality of the generated code is not so high).&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://ashokbindal.blogspot.com/2011/02/cnet-interview-questions-ans-answers.html&quot;&gt;C#  Interview Question and Answers&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-weight: bold;&quot;&gt;C# Tools :&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;a href=&quot;http://msdn.microsoft.com/library/x53a06bb.aspx&quot;&gt;C# Keywords&lt;/a&gt; &lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://msdn.microsoft.com/library/6a71f45d.aspx&quot;&gt;C# Operators&lt;/a&gt;  &lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://msdn.microsoft.com/library/ed8yd1ha.aspx&quot;&gt;C# Preprocessor  Directives&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://msdn.microsoft.com/library/aa287997.aspx&quot;&gt;C# Language  Features&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://msdn.microsoft.com/library/aa288436.aspx&quot;&gt;C# Language  Tutorials&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetprofesor.blogspot.com/feeds/3239112645985360692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetprofesor.blogspot.com/2011/02/net-framework-core-concept.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/319718671785572812/posts/default/3239112645985360692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/319718671785572812/posts/default/3239112645985360692'/><link rel='alternate' type='text/html' href='http://dotnetprofesor.blogspot.com/2011/02/net-framework-core-concept.html' title='.NET FRAMEWORK &amp; CORE CONCEPT'/><author><name>Ashok Agrawal</name><uri>http://www.blogger.com/profile/13775116372371286699</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-319718671785572812.post-5507448927524585088</id><published>2011-02-18T18:35:00.000+05:30</published><updated>2011-02-18T18:35:56.459+05:30</updated><title type='text'>C#.Net Interview Questions ans Answers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q1. &lt;b&gt;What’s the advantage of using System.Text.StringBuilder over  System.String?&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Ans.&amp;nbsp; &lt;/b&gt;StringBuilder is more efficient in the cases, where a  lot of manipulation is done to the text. Strings are immutable, so each  time it’s being operated on, a new instance is created.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q2.&lt;b&gt;What’s a satellite assembly?&amp;nbsp;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Ans. &lt;/b&gt;When you write a multilingual or  multi-cultural application in .NET, and want to distribute the core  application separately from the localized modules, the localized  assemblies that modify the core application are called satellite  assemblies.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Q3. &lt;b&gt;Is it possible to inline assembly or IL in C# code?&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Ans.&amp;nbsp; &lt;/b&gt;No&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q4. &lt;b&gt;Is it possible to have a static indexer in C#?&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Ans. &lt;/b&gt;No, Static  indexers are not allowed in C#.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q5. &lt;strong&gt;Does C# support multiple-inheritance?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;Ans.&lt;/strong&gt; No.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q6. &lt;strong&gt;Who is a protected class-level variable available to?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;Ans.&lt;/strong&gt; It is available to any sub-class (a class inheriting this  class).&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Q7. &lt;strong&gt;How can you sort the elements of the array in descending order?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;Ans. &lt;/strong&gt;By calling Sort() and then Reverse() methods.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q8. &lt;strong&gt;Explain the three services model commonly know as a three-tier  application.&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;Ans. &lt;/strong&gt;Presentation (UI), Business (logic and underlying code) and  Data (from storage or other sources). &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q9. &lt;strong&gt;Can multiple catch blocks be executed for a single try  statement?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;Ans. &lt;/strong&gt;No.  Once the proper catch block processed, control is  transferred to the finally block (if there are any).&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q10. &lt;strong&gt;Will the finally block get executed if an exception has not  occurred?&lt;/strong&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;strong&gt;Ans. &lt;/strong&gt;Yes.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q11. &lt;b&gt;Is it possible to have different access modifiers on the get/set  methods of a property?&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Ans. &lt;/b&gt;No. The access modifier on a property  applies to both its get and set accessors. What you need to do if you  want them to be different is make the property read-only (by only  providing a get accessor) and create a private/internal set method that  is separate from the property.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q12. &lt;b&gt;Can multiple catch blocks be executed?&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Ans. &lt;/b&gt;No, once the proper catch  code fires off, the control is transferred to the finally block (if  there are any), and then whatever follows the finally block.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&amp;nbsp;Q13. &lt;b&gt;What are the ways to deploy an assembly?&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;Ans. &lt;/b&gt;An MSI installer, a CAB  archive, and XCOPY command.&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q14. &lt;b style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: verdana; font-size: x-small;&quot;&gt;What  is the name of c#.net compiler?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: verdana; font-size: x-small;&quot;&gt;Ans. &lt;/span&gt;&lt;/b&gt;CSC&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;Q15.&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: x-small;&quot;&gt; what is the main difference between delegate and an event in c#?&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: x-small;&quot;&gt;Ans. &lt;/span&gt;&lt;/b&gt;Delegates and Events Both are related. Dalegete is a function  pointer which can able to store the address of any function with same  prototype.Event is a function handler which can handles or run  the functions in same prototype of its delegate.For handling  the events delegate is uesd.&lt;b&gt;&lt;span style=&quot;font-family: Verdana,sans-serif; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt; &lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;  &lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetprofesor.blogspot.com/feeds/5507448927524585088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetprofesor.blogspot.com/2011/02/cnet-interview-questions-ans-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/319718671785572812/posts/default/5507448927524585088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/319718671785572812/posts/default/5507448927524585088'/><link rel='alternate' type='text/html' href='http://dotnetprofesor.blogspot.com/2011/02/cnet-interview-questions-ans-answers.html' title='C#.Net Interview Questions ans Answers'/><author><name>Ashok Agrawal</name><uri>http://www.blogger.com/profile/13775116372371286699</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>