<?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-1128912916081089813</id><updated>2024-10-24T17:30:02.717-07:00</updated><title type='text'>ASP.NET</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-3978020578307301636</id><published>2012-12-20T01:46:00.001-08:00</published><updated>2012-12-20T01:46:37.948-08:00</updated><title type='text'>write a program to swap Two numbers without using temp variable.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span&gt;a=a+b;
b=a-b;
a=a-b;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/3978020578307301636/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/12/write-program-to-swap-two-numbers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/3978020578307301636'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/3978020578307301636'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/12/write-program-to-swap-two-numbers.html' title='write a program to swap Two numbers without using temp variable.'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-3632469206711038951</id><published>2012-12-20T01:44:00.002-08:00</published><updated>2012-12-20T01:44:42.488-08:00</updated><title type='text'>fibonacci series in c sharp</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-size: 16px; margin-bottom: 12px; margin-left: 10px; margin-right: 10px; padding: 6px 0px;&quot;&gt;using System;

class Program
{
    public static int Fibonacci(int n)
    {
 int a = 0;
 int b = 1;
 &lt;i style=&quot;color: #339933; font-style: normal;&quot;&gt;// In N steps compute Fibonacci sequence iteratively.&lt;/i&gt;
 for (int i = 0; i &amp;lt; n; i++)
 {
     int temp = a;
     a = b;
     b = temp + b;
 }
 return a;
    }

    static void Main()
    {
 for (int i = 0; i &amp;lt; 15; i++)
 {
     Console.WriteLine(Fibonacci(i));
 }
    }
}&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/3632469206711038951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/12/fibonacci-series-in-c-sharp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/3632469206711038951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/3632469206711038951'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/12/fibonacci-series-in-c-sharp.html' title='fibonacci series in c sharp'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-6712233160288346223</id><published>2012-12-20T01:41:00.003-08:00</published><updated>2012-12-20T01:41:44.677-08:00</updated><title type='text'>Prime Numbers between ’0′ and ’100′ in C#</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.Linq;&lt;br /&gt;
using System.Text;&lt;br /&gt;
&lt;br /&gt;
namespace PrimeNumber&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; &amp;nbsp; class Program&lt;br /&gt;
&amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; static void Main(string[] args)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bool isPrime = true;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int i = 1; i &amp;lt;= 100; i++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (int j = 2; j &amp;lt;= 100; j++)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (i != j &amp;amp;&amp;amp; i % j == 0)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; isPrime = false;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (isPrime)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.WriteLine(&quot;Prime:&quot; + i);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; isPrime = true;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Console.ReadKey();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/6712233160288346223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/12/prime-numbers-between-0-and-100-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/6712233160288346223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/6712233160288346223'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/12/prime-numbers-between-0-and-100-in-c.html' title='Prime Numbers between ’0′ and ’100′ in C#'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-7421873257356098786</id><published>2012-11-02T01:12:00.000-07:00</published><updated>2012-11-02T01:12:16.466-07:00</updated><title type='text'>Life Cycle of Master, User-control and Content  page </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
1.Content Page PreInit Event&lt;br /&gt;
2.Page:UserControl Init Event&lt;br /&gt;
3.Master:UserControl Init Event&lt;br /&gt;
4.Master Page Init Event&lt;br /&gt;
5.Content Page Init Event&lt;br /&gt;
6.Content Page Load Event&lt;br /&gt;
7.Master Page Load Event&lt;br /&gt;
8.Page:UserControl Load Event&lt;br /&gt;
9.Master:UserControl Load Event&lt;br /&gt;
10.Content page prerender&lt;br /&gt;
&lt;br /&gt;
11.Master Page&#39;s Page_prerender&lt;br /&gt;
&lt;br /&gt;
12.Master Page&#39;s Page_Unload&lt;br /&gt;
&lt;br /&gt;
13.and finally Content page&#39;s Page_Unload&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/7421873257356098786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/11/life-cycle-of-master-user-control-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/7421873257356098786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/7421873257356098786'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/11/life-cycle-of-master-user-control-and.html' title='Life Cycle of Master, User-control and Content  page '/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-7829035254447073313</id><published>2012-06-15T05:25:00.003-07:00</published><updated>2012-06-15T05:25:55.434-07:00</updated><title type='text'>OOPS Concepts</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: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;table border=&quot;0&quot; style=&quot;color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Object Oriented Programming?&lt;/strong&gt;&lt;br /&gt;It is a problem solving technique to develop software systems. It is a technique to think real world in terms of objects. Object maps the software model to real world concept. These objects have responsibilities and provide services to application or other objects.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What’s a Class?&lt;/strong&gt;&lt;br /&gt;A class describes all the attributes of objects, as well as the methods that implement the behavior of member objects. It’s a comprehensive data type which represents a blue print of objects. It’s a template of object.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What’s an Object?&lt;/strong&gt;&lt;br /&gt;It is a basic unit of a system. An object is an entity that has attributes, behavior, and identity. Objects are members of a class. Attributes and behavior of an object are defined by the class definition.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is the relation between Classes and Objects?&lt;/strong&gt;&lt;br /&gt;They look very much same but are not same. Class is a definition, while object is a instance of the class created. Class is a blue print while objects are actual objects existing in real world. Example we have class CAR which has attributes and methods like Speed, Brakes, Type of Car etc. Class CAR is just a prototype, now we can create real time objects which can be used to provide functionality. Example we can create a Maruti car object with 100 km speed and urgent brakes.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Abstraction?&lt;/strong&gt;&lt;br /&gt;It allows complex real world to be represented in simplified manner. Example color is abstracted to RGB. By just making the combination of these three colors we can achieve any color in world.It’s a model of real world or concept.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Encapsulation?&lt;/strong&gt;&lt;br /&gt;It is a process of hiding all the internal details of an object from the outside world.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Object lifetime?&lt;/strong&gt;&lt;br /&gt;All objects have life time.Objects are created ,and initialized, necessary functionalities are done and later the object is destroyed. Every object have there own state and identity which differ from instance to instance.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Association?&lt;/strong&gt;&lt;br /&gt;This is the simplest relationship between objects. Example every customer has sales. So Customer object and sales object have an association relation between them.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Aggregation?&lt;/strong&gt;&lt;br /&gt;This is also called as composition model. Example in order to make a &quot;Accounts&quot; class it has use other objects example &quot;Voucher&quot;, &quot;Journal&quot; and &quot;Cash&quot; objects. So accounts class is aggregation of these three objects.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Polymorphism?&lt;/strong&gt;&lt;br /&gt;When inheritance is used to extend a generalized class to a more specialized class, it includes behavior of the top class(Generalized class). The inheriting class often implement a behavior that can be somewhat different than the generalized class, but the name of the behavior can be same. It is important that a given instance of an object use the correct behavior, and the property of polymorphism allows this to happen automatically.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What are abstract classes?&lt;/strong&gt;&lt;br /&gt;Following are features of a abstract class :-&lt;br /&gt;1. You can not create a object of abstract class.&lt;br /&gt;2. Abstract class is designed to act as a base class (to be inherited by other classes). Abstract class is a design concept in program development and provides a base upon which other classes are built.&lt;br /&gt;3. Abstract classes are similar to interfaces. After declaring an abstract class, it cannot be instantiated on its own, it must be inherited.&lt;br /&gt;4. In VB.NET abstract classes are created using&amp;nbsp;&lt;b&gt;&lt;i&gt;&quot;MustInherit&quot;&lt;/i&gt;&lt;/b&gt;&amp;nbsp;keyword.In C# we have&amp;nbsp;&lt;b&gt;&lt;i&gt;&quot;Abstract&quot;&lt;/i&gt;&lt;/b&gt;&amp;nbsp;keyword.&lt;br /&gt;5. Abstract classes can have implementation or pure abstract methods which should be implemented in the child class.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is a Interface?&lt;/strong&gt;&lt;br /&gt;Implementing a interface it says to the outer world, that it provides specific behavior. Example if a class is implementing Idisposable interface that means it has a functionality to release unmanaged resources. Now external objects using this class know that it has contract by which it can dispose unused unmanaged objects. Single Class can implement multiple interfaces.&lt;br /&gt;If a class implements a interface then it has to provide implementation to all its methods.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is difference between abstract classes and interfaces?&lt;/strong&gt;&lt;br /&gt;Following are the differences between abstract and interfaces :-&lt;br /&gt;1. Abstract classes can have concrete methods while interfaces have no methods implemented.&lt;br /&gt;2. Interfaces do not come in inheriting chain, while abstract classes come in inheritance.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is a delegate?&lt;/strong&gt;&lt;br /&gt;Delegate is a class that can hold a reference to a method or a function. Delegate class has a signature and it can only reference those methods whose signature is compliant with the class. Delegates are type-safe functions pointers or callbacks.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Do events have return type?&lt;/strong&gt;&lt;br /&gt;No, events do not have return type.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Can event’s have access modifiers?&lt;/strong&gt;&lt;br /&gt;Event’s are always public as they are meant to serve every one registering to it. But you can access modifiers in events.You can have events with protected keyword which will be accessible only to inherited classes.You can have private events only for object in that class.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Can we have shared events?&lt;/strong&gt;&lt;br /&gt;Yes, you can have shared event’s. Note: Only shared methods can raise shared events.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is shadowing?&lt;/strong&gt;&lt;br /&gt;When two elements in a program have same name, one of them can hide and shadow the other one. So in such cases the element which shadowed the main element is referenced.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is the difference between Shadowing and Overriding?&lt;/strong&gt;&lt;br /&gt;Following are the differences between shadowing and overriding :-&lt;br /&gt;1. Overriding redefines only the implementation while shadowing redefines the whole element.&lt;br /&gt;2. In overriding derived classes can refer the parent class element by using &quot;ME&quot; keyword, but in shadowing you can access it by &quot;MYBASE&quot;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is the difference between delegate and events?&lt;/strong&gt;&lt;br /&gt;Actually events use delegates in bottom. But they add an extra layer on the delegates, thus forming the publisher and subscriber model.&lt;br /&gt;As delegates are function to pointers they can move across any clients. So any of the clients can add or remove events, which can be pretty confusing. But events give the extra protection by adding the layer and making it a publisher and subscriber model. 212 Just imagine one of your clients doing this c.XyzCallback = null This will reset all your delegates to nothing and you have to keep searching where the error is.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;If we inherit a class do the private variables also get inherited?&lt;/strong&gt;&lt;br /&gt;Yes, the variables are inherited but can not be accessed directly by the class interface&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What are the different accessibility levels defined in .NET?&lt;/strong&gt;&lt;br /&gt;Following are the five levels of access modifiers :-&lt;br /&gt;1. Private : Only members of class have access.&lt;br /&gt;2. Protected :-All members in current class and in derived classes can access the variables.&lt;br /&gt;3. Friend (internal in C#) :- Only members in current project have access to the elements.&lt;br /&gt;4. Protected friend (protected internal in C#) :- All members in current project and all members in derived class can access the variables.&lt;br /&gt;5. Public :- All members have access in all classes and projects.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Can you prevent a class from overriding?&lt;/strong&gt;&lt;br /&gt;If you define a class as&amp;nbsp;&lt;i&gt;&lt;b&gt;&quot;Sealed&quot;&lt;/b&gt;&lt;/i&gt;&amp;nbsp;in C# and&amp;nbsp;&lt;i&gt;&lt;b&gt;&quot;NotInheritable&quot;&lt;/b&gt;&lt;/i&gt;&amp;nbsp;in VB.NET you can not inherit the class any further.&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table border=&quot;0&quot; style=&quot;color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is the use of &quot;MustInherit&quot; keyword in VB.NET?&lt;/strong&gt;&lt;br /&gt;If you want to create a abstract class in VB.NET it’s done by using &quot;MustInherit&quot; keyword.You can not create an object of a class which is marked as &quot;MustInherit&quot;. When you define &quot;MustInherit&quot; keyword for class you can only use the class by inheriting.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Do interface have accessibility modifier?&lt;/strong&gt;&lt;br /&gt;All elements in Interface should be public. So by default all interface elements are public by default.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What are similarities between Class and structure?&lt;/strong&gt;&lt;br /&gt;Following are the similarities between classes and structures :-&lt;br /&gt;1. Both can have constructors, methods, properties, fields, constants, enumerations, events, and event handlers.&lt;br /&gt;2. Structures and classes can implement interface.&lt;br /&gt;3. Both of them can have constructors with and without parameter.&lt;br /&gt;4. Both can have delegates and events.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is the difference between Class and structure’s?&lt;/strong&gt;&lt;br /&gt;Following are the key differences between them :-&lt;br /&gt;1.Structure are value types and classes are reference types. So structures use stack and classes use heap.&lt;br /&gt;2. Structures members can not be declared as protected, but class members can be. You can not do inheritance in structures.&lt;br /&gt;3. Structures do not require constructors while classes require.&lt;br /&gt;4.Objects created from classes are terminated using Garbage collector. Structures are not destroyed using GC.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What does virtual keyword mean?&lt;/strong&gt;&lt;br /&gt;They are that method and property can be overridden.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What are shared (VB.NET)/Static(C#) variables?&lt;/strong&gt;&lt;br /&gt;Static/Shared classes are used when a class provides functionality which is not specific to any instance. In short if you want an object to be shared between multiple instances you will use a static/Shared class. Following are features of Static/Shared classes :-&lt;br /&gt;1. They can not be instantiated. By default a object is created on the first method call to that object.&lt;br /&gt;2. Static/Shared classes can not be inherited.&lt;br /&gt;3. Static/Shared classes can have only static members.&lt;br /&gt;4. Static/Shared classes can have only static constructor.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Dispose method in .NET?&lt;/strong&gt;&lt;br /&gt;NET provides &quot;Finalize&quot; method in which we can clean up our resources. But relying on this is not always good so the best is to implement &quot;Idisposable&quot; interface and implement the &quot;Dispose&quot; method where you can put your clean up routines.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is the use of &quot;OverRides&quot; and &quot;Overridable&quot; keywords?&lt;/strong&gt;&lt;br /&gt;Overridable is used in parent class to indicate that a method can be overridden. Overrides is used in the child class to indicate that you are overriding a method&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Where are all .NET Collection classes located?&lt;/strong&gt;&lt;br /&gt;System.Collection namespace has all the collection classes available in .NET.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is ArrayList?&lt;/strong&gt;&lt;br /&gt;Array is whose size can increase and decrease dynamically. Array list can hold item of different types. As Array list can increase and decrease size dynamically you do not have to use the REDIM keyword. You can access any item in array using the INDEX value of the array position.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What’s a HashTable?&lt;/strong&gt;&lt;br /&gt;You can access array using INDEX value of array, but how many times you know the real value of index. Hashtable provides way of accessing the index using a user identified KEY value, thus removing the INDEX problem.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What are queues and stacks?&lt;/strong&gt;&lt;br /&gt;Queue is for first-in, first-out (FIFO) structures. Stack is for last-in, first-out (LIFO) structures.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is ENUM?&lt;/strong&gt;&lt;br /&gt;It’s used to define constants.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Operator Overloading in .NET?&lt;/strong&gt;&lt;br /&gt;It allows us to define/redefine the way operators work with our classes and structs. This allows programmers to make their custom types look and feel like simple types such as int and string. VB.NET till now does not support operator overloading. Operator overloading is done by using the &quot;Operator&quot; keyword. Note:- Operator overloading is supported in VB.NET 2005&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is the significance of Finalize method in .NET?&lt;/strong&gt;&lt;br /&gt;.NET Garbage collector does almost all clean up activity for your objects. But unmanaged resources (ex: - Windows API created objects, File, Database connection objects, COM objects etc) is outside the scope of .NET framework we have to explicitly clean our resources. For these types of objects .NET framework provides Object. Finalize method 218 which can be overridden and clean up code for unmanaged resources can be put in this section.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Why is it preferred to not use finalize for clean up?&lt;/strong&gt;&lt;br /&gt;Problem with finalize is that garbage collection has to make two rounds in order to remove objects which have finalize methods. Below figure will make things clear regarding the two rounds of garbage collection rounds performed for the objects having finalized methods. In this scenario there are three objects Object1, Object2 and Object3. Object2 has the finalize method overridden and remaining objects do not have the finalize method overridden. Now when garbage collector runs for the first time it searches for objects whose memory has to free. He can see three objects but only cleans the memory for Object1 and Object3. Object2 it pushes to the finalization queue. Now garbage collector runs for the second time. He see’s there are no objects to be released and then checks for the finalization queue and at this moment it clears object2 from the memory. So if you notice that object2 was released from memory in the second round and not first. That’s why the best practice is not to write clean up Non.NET resources in Finalize method rather use the DISPOSE.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;How can we suppress a finalize method?&lt;/strong&gt;&lt;br /&gt;GC.SuppressFinalize ()&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is the use of DISPOSE method?&lt;/strong&gt;&lt;br /&gt;Dispose method belongs to IDisposable interface. We had seen in the previous section how bad it can be to override the finalize method for writing the cleaning of unmanaged resources. So if any object wants to release its unmanaged code best is to implement 220 IDisposable and override the Dispose method of IDisposable interface. Now once your class has exposed the Dispose method it’s the responsibility of the client to call the Dispose method to do the cleanup.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;How do I force the Dispose method to be called automatically, as clients can forget to call Dispose method?&lt;/strong&gt;&lt;br /&gt;Call the Dispose method in Finalize method and in Dispose method suppress the finalize method using GC.SuppressFinalize. Below is the sample code of the pattern. This is the best way we do clean our unallocated resources and yes not to forget we do not get the hit of running the Garbage collector twice. Note:- It will suppress the finalize method thus avoiding the two trip. Public Class ClsTesting Implements IDisposable Public Overloads Sub Dispose()Implements IDisposable.Dispose &#39; write ytour clean up code here GC.SuppressFinalize(Me) End Sub Protected Overrides Sub Finalize() Dispose() End Sub End Class&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;In what instances you will declare a constructor to be private?&lt;/strong&gt;&lt;br /&gt;When we create a private constructor, we can not create object of the class directly from a client. So you will use private constructors when you do not want instances of the class to be created by any external client. Example UTILITY functions in project will have no 221 instance and be used with out creating instance, as creating instances of the class would be waste of memory.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Can we have different access modifiers on get/set methods of a property?&lt;/strong&gt;&lt;br /&gt;No we can not have different modifiers same property. The access modifier on a property applies to both its get and set accessors.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;we write a goto or a return statement in try and catch block will the finally block execute?&lt;/strong&gt;&lt;br /&gt;The code in then finally always run even if there are statements like goto or a return statements.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is Indexer?&lt;/strong&gt;&lt;br /&gt;An indexer is a member that enables an object to be indexed in the same way as an array.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;Can we have static indexer in C#?&lt;/strong&gt;&lt;br /&gt;No&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;In a program there are multiple catch blocks so can it happen that two catch blocks are executed?&lt;/strong&gt;&lt;br /&gt;No, once the proper catch section is executed the control goes finally to block. So there will not be any scenarios in which multiple catch blocks will be executed.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;width: 32px;&quot; valign=&quot;top&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;http://dotnetinterviews.com/Images/bullet01.gif&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;What is the difference between System.String and System.StringBuilder classes?&lt;/strong&gt;&lt;br /&gt;System.String is immutable; System.StringBuilder can have mutable string where a variety of operations can be performed.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/7829035254447073313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/oops-concepts.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/7829035254447073313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/7829035254447073313'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/oops-concepts.html' title='OOPS Concepts'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-7705764445325392308</id><published>2012-06-06T23:16:00.000-07:00</published><updated>2012-06-06T23:22:02.289-07:00</updated><title type='text'>ASP.NET - .NET Interview Questions and Answers part 4</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: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
91. How many types of Cookies are available in ASP.NET?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are two types of Cookies available in ASP.NET:&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;b&gt;Session Cookie&lt;/b&gt;&amp;nbsp;- Resides on the client machine for a single session until the user does not log out.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;b&gt;Persistent Cookie&lt;/b&gt;&amp;nbsp;- Resides on a user&#39;s machine for a period specified for its expiry, such as 10 days, one month, and never.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The user can set this period manually.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
92. What is the use of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Global.asax&lt;/i&gt;&amp;nbsp;file?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Global.asax&lt;/i&gt;&amp;nbsp;file executes application-level events and sets application-level variables.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
93. What are the Culture and UICulture values?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The Culture value determines the functions, such as Date and Currency, which are used to format data and numbers in a Web page. The UICulture value determines the resources, such as strings or images, which are loaded for a Web page in a Web application.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
94. What is the difference between ASP session and ASP.NET session?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
ASP does not support cookie-less sessions; whereas, ASP.NET does. In addition, the ASP.NET session can span across multiple servers.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
95. Which control will you use to ensure that the values in two different controls match?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
You should use the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CompareValidator&lt;/i&gt;&amp;nbsp;control to ensure that the values in two different controls match.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-family: Verdana, Arial; font-size: 12px; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
96. What is the difference between a page theme and a global theme?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A page theme is stored inside a subfolder of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;App_Themes&lt;/i&gt;&amp;nbsp;folder of a project and applied to individual Web pages of that project. Global themes are stored inside the Themes folder on a Web server and apply to all the Web applications on the Web server.&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
97. What do you mean by a neutral culture?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
When you specify a language but do not specify the associated country through a culture, the culture is called as a neutral culture.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
98. What is the use of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;sessionState&amp;gt;&lt;/i&gt;&amp;nbsp;tag in the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;file?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;sessionState&amp;gt;&lt;/i&gt;&amp;nbsp;tag is used to configure the session state features. To change the default timeout, which is 20 minutes, you have to add the following code snippet to the web.config file of an application:&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;sessionState timeout=&quot;40&quot;/&amp;gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
99. Can you post and access view state in another application?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Yes, you can post and access a view state in other applications. However, while posting a view state in another application, the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;PreviousPage&lt;/i&gt;&amp;nbsp;property returns null.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
100. Which method do you use to kill explicitly a users session?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Session.Abandon()&lt;/i&gt;&amp;nbsp;method kills the user session explicitly.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
101. Which class is inherited when an ASP.NET server control is added to a Web form?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;System.Web.UI.WebControls&lt;/i&gt;&amp;nbsp;class is inherited when an ASP.NET server control is added to a Web form.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-family: Verdana, Arial; font-size: 12px; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
102. What events are fired when a page loads?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The following events fire when a page loads:&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot; style=&quot;color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Init()&lt;/i&gt;&amp;nbsp;- Fires when the page is initializing.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;LoadViewState()&lt;/i&gt;&amp;nbsp;- Fires when the view state is loading.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;LoadPostData()&lt;/i&gt;&amp;nbsp;- Fires when the postback data is processing.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Load()&lt;/i&gt;&amp;nbsp;- Fires when the page is loading.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;PreRender()&lt;/i&gt;&amp;nbsp;- Fires at the brief moment before the page is displayed to the user as HTML.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Unload()&lt;/i&gt;&amp;nbsp;- Fires when the page is destroying the instances of server controls.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
103. Write three common properties of all validation controls.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Three common properties of validation controls are as follows:&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ControlToValidate&lt;/i&gt;&amp;nbsp;- Provides a control to validate&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ErrorMessage&lt;/i&gt;&amp;nbsp;- Displays an error message&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;IsValid&lt;/i&gt;&amp;nbsp;- Specifies if the control&#39;s validation has succeeded or not&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Text&lt;/i&gt;&amp;nbsp;- Displays a text for validation control before validation&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
104. What are navigation controls? How many navigation controls are there in ASP.NET 4.0?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Navigation controls help you to navigate in a Web application easily. These controls store all the links in a hierarchical or drop-down structure; thereby facilitating easy navigation in a Web application.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are three navigation controls in ASP.Net 4.0.&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;SiteMapPath&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Menu&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;TreeView&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
105. What happens if an ASP.NET server control with event-handling routines is missing from its definition?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The compilation of the application fails.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
106. What are server-side comments?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Server-side comments are included in an ASP.NET page for the purpose of documentations as shown in the following code snippet:&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;%--This is an example of server-side comments --%&amp;gt;&amp;nbsp;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The server-side comments begin with&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;%--&lt;/i&gt;&amp;nbsp;and end with&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;--%&amp;gt;&lt;/i&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
107. How can we provide the WebParts control functionality to a server control?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
We can provide the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;WebParts&lt;/i&gt;&amp;nbsp;controls functionality to a server control by setting the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CreateWebPart&lt;/i&gt;&amp;nbsp;property of&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;WebPartManger&lt;/i&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-family: Verdana, Arial; font-size: 12px; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
108. How do you prevent a validation control from validating data at the client end?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
You can prohibit a validation control to validate data at the client side by setting the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;EnableClientScript&lt;/i&gt;property to&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;False&lt;/i&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
109. What is cross-page posting in ASP.NET?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Server.Transfer()&lt;/i&gt;&amp;nbsp;method is used to post data from one page to another. In this case, the URL remains the same. However, in cross page posting, data is collected from different Web pages and is displayed on a single page. To do so, you need to set the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;PostBackUrl&lt;/i&gt;&amp;nbsp;property of the control, which specifies the target page. In the target page, you can access the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;PreviousPage&lt;/i&gt;&amp;nbsp;property. For this, you need to use the&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;@PreviousPageType&lt;/i&gt;&amp;nbsp;directive. You can access the controls of previous page by using the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;FindControl()&lt;/i&gt;method.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
110. Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared Web hosting platform?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are many ASP.NET configuration choices, which are not able to configure at the site, application, or child directory level on the shared hosting environment. Some options can produce security, performance, and stability problem to the server and therefore cannot be changed.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The following settings are the only ones that can be changed in the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;file(s) of your Web site:&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;browserCaps&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;clientTarget&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;pages&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;customErrors&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;globalization&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;authorization&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;authentication&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;webControls&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;webServices&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
111. Explain the Application and Session objects in ASP.NET.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Application state is used to store data corresponding to all the variables of an ASP.NET Web application. The data in an application state is stored once and read several times. Application state uses the&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HttpApplicationState&lt;/i&gt;&amp;nbsp;class to store and share the data throughout the application. You can access the information stored in an application state by using the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HttpApplication&lt;/i&gt;&amp;nbsp;class property. Data stored in the application state is accessible to all the pages of the application and is the same for all the users accessing the application. The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HttpApplicationState&lt;/i&gt;&amp;nbsp;class provides a lock method, which you can use to ensure that only one user is able to access and modify the data of an application at any instant of time.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Each client accessing a Web application maintains a distinct session with the Web server, and there is also some specific information associated with each of these sessions. Session state is defined in the&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;sessionState&amp;gt;&lt;/i&gt;&amp;nbsp;element of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;file. It also stores the data specific to a user session in session variables. Different session variables are created for each user session. In addition, session variables can be accessed from any page of the application. When a user accesses a page, a session ID for the user is created. The session ID is transferred between the server and the client over the HTTP protocol using cookies.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
112. How will you differentiate a submaster page from a top-level master page?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Similar to a content page, a submaster page also does not have complete HTML source code; whereas, a top-level master page has complete HTML source code inside its source file.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
113. What are Web server controls in ASP.NET?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The ASP.NET Web server controls are objects on the ASP.NET pages that run when the Web page is requested. Many Web server controls, such as button and text box, are similar to the HTML controls. In addition to the HTML controls, there are many controls, which include complex behavior, such as the controls used to connect to data sources and display data.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-family: Verdana, Arial; font-size: 12px; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
114. What is the difference between a&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HyperLink&lt;/i&gt;&amp;nbsp;control and a&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;LinkButton&lt;/i&gt;&amp;nbsp;control?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
A&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HyperLink&lt;/i&gt;&amp;nbsp;control does not have the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Click&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Command&lt;/i&gt;&amp;nbsp;events; whereas, the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;LinkButton&lt;/i&gt;&amp;nbsp;control has these events, which can be handled in the code-behind file of the Web page.&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
115. What are the various ways of authentication techniques in ASP.NET?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
There are various techniques in ASP.NET to authenticate a user. You can use one of the following ways of authentication to select a built-in authentication provider:&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;b&gt;Windows Authentication&lt;/b&gt;&amp;nbsp;- This mode works as the default authentication technique. It can work with any form of Microsoft Internet Information Services (IIS) authentication, such as Basic, Integrated Windows authentication (NTLM/Kerberos), Digest, and certificates. The syntax of Windows authentication mode is given as follows:&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;authentication mode=&quot;windows&quot; /&amp;gt;&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;b&gt;Forms Authentication&lt;/b&gt;&amp;nbsp;- You can specify this mode as a default authentication mode by using the following code snippet:&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;authentication mode=&quot;Forms&quot;/&amp;gt;&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;b&gt;Passport&lt;/b&gt;&amp;nbsp;- This mode works with Microsoft Passport authentication, as shown in the following code snippet:&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;authentication mode = &quot;Passport&quot;/&amp;gt;&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
116. What are the different ways to send data across pages in ASP.NET?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The following two ways are used to send data across pages in ASP.NET:&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;Session&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;Public properties&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
117. What does the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;WebpartListUserControlPath&lt;/i&gt;&amp;nbsp;property of a&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;DeclarativeCatalogPart&lt;/i&gt;&amp;nbsp;control do?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;WebpartListUserControlPath&lt;/i&gt;&amp;nbsp;property sets the route of the user defined control to a&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;DeclarativeCatalogPart&lt;/i&gt;&amp;nbsp;control.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
118. What do you mean by the Web Part controls in ASP.NET?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The Web Part controls are the integrated controls, which are used to create a Web site. These controls allow the users to change the content, outlook, and state of Web pages in a Web browser.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
119. What type of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CatalogPart&lt;/i&gt;&amp;nbsp;control enables users to restore the Web Parts that have been removed earlier by the user?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;PageCatalogPart&lt;/i&gt;&amp;nbsp;control.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-family: Verdana, Arial; font-size: 12px; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
120. What is the use of web.config? What is the difference between machine.config and web.config?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
ASP.NET configuration files are XML-based text files for application-level settings and are saved with the name web.config. These files are present in multiple directories on an ASP.NET Web application server. The&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;file sets the configuration settings to the directory it is placed in and to all the virtual sub folders under it. The settings in sub directories can optionally override or change the settings specified in the base directory.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
The difference between the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;machine.config&lt;/i&gt;&amp;nbsp;files is given as follows:&lt;/div&gt;
&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot; style=&quot;color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;WinDir&amp;gt;\Microsoft.NET\Framework\&amp;lt;version&amp;gt;\config\machine.config&lt;/i&gt;&amp;nbsp;provides default configuration settings for the entire machine. ASP.NET configures IIS to prohibit the browser directly from accessing the web.config files to make sure that their values cannot be public. Attempts to access those files cause ASP.NET to return the 403: Access Forbidden error.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px; text-align: justify;&quot;&gt;ASP.NET uses these&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;configuration files at runtime to compute hierarchically a sole collection of settings for every URL target request. These settings compute only once and cached across further requests. ASP.NET automatically checks for changing file settings and do not validate the cache if any of the configuration changes made.&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px; text-align: left;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
121. Explain the concept of states in ASP.NET.&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
State is quite an innovative concept in Web development because it eliminates the drawback of losing state data due to reloading of a Web page. By using states in a Web application, you can preserve the state of the application either at the server or client end. The state of a Web application helps you to store the runtime changes that have been made to the Web application. For example, as already described earlier, a change in the data source of the Web application might be initiated by a user when he/she selects and saves some products in the shopping cart.&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
If you are not using states, these changes are discarded and are not saved. You may think that the whole concept of storing states is optional. However, under certain circumstances, using states with applications is imperative. For example, it is necessary to store states for Web applications, such as an e-commerce shopping site or an Intranet site of a company, to keep track of the requests of the users for the items they have selected on the shopping site or the days requested for vacation on the Intranet site.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px; text-align: left;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
122. Can we validate a DropDownList by&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RequiredFieldValidator&lt;/i&gt;?&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Yes, we can validate a DropDownList by&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RequiredFieldValidator&lt;/i&gt;. To perform this validation, we have to set the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;InitialValue&lt;/i&gt;&amp;nbsp;property of&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RequiredFieldValidator&lt;/i&gt;&amp;nbsp;control.&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/7705764445325392308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/aspnet-net-interview-questions-and_8010.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/7705764445325392308'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/7705764445325392308'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/aspnet-net-interview-questions-and_8010.html' title='ASP.NET - .NET Interview Questions and Answers part 4'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-4881621051472252064</id><published>2012-06-06T23:13:00.001-07:00</published><updated>2012-06-06T23:13:39.321-07:00</updated><title type='text'>ASP.NET - .NET Interview Questions and Answers Part 3</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
61. What do you understand by aggregate dependency?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Aggregate dependency allows multiple dependencies to be aggregated for content that depends on more than one resource. In such type of dependency, you need to depend on the sum of all the defined dependencies to remove a data item from the cache.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
62. How can you ensure that no one has tampered with&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;&amp;nbsp;in a Web page?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
To ensure that no one has tampered with&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;&amp;nbsp;in a Web page, set the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;EnableViewStateMac&lt;/i&gt;&amp;nbsp;property to&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;True&lt;/i&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
63. What is the difference between adding items into cache through the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Add()&lt;/i&gt;&amp;nbsp;method and through the&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Insert()&lt;/i&gt;&amp;nbsp;method?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Both methods work in a similar way except that the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Cache.Add()&lt;/i&gt;&amp;nbsp;function returns an object that represents the item you added in the cache. The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Cache.Insert()&lt;/i&gt;&amp;nbsp;function can replace an existing item in the cache, which is not possible using the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Cache.Add()&lt;/i&gt;&amp;nbsp;method.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
64. Explain the cookie less session and its working.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
ASP.NET manages the session state in the same process that processes the request and does not create a cookie. It is known as a cookie less session. If cookies are not available, a session is tracked by adding a session identifier to the URL. The cookie less session is enabled using the following code snippet:&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;sessionState cookieless=&quot;true&quot; /&amp;gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
65. What is a round trip?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The trip of a Web page from the client to the server and then back to the client is known as a round trip.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-family: Verdana, Arial; font-size: 12px; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
66. What are the major built-in objects in ASP.NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
The major built-in objects in ASP.NET are as follows:&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot; style=&quot;color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Application&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Request&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Response&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Server&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Session&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Context&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Trace&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
67. Where should the data validations be performed-at the client side or at the server side and why?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Data validations should be done primarily at the client side and the server-side validation should be avoided because it makes server task overloaded. If the client-side validation is not available, you can use server-side validation. When a user sends a request to the server, the validation controls are invoked to check the user input one by one.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
68. Why do we need nested master pages in a Web site?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
When we have several hierarchical levels in a Web site, then we use nested master pages in the Web site.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
69. How can you dynamically add user controls to a page?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
User controls can be dynamically loaded by adding a Web User Control page in the application and adding the control on this page.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
70. What is the appSettings Section in the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;file?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;file sets the configuration for a Web project. The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;appSettings&lt;/i&gt;&amp;nbsp;block in configuration file sets the user-defined values for the whole application.&lt;br /&gt;&lt;br /&gt;For example, in the following code snippet, the specified&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ConnectionString&lt;/i&gt;&amp;nbsp;section is used throughout the project for database connection:&lt;br /&gt;&lt;br /&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;lt;appSettings&amp;gt;&lt;br /&gt;&amp;lt;add key=&quot;ConnectionString&quot; value=&quot;server=indiabixserver; pwd=dbpassword; database=indiabix&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/appSettings&amp;gt;&lt;br /&gt;...&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
71. What type of code, client-side or server-side, is found in a code-behind file of a Web page?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
A code-behind file contains the server-side code, which means that the code contained in a code-behind file is executed at the server.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
72. To which class a Web form belongs to in the .NET Framework class hierarchy?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
A Web form belongs to the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;System.Web.UI.Page&lt;/i&gt;&amp;nbsp;class.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
73. What does the &quot;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;EnableViewState&lt;/i&gt;&quot; property do? Why do we want it On or Off?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;EnableViewState&lt;/i&gt;&amp;nbsp;property enables the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;&amp;nbsp;property on the page. It is set to On to allow the page to save the users input between postback requests of a Web page; that is, between the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Request&lt;/i&gt;&amp;nbsp;and corresponding&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Response&lt;/i&gt;&amp;nbsp;objects. When this property is set to Off, the page does not store the users input during postback.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
74. Which event determines that all the controls are completely loaded into memory?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Page_Load&lt;/i&gt;&amp;nbsp;event determines that all the controls on the page are fully loaded. You can also access the controls in the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Page_Init&lt;/i&gt;&amp;nbsp;event; however, the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;&amp;nbsp;property does not load completely during this event.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
75. What is the function of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CustomValidator&lt;/i&gt;&amp;nbsp;control?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
It provides the customize validation code to perform both client-side and server-side validation.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
76. What is Role-based security?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
In the Role-based security, you can assign a role to every user and grant the privilege according to that role. A role is a group of principal that restricts a user&#39;s privileges. Therefore, all the organization and applications use role-based security model to determine whether a user has enough privileges to perform a requested task.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
77. Which data type does the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RangeValidator&lt;/i&gt;&amp;nbsp;control support?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The data types supported by the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RangeValidator&lt;/i&gt;&amp;nbsp;control are Integer, Double, String, Currency, and Date.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
78. What are the HTML server controls in ASP.NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
HTML server controls are similar to the standard HTML elements, which are normally used in HTML pages. They expose properties and events that can be used programmatically. To make these controls programmatically accessible, you need to specify that the HTML controls act as a server control by adding the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;runat=&quot;server&quot;&lt;/i&gt;attribute.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
79. Why a&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;SiteMapPath&lt;/i&gt;&amp;nbsp;control is referred to as breadcrumb or eyebrow navigation control?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;SiteMapPath&lt;/i&gt;&amp;nbsp;control displays a hierarchical path to the root Web page of the Web site. Therefore, it is known as the breadcrumb or eyebrow navigation control.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
80. Where is the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;&amp;nbsp;information stored?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;&amp;nbsp;information is stored in the HTML hidden fields.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
81. Which namespaces are necessary to create a localized application?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;System.Globalization&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;System.Resources&lt;/i&gt;&amp;nbsp;namespaces are essential to develop a localized application.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
82. What is the difference between an&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HtmlInputCheckBox&lt;/i&gt;&amp;nbsp;control and an&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HtmlInputRadioButton&lt;/i&gt;&amp;nbsp;control?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
You can select more than one&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HtmlInputCheckBox&lt;/i&gt;&amp;nbsp;control from a group of&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HtmlInputCheckBox&lt;/i&gt;&amp;nbsp;controls; whereas, you can select only a single&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HtmllnputRadioButton&lt;/i&gt;&amp;nbsp;control from a group of&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HtmlInputRadioButton&lt;/i&gt;&amp;nbsp;controls.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
83. What is the difference between HTML and Web server controls?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
HTML controls are client-side controls; therefore, all the validations for HTML controls are performed at the client side. On the other hand, Web server controls are server-side controls; therefore, all the validations for Web server controls are performed at the server side.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
84. Explain the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AdRotator&lt;/i&gt;&amp;nbsp;Control.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AdRotator&lt;/i&gt;&amp;nbsp;is an ASP.NET control that is used to provide advertisements to Web pages. The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AdRotator&lt;/i&gt;control associates with one or many advertisements, which randomly displays one by one at a time when the Web page is refreshed. The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AdRotator&lt;/i&gt;&amp;nbsp;control advertisements are associated with links; therefore, when you click on an advertisement, it redirects you to other pages.&lt;br /&gt;&lt;br /&gt;The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AdRotator&lt;/i&gt;&amp;nbsp;control is associated with a data source, which is normally an xml file or a database table. A data source contains all the information, such as advertisement graphics reference, link, and alternate text. Therefore, when you use the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AdRotator&lt;/i&gt;&amp;nbsp;control, you should first create a data source and then associate it with the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AdRotator&lt;/i&gt;&amp;nbsp;control.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
85. What do you understand by the culture?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The culture denotes a combination of a language and optionally a region or a country. The contents of a Web page of a multilingual Web site are changed according to the culture defined in the operating system of the user accessing the Web page.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
86. What is the difference between absolute expiration and sliding-time expiration?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The absolute expiration expires a cached item after the provided expiration time. The sliding time does not expire the cached items because it increments the specified time.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
87. What is the code-behind feature in ASP.NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The code-behind feature of ASP.NET enables you to divide an ASP.NET page into two files - one consisting of the presentation data, and the second, which is also called the code-behind file, consisting of all the business logic. The presentation data contains the interface elements, such as HTML controls and Web server controls, and the code-behind contains the event-handling process to handle the events that are fired by these controls. The file that contains the presentation data has the .aspx extension. The code behind file has either the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;.cs&lt;/i&gt;&amp;nbsp;extension (if you are using the programming language C#) or the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;.vb&lt;/i&gt;&amp;nbsp;(if you are using the programming language Visual Basic .NET) extension.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
88. How can you check if all the validation controls on a Web page are valid and proper?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
You can determine that all the validation controls on a Web page are properly working by writing code in the source file of the Web page using a scripting language, such as VBScript or JavaScript. To do this task, you have to loop across validators collection of pages and check the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;IsValid&lt;/i&gt;&amp;nbsp;property of each validation control on the Web page to check whether or not the validation test is successful.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
89. Explain the validation controls. How many validation controls in ASP.NET 4.0?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Validation controls are responsible to validate the data of an input control. Whenever you provide any input to an application, it performs the validation and displays an error message to user, in case the validation fails.&lt;br /&gt;&lt;br /&gt;ASP.NET 4.0 contains the following six types of validation controls:&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CompareValidator&lt;/i&gt;&amp;nbsp;- Performs a comparison between the values contained in two controls.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CustomValidator&lt;/i&gt;&amp;nbsp;- Writes your own method to perform extra validation.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RangeValidator&lt;/i&gt;- Checks value according to the range of value.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RegularExpressionValidator&lt;/i&gt;&amp;nbsp;- Ensures that input is according to the specified pattern or not.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RequiredFieldValidator&lt;/i&gt;&amp;nbsp;- Checks either a control is empty or not.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ValidationSummary&lt;/i&gt;&amp;nbsp;- Displays a summary of all validation error in a central location.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
90. What is difference between a Label control and a Literal control?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The Label control&#39;s final html code has an HTML tag; whereas, the Literal control&#39;s final html code contains only text, which is not surrounded by any HTML tag.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/4881621051472252064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/aspnet-net-interview-questions-and_1067.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/4881621051472252064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/4881621051472252064'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/aspnet-net-interview-questions-and_1067.html' title='ASP.NET - .NET Interview Questions and Answers Part 3'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-4791950955826568975</id><published>2012-06-06T23:11:00.001-07:00</published><updated>2012-06-07T00:07:57.501-07:00</updated><title type='text'>ASP.NET - .NET Interview Questions and Answers Part 2</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
31. Which method is used to force all the validation controls to run?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Page.Validate()&lt;/i&gt;&amp;nbsp;method is used to force all the validation controls to run and to perform validation.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
32. Which method has been introduced in ASP.NET 4.0 to redirect a page permanently?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RedirectPermanent()&lt;/i&gt;&amp;nbsp;method added in ASP.NET 4.0 to redirect a page permanently. The following code snippet is an example of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RedirectPermanent()&lt;/i&gt;&amp;nbsp;method:&lt;br /&gt;
&lt;br /&gt;
&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;RedirectPermanent(&quot;/path/Aboutus.aspx&quot;);&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
33. How can you send an email message from an ASP.NET Web page?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
You can use the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;System.Net.Mail.MailMessage&lt;/i&gt;&amp;nbsp;and the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;System.Net.Mail.SmtpMail&lt;/i&gt;&amp;nbsp;classes to send an email in your Web pages. In order to send an email through your mail server, you need to create an object of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;SmtpClient&lt;/i&gt;&amp;nbsp;class and set the server name, port, and credentials.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
34. What is the difference between the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Response.Write()&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Response.Output.Write()&lt;/i&gt;&amp;nbsp;methods?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Response.Write()&lt;/i&gt;&amp;nbsp;method allows you to write the normal output; whereas, the&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Response.Output.Write()&lt;/i&gt;&amp;nbsp;method allows you to write the formatted output.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
35. What does the Orientation property do in a Menu control?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Orientation property of the Menu control sets the horizontal or vertical display of a menu on a Web page. By default, the orientation is vertical.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-family: Verdana, Arial; font-size: 12px; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
36. Differentiate between client-side and server-side validations in Web pages.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
Client-side validations take place at the client end with the help of JavaScript and VBScript before the Web page is sent to the server. On the other hand, server-side validations take place at the server end.&lt;br /&gt;
&lt;span style=&quot;color: #606060; font-family: Verdana, Arial; font-weight: bold;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #606060; font-family: Verdana, Arial; font-weight: bold;&quot;&gt;37. How does a content page differ from a master page?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
A content page does not have complete HTML source code; whereas a master page has complete HTML source code inside its source file.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
38. Suppose you want an ASP.NET function (client side) executed on the MouseOver event of a button. Where do you add an event handler?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The event handler is added to the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Add()&lt;/i&gt;&amp;nbsp;method of the Attributes property.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
39. What is the default timeout for a Cookie?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The default time duration for a Cookie is 30 minutes.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
40. What are HTTP handlers in ASP.NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
HTTP handlers, as the name suggests, are used to handle user requests for Web application resources. They are the backbone of the request-response model of Web applications. There is a specific event handler to handle the request for each user request type and send back the corresponding response object.&lt;br /&gt;
&lt;br /&gt;
Each user requests to the IIS Web server flows through the HTTP pipeline, which refers to a series of components (HTTP modules and HTTP handlers) to process the request. HTTP modules act as filters to process the request as it passes through the HTTP pipeline. The request, after passing through the HTTP modules, is assigned to an HTTP handler that determines the response of the server to the user request. The response then passes through the HTTP modules once again and is then sent back to the user.&lt;br /&gt;
&lt;br /&gt;
You can define HTTP handlers in the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;httpHandlers&amp;gt;&lt;/i&gt;&amp;nbsp;element of a configuration file. The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;add&amp;gt;&lt;/i&gt;&amp;nbsp;element tag is used to add new handlers and the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;remove&amp;gt;&lt;/i&gt;&amp;nbsp;element tag is used to remove existing handlers. To create an HTTP handler, you need to define a class that implements the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;IHttpHandler&lt;/i&gt;&amp;nbsp;interface.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
41. What are the events that happen when a client requests an ASP.NET page from IIS server?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The following events happen when a client requests an ASP.NET page from the IIS server:&lt;/div&gt;
&lt;ol class=&quot;tech-ol-123&quot; style=&quot;font-family: Verdana;&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;User requests for an application resource.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;The integrated request-processing pipeline receives the first user request.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Response&lt;/i&gt;&amp;nbsp;objects are created for each user request.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;An object of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HttpApplication&lt;/i&gt;&amp;nbsp;class is created and allocated to the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Request&lt;/i&gt;&amp;nbsp;object.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HttpApplication&lt;/i&gt;&amp;nbsp;class processes the user request.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-family: Verdana, Arial; font-size: 12px; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
42. Explain file-based dependency and key-based dependency.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
In file-based dependency, you have to depend on a file that is saved in a disk. In key-based dependency, you have to depend on another cached item.&lt;/div&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
43. How can you implement the postback property of an ASP.NET control?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
You need to set the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AutoPostBack&lt;/i&gt;&amp;nbsp;property to&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;True&lt;/i&gt;&amp;nbsp;to implement the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;PostBack&lt;/i&gt;&amp;nbsp;property of controls.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
44. Explain how Cookies work. Give an example of Cookie abuse.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The server tells the browser to put some files in a cookie, and the client then sends all the cookies for the domain in each request. An example of cookie abuse is large cookies affecting the network traffic.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
45. Explain login controls.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Login controls are built-in controls in ASP.Net for providing a login solution to ASP.NET application. The login controls use the membership system to authenticate a user credentials for a Web site.&lt;br /&gt;
&lt;br /&gt;
There are many controls in login controls.&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ChangePassword&lt;/i&gt;&amp;nbsp;control - Allows users to change their password.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CreateUserWizard&lt;/i&gt;&amp;nbsp;control - Provides an interface to the user to register for that Web site.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Login&lt;/i&gt;&amp;nbsp;control - Provides an interface for user authentication. It consists of a set of controls, such as&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;TextBox&lt;/i&gt;,&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Label&lt;/i&gt;,&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Button&lt;/i&gt;,&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CheckBox&lt;/i&gt;,&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HyperLink&lt;/i&gt;.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;LoginView&lt;/i&gt;&amp;nbsp;control - Displays appropriate information to different users according to the user&#39;s status.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;LoginStatus&lt;/i&gt;&amp;nbsp;control - Shows a login link to users, who are not authenticated and logout link, who are authenticated&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;LoginName&lt;/i&gt;&amp;nbsp;control - Displays a user name, if the user logs in.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;PasswordRecovery&lt;/i&gt;&amp;nbsp;control - Allows users to get back the password through an e-mail, if they forget.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
46. What is the use of&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;PlaceHolder&lt;/i&gt;&amp;nbsp;control? Can we see it at runtime?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;PlaceHolder&lt;/i&gt;&amp;nbsp;control acts as a container for those controls that are dynamically generated at runtime. We cannot see it at runtime because it does not produce any visible output. It used only as a container.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
47. What setting must be added in the configuration file to deny a particular user from accessing the secured resources?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
To deny a particular user form accessing the secured resources, the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;file must contain the following code:&lt;br /&gt;
&lt;br /&gt;
&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;authorization &amp;gt;&lt;br /&gt;&amp;lt;deny users=&quot;username&quot; /&amp;gt;&lt;br /&gt;&amp;lt;/authorization&amp;gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-family: Verdana, Arial; font-size: 12px; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
48. What are the event handlers that can be included in the Global.asax file?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;padding-left: 30px;&quot;&gt;
&lt;div style=&quot;color: #444444; font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; line-height: 17px;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Global.asax&lt;/i&gt;&amp;nbsp;file contains some of the following important event handlers:&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot; style=&quot;color: #444444; font-family: Verdana, Arial; font-size: 12px; line-height: 17px;&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Application_Error&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Application_Start&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Application_End&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Session_Start&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Session_End&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
49. What is the difference between page-level caching and fragment caching?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
In the page-level caching, an entire Web page is cached; whereas, in the fragment caching, a part of the Web page, such as a user control added to the Web page, is cached.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
50. Make a list of all templates of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Repeater&lt;/i&gt;&amp;nbsp;control.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The Repeater control contains the following templates:&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ItemTemplate&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AlternatingltemTemplate&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;SeparatorTemplate&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;HeaderTemplate&lt;/i&gt;&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;FooterTemplate&lt;/i&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
51. Describe the complete lifecycle of a Web page.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
When we execute a Web page, it passes from the following stages, which are collectively known as Web page lifecycle:&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;b&gt;Page request&lt;/b&gt;&amp;nbsp;- During this stage, ASP.NET makes sure the page either parsed or compiled and a cached version of the page can be sent in response&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;b&gt;Start&lt;/b&gt;&amp;nbsp;- During this stage sets the Request and Response page properties and the page check the page request is either a postback or a new request&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;b&gt;Page Initialization&lt;/b&gt;&amp;nbsp;- During this stage, the page initialize and the control&#39;s Unique Id property are set&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;b&gt;Load&lt;/b&gt;&amp;nbsp;- During this stage, if the request is postback, the control properties are loaded without loading the view state and control state otherwise loads the view state&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;b&gt;Validation&lt;/b&gt;&amp;nbsp;- During this stage, the controls are validated&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;b&gt;Postback event handling&lt;/b&gt;&amp;nbsp;- During this stage, if the request is a postback, handles the event&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;b&gt;Rendering&lt;/b&gt;&amp;nbsp;- During this stage, the page invokes the Render method to each control for return the output&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;&lt;b&gt;Unload&lt;/b&gt;&amp;nbsp;- During this stage, when the page is completely rendered and sent to the client, the page is unloaded.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
52. How can you assign page specific attributes in an ASP.NET application?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;@Page&lt;/i&gt;&amp;nbsp;directive is responsible for this.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
53. Which method is used to post a Web page to another Web page?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Respose.Redirect&lt;/i&gt;&amp;nbsp;method is used to post a page to another page, as shown in the following code snippet:&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Response.Redirect(&quot;DestinationPageName.aspx&quot;);&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
54. What is a Cookie? Where is it used in ASP.NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Cookie is a lightweight executable program, which the server posts to client machines. Cookies store the identity of a user at the first visit of the Web site and validate them later on the next visits for their authenticity. The values of a cookie can be transferred between the user&#39;s request and the server&#39;s response.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
55. What are Custom User Controls in ASP.NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The custom user controls are the controls that are defined by developers. These controls are a mixture of custom behavior and predefined behavior. These controls work similar to other Web server controls.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
56. What does the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;.WebPart&lt;/i&gt;&amp;nbsp;file do?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;.WebPart&lt;/i&gt;&amp;nbsp;file explains the settings of a Web Parts control that can be included to a specified zone on a Web page.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
57. How can you enable impersonation in the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;file?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
To enable impersonation in the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.confing&lt;/i&gt;&amp;nbsp;file, you need to include the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;identity&amp;gt;&lt;/i&gt;&amp;nbsp;element in the&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;web.config&lt;/i&gt;&amp;nbsp;file and set the impersonate attribute to true as shown in the following code snippet:&lt;br /&gt;
&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;&amp;lt;identity impersonate = &quot;true&quot; /&amp;gt;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
58. How can you identify that the page is PostBack?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The Page object uses the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;IsPostBack&lt;/i&gt;&amp;nbsp;property to check whether the page is posted back or not. If the page is postback, this property is set to true.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
59. In which database is the information, such as membership, role management, profile, and Web parts personalization, stored?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;aspnetdb&lt;/i&gt;&amp;nbsp;database stores all information.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
60. What is State Management? How many ways are there to maintain a state in .NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
State management is used to store information requests. The state management is used to trace the information or data that affect the state of the applications.&lt;br /&gt;
&lt;br /&gt;
There are two ways to maintain a state in .NET, Client-Based state management and Server-Based state management.&lt;br /&gt;
&lt;br /&gt;
The following techniques can be used to implement the Client-Based state management:&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;View State&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Hidden Fields&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Cookies&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Query Strings&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Control State&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
The following techniques can be used to implement Server-Based state management:&lt;br /&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Application State&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Session State&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Profile Properties&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/4791950955826568975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/aspnet-net-interview-questions-and_06.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/4791950955826568975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/4791950955826568975'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/aspnet-net-interview-questions-and_06.html' title='ASP.NET - .NET Interview Questions and Answers Part 2'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-1252919686446375869</id><published>2012-06-06T23:03:00.000-07:00</published><updated>2012-06-06T23:03:07.709-07:00</updated><title type='text'>ASP.NET - .NET Interview Questions and Answers Part -1</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
1. What is ASP?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Active Server Pages (ASP), also known as Classic ASP, is a Microsoft&#39;s server-side technology, which helps in creating dynamic and user-friendly Web pages. It uses different scripting languages to create dynamic Web pages, which can be run on any type of browser. The Web pages are built by using either VBScript or JavaScript and these Web pages have access to the same services as Windows application, including ADO (ActiveX Data Objects) for database access, SMTP (Simple Mail Transfer Protocol) for e-mail, and the entire COM (Component Object Model) structure used in the Windows environment. ASP is implemented through a dynamic-link library (asp.dll) that is called by the IIS server when a Web page is requested from the server.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
2. What is ASP.NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
ASP.NET is a specification developed by Microsoft to create dynamic Web applications, Web sites, and Web services. It is a part of .NET Framework. You can create ASP.NET applications in most of the .NET compatible languages, such as Visual Basic, C#, and J#. The ASP.NET compiles the Web pages and provides much better performance than scripting languages, such as VBScript. The Web Forms support to create powerful forms-based Web pages. You can use ASP.NET Web server controls to create interactive Web applications. With the help of Web server controls, you can easily create a Web application.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
3. What is the basic difference between ASP and ASP.NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The basic difference between ASP and ASP.NET is that ASP is interpreted; whereas, ASP.NET is compiled. This implies that since ASP uses VBScript; therefore, when an ASP page is executed, it is interpreted. On the other hand, ASP.NET uses .NET languages, such as C# and VB.NET, which are compiled to Microsoft Intermediate Language (MSIL).&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
4. In which event are the controls fully loaded?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Page load event guarantees that all controls are fully loaded. Controls are also accessed in&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Page_Init&lt;/i&gt;&amp;nbsp;events but you will see that view state is not fully loaded during this event&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
5. How can we identify that the Page is Post Back?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Page object has an &quot;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;IsPostBack&lt;/i&gt;&quot; property, which can be checked to know that is the page posted back.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; color: #444444; font-family: Verdana, Arial; font-size: 12px; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
6. What is the lifespan for items stored in ViewState?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The items stored in&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;&amp;nbsp;live until the lifetime of the current page expires including the postbacks to the same page.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
7. How information about the user&#39;s locale can be accessed?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The information regarding a user&#39;s locale can be accessed by using the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;System.Web.UI.Page.Culture&lt;/i&gt;property.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
8. What is the difference between SQL notification and SQL invalidation?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The SQL cache notification generates notifications when the data of a database changes, on which your cache item depends. The SQL cache invalidation makes a cached item invalid when the data stored in a SQL server database changes.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
9. Which is the parent class of the Web server control?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;System.Web.Ul.Control&lt;/i&gt;&amp;nbsp;class is the parent class for all Web server controls.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
10. Can you set which type of comparison you want to perform by the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CompareValidator&lt;/i&gt;&amp;nbsp;control?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Yes, by setting the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Operator&lt;/i&gt;&amp;nbsp;property of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;CompareValidator&lt;/i&gt;&amp;nbsp;control.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
11. What is the behavior of a Web browser when it receives an invalid element?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The behavior of a Web browser when it receives an invalid element depends on the browser that you use to browse your application. Most of the browsers ignore the invalid element; whereas, some of them display the invalid elements on the page.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
12. What are the advantages of the code-behind feature?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The code-behind feature of ASP.NET offers a number of advantages:&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Makes code easy to understand and debug by separating application logic from HTML tags&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Provides the isolation of effort between graphic designers and software engineers&lt;/li&gt;
&lt;/ul&gt;
Removes the problems of browser incompatibility by providing code files to exist on the Web server and supporting Web pages to be compiled on demand.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
13. How do you sign out from forms authentication?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;FormsAuthentication.Signout()&lt;/i&gt;&amp;nbsp;method is used to sign out from the forms authentication.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
14. What is AutoPostBack?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
If you want a control to postback automatically when an event is raised, you need to set the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;AutoPostBack&lt;/i&gt;property of the control to&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;True&lt;/i&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
15. What is the function of the ViewState property?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The ASP.NET 4.0 introduced a new property called&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewStateMode&lt;/i&gt;&amp;nbsp;for the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Control&lt;/i&gt;&amp;nbsp;class. Now you can enable the view state to an individual control even if the view state for an ASP.NET page is disabled.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
16. Why do you use the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;App_Code&lt;/i&gt;&amp;nbsp;folder in ASP.NET?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;App_Code&lt;/i&gt;&amp;nbsp;folder is automatically present in the project. It stores the files, such as classes, typed data set, text files, and reports. If this folder is not available in the application, you can add this folder. One of the important features of the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;App_Code&lt;/i&gt;&amp;nbsp;folder is that only one dll is created for the complete folder, irrespective of how many files it contains.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
17. Define a multilingual Web site.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
A multilingual Web site serves content in a number of languages. It contains multiple copies for its content and other resources, such as date and time, in different languages.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
18. What is an ASP.NET Web Form?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
ASP.NET Web forms are designed to use controls and features that are almost as powerful as the ones used with Windows forms, and so they are called as Web forms. The Web form uses a server-side object model that allows you to create functional controls, which are executed on the server and are rendered as HTML on the client. The attribute,&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;runat=&quot;server&quot;&lt;/i&gt;, associated with a server control indicates that the Web form must be processed on the server.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
19. What is the difference between a default skin and a named skin?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The default skin is applied to all the Web server controls in a Web form, which are of similar type, and it does not provide a Skin ID attribute. The named skin provides a Skin ID attribute and users have to set the Skin ID property to apply it.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
20. What is IIS? Why is it used?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Internet Information Services (IIS) is created by Microsoft to provide Internet-based services to ASP.NET Web applications. It makes your computer to work as a Web server and provides the functionality to develop and deploy Web applications on the server. IIS handles the request and response cycle on the Web server. It also offers the services of SMTP and FrontPage server extensions. The SMTP is used to send emails and use FrontPage server extensions to get the dynamic features of IIS, such as form handler.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
21. What is Query String? What are its advantages and limitations?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The Query String helps in sending the page information to the server.&lt;br /&gt;&lt;br /&gt;The Query String has the following advantages:&lt;/div&gt;
&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Every browser works with Query Strings.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;It does not require server resources and so does not exert any kind of burden on the server.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;The following are the limitations of Query String:&lt;br /&gt;&lt;ul class=&quot;tech-ul-disc&quot;&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Information must be within the limit because URL does not support many characters.&lt;/li&gt;
&lt;li style=&quot;padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px;&quot;&gt;Information is clearly visible to the user, which leads to security threats.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
22. What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
When a browser requests an&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;.aspx&lt;/i&gt;&amp;nbsp;file then the server returns a response, which is rendered into a HTML string.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
23. How can you display all validation messages in one control?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ValidationSummary&lt;/i&gt;&amp;nbsp;control displays all validation messages in one control.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
24. Which two new properties are added in ASP.NET 4.0 Page class?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The two new properties added in the Page class are&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;MetaKeyword&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;MetaDescription&lt;/i&gt;.&lt;/div&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
25. What is tracing? Where is it used?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Tracing displays the details about how the code was executed. It refers to collecting information about the application while it is running. Tracing information can help you to troubleshoot an application. It enables you to record information in various log files about the errors that might occur at run time. You can analyze these log files to find the cause of the errors.&lt;br /&gt;&lt;br /&gt;In .NET, we have objects called Trace Listeners. A listener is an object that gets the trace output and stores it to different places, such as a window, a file on your locale drive, or a SQL Server.&lt;br /&gt;&lt;br /&gt;The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;System.Diagnostics&lt;/i&gt;&amp;nbsp;namespace contains the predefined interfaces, classes, and structures that are used for tracing. It supplies two classes, Trace and Debug, which allow you to write errors and logs related to the application execution. Trace listeners are objects that collect the output of tracing processes.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
26. What is the difference between authentication and authorization?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
Authentication verifies the identity of a user and authorization is a process where you can check whether or not the identity has access rights to the system. In other words, you can say that authentication is a procedure of getting some credentials from the users and verify the user&#39;s identity against those credentials. Authorization is a procedure of granting access of particular resources to an authenticated user. You should note that authentication always takes place before authorization.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
27. How can you register a custom server control to a Web page?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
You can register a custom server control to a Web page using the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;@Register&lt;/i&gt;&amp;nbsp;directive.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
28. Which ASP.NET objects encapsulate the state of the client and the browser?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;Session&lt;/i&gt;&amp;nbsp;object encapsulates the state of the client and browser.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
29. Differentiate globalization and localization.&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The globalization is a technique to identify the specific part of a Web application that is different for different languages and make separate that portion from the core of the Web application. The localization is a procedure of configuring a Web application to be supported for a specific language or locale.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;tech-div&quot; style=&quot;border-bottom-color: rgb(204, 204, 204); border-bottom-style: dashed; border-bottom-width: 1px; font-family: Verdana, Arial; line-height: normal; padding-bottom: 5px; padding-top: 5px;&quot;&gt;
&lt;div class=&quot;tech-question ib-green&quot; style=&quot;color: #606060; font-weight: bold; line-height: 17px; padding-bottom: 10px;&quot;&gt;
30. What is&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;?&lt;/div&gt;
&lt;div class=&quot;tech-answer&quot; style=&quot;line-height: 17px; padding-left: 30px;&quot;&gt;
&lt;div style=&quot;font-family: Verdana, Tahoma, Arial, sans-serif;&quot;&gt;
The&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;&amp;nbsp;is a feature used by ASP.NET Web page to store the value of a page and its controls just before posting the page. Once the page is posted, the first task by the page processing is to restore the&amp;nbsp;&lt;i class=&quot;dotnet-code&quot; style=&quot;color: #dd0000; font-family: &#39;Courier New&#39;; font-size: 13px; font-style: normal;&quot;&gt;ViewState&lt;/i&gt;&amp;nbsp;to get the values of the controls.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/1252919686446375869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/aspnet-net-interview-questions-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/1252919686446375869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/1252919686446375869'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/aspnet-net-interview-questions-and.html' title='ASP.NET - .NET Interview Questions and Answers Part -1'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1128912916081089813.post-4506776172860954875</id><published>2012-06-06T22:57:00.001-07:00</published><updated>2012-06-06T22:57:13.473-07:00</updated><title type='text'>C# interview questions and answers</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;ol start=&quot;1&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-family: Georgia, serif; font-size: 12px; line-height: 18px; list-style-image: initial; list-style-position: initial; margin-bottom: 18px; margin-left: 3em; margin-right: 0px; margin-top: 0in; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-align: -webkit-auto; vertical-align: baseline;&quot; type=&quot;1&quot;&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s the advantage of using System.Text.StringBuilder over System.String?&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;/li&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 18px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;
&lt;span id=&quot;more-57&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Can you store multiple data types in System.Array?&amp;nbsp;&lt;/b&gt;No.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?&amp;nbsp;&lt;/b&gt;The first one performs a deep copy of the array, the second one is shallow.&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;How can you sort the elements of the array in descending order?&amp;nbsp;&lt;/b&gt;By calling Sort() and then Reverse() methods.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s the .NET datatype that allows the retrieval of data by a unique key?&lt;/b&gt;HashTable.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s class SortedList underneath?&amp;nbsp;&lt;/b&gt;A sorted HashTable.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Will&amp;nbsp;&lt;i style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;finally&lt;/i&gt;&amp;nbsp;block get executed if the exception had not occurred?&amp;nbsp;&lt;/b&gt;Yes.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s the C# equivalent of C++ catch (…), which was a catch-all statement for any possible exception?&amp;nbsp;&lt;/b&gt;A catch block that catches the exception of type System.Exception. You can also omit the parameter data type in this case and just write catch {}.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Can multiple catch blocks be executed?&amp;nbsp;&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;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Why is it a bad idea to throw your own exceptions?&amp;nbsp;&lt;/b&gt;Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s a delegate?&amp;nbsp;&lt;/b&gt;A delegate object encapsulates a reference to a method. In C++ they were referred to as function pointers.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s a multicast delegate?&amp;nbsp;&lt;/b&gt;It’s a delegate that points to and eventually fires off several methods.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;How’s the DLL Hell problem solved in .NET?&amp;nbsp;&lt;/b&gt;Assembly versioning allows the application to specify not only the library it needs to run (which was available under Win32), but also the version of the assembly.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What are the ways to deploy an assembly?&amp;nbsp;&lt;/b&gt;An MSI installer, a CAB archive, and XCOPY command.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s a satellite assembly?&amp;nbsp;&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;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What namespaces are necessary to create a localized application?&lt;/b&gt;System.Globalization, System.Resources.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s the difference between // comments, /* */ comments and /// comments?&amp;nbsp;&lt;/b&gt;Single-line, multi-line and XML documentation comments.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;How do you generate documentation from the C# file commented properly with a command-line compiler?&amp;nbsp;&lt;/b&gt;Compile it with a /doc switch.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s the difference between &amp;lt;c&amp;gt; and &amp;lt;code&amp;gt; XML documentation tag?&amp;nbsp;&lt;/b&gt;Single line code example and multiple-line code example.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Is XML case-sensitive?&amp;nbsp;&lt;/b&gt;Yes, so &amp;lt;Student&amp;gt; and &amp;lt;student&amp;gt; are different elements.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What debugging tools come with the .NET SDK?&amp;nbsp;&lt;/b&gt;CorDBG – command-line debugger, and DbgCLR – graphic debugger. Visual Studio .NET uses the DbgCLR. To use CorDbg, you must compile the original C# file using the /debug switch.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What does the This window show in the debugger?&amp;nbsp;&lt;/b&gt;It points to the object that’s pointed to by this reference. Object’s instance data is shown.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What does assert() do?&amp;nbsp;&lt;/b&gt;In debug compilation, assert takes in a Boolean condition as a parameter, and shows the error dialog if the condition is false. The program proceeds without any interruption if the condition is true.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s the difference between the Debug class and Trace class? Documentation looks the same.&amp;nbsp;&lt;/b&gt;Use Debug class for debug builds, use Trace class for both debug and release builds.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Why are there five tracing levels in System.Diagnostics.TraceSwitcher?&amp;nbsp;&lt;/b&gt;The tracing dumps can be quite verbose and for some applications that are constantly running you run the risk of overloading the machine and the hard drive there. Five levels range from None to Verbose, allowing to fine-tune the tracing activities.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Where is the output of TextWriterTraceListener redirected?&amp;nbsp;&lt;/b&gt;To the Console or a text file depending on the parameter passed to the constructor.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;How do you debug an ASP.NET Web application?&amp;nbsp;&lt;/b&gt;Attach the aspnet_wp.exe process to the DbgClr debugger.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What are three test cases you should go through in unit testing?&amp;nbsp;&lt;/b&gt;Positive test cases (correct data, correct output), negative test cases (broken or missing data, proper handling), exception test cases (exceptions are thrown and caught properly).&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Can you change the value of a variable while debugging a C# application?&amp;nbsp;&lt;/b&gt;Yes, if you are debugging via Visual Studio.NET, just go to Immediate window.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Explain the three services model (three-tier application).&amp;nbsp;&lt;/b&gt;Presentation (UI), business (logic and underlying code) and data (from storage or other sources).&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?&amp;nbsp;&lt;/b&gt;SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix, but it’s a .NET layer on top of OLE layer, so not the fastest thing in the world. ODBC.NET is a deprecated layer provided for backward compatibility to ODBC engines.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s the role of the DataReader class in ADO.NET connections?&amp;nbsp;&lt;/b&gt;It returns a read-only dataset from the data source when the command is executed.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is the wildcard character in SQL? Let’s say you want to query database with LIKE for all employees whose name starts with La.&amp;nbsp;&lt;/b&gt;The wildcard character is %, the proper query with LIKE would involve ‘La%’.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Explain ACID rule of thumb for transactions.&amp;nbsp;&lt;/b&gt;Transaction must be Atomic (it is one unit of work and does not dependent on previous and following transactions), Consistent (data is either committed or roll back, no “in-between” case where something has been updated and something hasn’t), Isolated (no transaction sees the intermediate results of the current transaction), Durable (the values persist if the data had been committed even if the system crashes right after).&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What connections does Microsoft SQL Server support?&amp;nbsp;&lt;/b&gt;Windows Authentication (via Active Directory) and SQL Server authentication (via Microsoft SQL Server username and passwords).&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Which one is trusted and which one is untrusted?&amp;nbsp;&lt;/b&gt;Windows Authentication is trusted because the username and password are checked with the Active Directory, the SQL Server authentication is untrusted, since SQL Server is the only verifier participating in the transaction.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;Why would you use untrusted verificaion?&amp;nbsp;&lt;/b&gt;Web Services might use it, as well as non-Windows applications.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What does the parameter Initial Catalog define inside Connection String?&lt;/b&gt;The database name to connect to.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What’s the data provider name to connect to Access database?&amp;nbsp;&lt;/b&gt;Microsoft.Access.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What does Dispose method do with the connection object?&amp;nbsp;&lt;/b&gt;Deletes it from the memory.&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;o :p=&quot;&quot;&gt;&lt;/o&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;&lt;b style=&quot;background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-image: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; outline-color: initial; outline-style: initial; outline-width: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;&quot;&gt;What is a pre-requisite for connection pooling?&amp;nbsp;&lt;/b&gt;Multiple processes must agree that they will share the same connection, where every parameter is the same, including the security settings.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://aspnetiqa.blogspot.com/feeds/4506776172860954875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/c-interview-questions-and-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/4506776172860954875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1128912916081089813/posts/default/4506776172860954875'/><link rel='alternate' type='text/html' href='http://aspnetiqa.blogspot.com/2012/06/c-interview-questions-and-answers.html' title='C# interview questions and answers'/><author><name>Vijay Maurya</name><uri>http://www.blogger.com/profile/00459112937519229095</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAq0unsQRC0g7q8LCCjOU5NUrCuyXX5vMfcWbPl5cNsojKH_YS1rJIQL3mxLSTxPXCdJ90rCGzSmU-cFJ9vqjHSMbOxvOb1NaDkURBdhKasrpOq9yuoNpW9_XfPk_1qWU/s220/clip_image001.jpg'/></author><thr:total>0</thr:total></entry></feed>