<?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-1017435312072764385</id><updated>2024-10-25T04:30:45.548+01:00</updated><category term="Interview Questions"/><category term="SharePoint"/><category term="WCF"/><title type='text'>DotNetAddicted</title><subtitle type='html'>Everything related to Microsoft .NET Technologies</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-1901774194350251247</id><published>2022-01-02T14:06:00.001+00:00</published><updated>2022-01-02T14:08:01.290+00:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="WCF"/><title type='text'></title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;b&gt;Q1. What is
WCF?&lt;/b&gt;&amp;nbsp;&lt;/p&gt;&lt;p class=&quot;paragraph&quot; style=&quot;margin: 0in; vertical-align: baseline;&quot;&gt;
WCF stands for Windows Communication Foundation. It is a Software development
kit for developing services on Windows. WCF is introduced in .NET 3.0. in
the&amp;nbsp;System.ServiceModel&amp;nbsp;namespace. WCF is based on basic concepts of
Service oriented architecture (SOA)&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q2. What is&amp;nbsp;endpoint&amp;nbsp;in&amp;nbsp;WCF service?&lt;/b&gt;&amp;nbsp;&lt;br /&gt;
The endpoint is an Interface which defines how a client will communicate with
the service. It consists of three main points:&amp;nbsp;Address, Binding&amp;nbsp;and
Contract.&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q3. Explain&amp;nbsp;Address, Binding,&amp;nbsp;and contract for a WCF Service?&amp;nbsp;&lt;br /&gt;
&lt;/b&gt;Address: Address&amp;nbsp;defines where the service resides.&amp;nbsp;&lt;br /&gt;
Binding: Binding&amp;nbsp;defines how to communicate with the service.&amp;nbsp;&lt;br /&gt;
Contract: Contract&amp;nbsp;defines what is done by the service.&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q4. What&amp;nbsp;is&amp;nbsp;the various address&amp;nbsp;format&amp;nbsp;in WCF?&amp;nbsp;&lt;br /&gt;
&lt;/b&gt;a) HTTP&amp;nbsp;Address&amp;nbsp;Format: --&amp;gt; http://localhost:&amp;nbsp;&lt;br /&gt;
b) TCP Address&amp;nbsp;Format: --&amp;gt; net.tcp://localhost:&amp;nbsp;&lt;br /&gt;
c) MSMQ Address&amp;nbsp;Format: --&amp;gt; net.msmq://localhost:&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q5. What are the types of binding available in WCF?&lt;/b&gt;&amp;nbsp;&lt;br /&gt;
A binding is identified by the transport it supports and the encoding it uses.
Transport may be&amp;nbsp;HTTP, TCP&amp;nbsp;etc.&amp;nbsp;and encoding may be&amp;nbsp;text,
binary&amp;nbsp;etc. The popular types of binding may be as below:&amp;nbsp;&lt;br /&gt;
a) BasicHttpBinding&amp;nbsp;&lt;br /&gt;
b) NetTcpBinding&amp;nbsp;&lt;br /&gt;
c) WSHttpBinding&amp;nbsp;&lt;br /&gt;
d) NetMsmqBinding&amp;nbsp;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q6. What are the types of&amp;nbsp;contract&amp;nbsp;available in WCF?&lt;/b&gt;&amp;nbsp;&lt;br /&gt;
The main contracts are:&amp;nbsp;&lt;br /&gt;
a) Service&amp;nbsp;Contract: Describes&amp;nbsp;what operations the client can
perform.&amp;nbsp;&lt;br /&gt;
b) Operation&amp;nbsp;Contract:&amp;nbsp;defines the method inside Interface of
Service.&amp;nbsp;&lt;br /&gt;
c) Data&amp;nbsp;Contract: Defines&amp;nbsp;what data types are passed&amp;nbsp;&lt;br /&gt;
d) Message&amp;nbsp;Contract: Defines&amp;nbsp;whether&amp;nbsp;a service can interact directly
with messages&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q7. What are the various ways of hosting a WCF Service?&lt;/b&gt;&amp;nbsp;&lt;br /&gt;
a) IIS&amp;nbsp;b) Self&amp;nbsp;Hosting&amp;nbsp;c) WAS&amp;nbsp;(Windows Activation Service)&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q8.&amp;nbsp;What&amp;nbsp;is the proxy for WCF Service?&lt;/b&gt;&amp;nbsp;&lt;br /&gt;
A proxy is a class by which a service client can Interact with the service.&amp;nbsp;&lt;br /&gt;
Using&amp;nbsp;proxy in the client application we&amp;nbsp;are able to&amp;nbsp;call the
different methods exposed by the service&amp;nbsp;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q9. How can we create Proxy for the WCF Service?&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
We can create proxy using the tool svcutil.exe after creating the service.&amp;nbsp;&lt;br /&gt;
We can use the following command at command line.&amp;nbsp;&lt;br /&gt;
svcutil.exe *.wsdl&amp;nbsp;*.xsd&amp;nbsp;/language:C#
/out:SampleProxy.cs&amp;nbsp;/config:app.config&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q10.What is the difference between WCF Service and Web Service?&amp;nbsp;&lt;br /&gt;
&lt;/b&gt;a) WCF&amp;nbsp;Service supports both http and&amp;nbsp;TCP&amp;nbsp;protocol while
webservice supports only http protocol.&amp;nbsp;&lt;br /&gt;
b) WCF&amp;nbsp;Service is more flexible than web service.&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;b&gt;Q11.What is&amp;nbsp;Data Contract&amp;nbsp;and&amp;nbsp;Service Contract? Explain &lt;/b&gt;&amp;nbsp;&lt;br /&gt;
Data represented by creating&amp;nbsp;Data Contract&amp;nbsp;which&amp;nbsp;expose&amp;nbsp;the&amp;nbsp;&lt;br /&gt;
data which will be&amp;nbsp;transferred&amp;nbsp;/consumed&amp;nbsp;from the&amp;nbsp;service&amp;nbsp;&lt;br /&gt;
to its clients.&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;**Operations which is the functions provided by this&amp;nbsp;&lt;br /&gt;
service.&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
To write an operation on&amp;nbsp;WCF, you&amp;nbsp;must&amp;nbsp;write it as an&amp;nbsp;&lt;br /&gt;
interface, this&amp;nbsp;interface contains the &quot;Signature&quot; of the&amp;nbsp;&lt;br /&gt;
methods tagged by&amp;nbsp;ServiceContract&amp;nbsp;attribute, and&amp;nbsp;all methods&amp;nbsp;&lt;br /&gt;
signature will be&amp;nbsp;implemented&amp;nbsp;on this interface tagged with&amp;nbsp;&lt;br /&gt;
OperationContract&amp;nbsp;attribute.&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
and to implement these&amp;nbsp;service&amp;nbsp;contract you&amp;nbsp;must&amp;nbsp;create&amp;nbsp;&lt;br /&gt;
a class which&amp;nbsp;implement&amp;nbsp;the interface and the actual&amp;nbsp;&lt;br /&gt;
implementation will be&amp;nbsp;on&amp;nbsp;that class.&amp;nbsp;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 11.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;background: whitesmoke; color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;Code Below show How to create a Service Contract:&lt;/span&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;paragraph&quot; paraeid=&quot;{dbe686d7-a6e6-4d8b-aa5e-823c4d2d1e27}{37}&quot; paraid=&quot;2127209240&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; font-kerning: none; margin: 0in; overflow-wrap: break-word; user-select: text; vertical-align: baseline;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;Code:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;paragraph&quot; paraeid=&quot;{dbe686d7-a6e6-4d8b-aa5e-823c4d2d1e27}{43}&quot; paraid=&quot;2055929998&quot; style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; font-kerning: none; margin: 0in; overflow-wrap: break-word; user-select: text; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #006000; font-family: Consolas; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Segoe UI&amp;quot;;&quot;&gt;[ServiceContract]&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
Public Interface&amp;nbsp;IEmpOperations&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
{&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
[OperationContract]&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
Decimal Get&amp;nbsp;EmpSal(int&amp;nbsp;EmpId);&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #006000; font-family: Consolas; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Segoe UI&amp;quot;;&quot;&gt;}&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 10.0pt;&quot;&gt;&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #006000; font-family: Consolas; font-size: 10.0pt; mso-bidi-font-family: &amp;quot;Segoe UI&amp;quot;;&quot;&gt;Class&amp;nbsp;MyEmp:&amp;nbsp;IEmpOperations&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
{&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
Decimal Get&amp;nbsp;EmpSal()&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
{&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
// Implementation of this method.&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
}&amp;nbsp;&lt;br style=&quot;-webkit-tap-highlight-color: transparent; -webkit-user-drag: none; user-select: text;&quot; /&gt;
}&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Segoe UI&amp;quot;,sans-serif; font-size: 9.0pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class=&quot;MsoNormal&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/1901774194350251247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2021/12/q1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/1901774194350251247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/1901774194350251247'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2021/12/q1.html' title=''/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-858710862717899257</id><published>2012-05-29T10:11:00.000+01:00</published><updated>2012-05-29T10:11:01.113+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint"/><title type='text'>SharePoint 2010 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;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;SharePoint
Architecture Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;1) What are Web Applications in
SharePoint?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;An IIS Web site created and used by
SharePoint 2010. Saying an IIS virtual server is also an acceptable answer.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;2) What is an application pool?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;A group of one or more URLs that are
served by a particular worker process or set of worker processes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;3) Why are application pools
important?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;They provide a way for multiple
sites to run on the same server but still have their own worker processes and
identity.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;4) What are Web&amp;nbsp;Application Policies?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Enables security policy for users at the Web application level, rather than at the site collection or site level. Importantly, they override all other security settings.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;5) What are zones?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Different logical paths (URLs
meaning) of gaining access to the same SharePoint Web application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75; font-family: &#39;Times New Roman&#39;, serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;6) What is a site collection?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&amp;nbsp;A site collection
contains&amp;nbsp;a top-level website and&amp;nbsp;can contain one or more
sub-sites&amp;nbsp;web sites that have the same owner and share administration
settings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;7) What are content databases?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;A content database can hold all the
content for one or more site collections&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;8) What is a site?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&amp;nbsp;A site in
SharePoint&amp;nbsp;contains&amp;nbsp;Web pages and related assets such as lists, all
hosted within a site collection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;9) What are My Sites?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Specialized SharePoint sites
personalized and targeted&amp;nbsp;for each user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;10) What is the difference
between&amp;nbsp;Classic mode authentication and&amp;nbsp;Claims-based authentication?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;As the name implies, classic
authentication supports NT authentication types like Kerberos, NTLM, Basic,
Digest, and anonymous. Claims based authentication uses claims identities
against a against a trusted identity provider.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;11) When would you use claims, and
when would you use classic?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Classic is more commonly seen in
upgraded 2007 environments whereas claims are the recommended path for new
deployments.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;12) Describe the potential
components for both a single server, and multiple servers, potentially several
tiered farms:&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75; font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;A single-server SharePoint Server
2010 environment leverages a built-in SQL Server 2008 Express database. The
problems with this environment is scalability, not being able to install the
with built-in database on a domain controller, the database cannot be larger
than 4 GB, and you cannot use User Profile Synchronization in a single server
with built-in database installation.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;An example of a multiple tier farm
would be a three-tier topology, considered one of the more efficient physical
and logical layouts to supports scaling out or scaling up and provides better
distribution of services across the member servers of the farm. This is
considered a good architecture since one can add Web servers to the Web tier,
add app servers to the application tier, and add database servers to the
database tier.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;SharePoint Backup and Restore
Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;13) What are some of the tools that
can be used when backing up a SharePoint 2010 environment?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;SharePoint farm backup and recovery&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;SQL Server&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;System Center Data Protection Manager&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;14) What Microsoft tool can be used
for incremental backups?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;System Center Data Protection
Manager&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Managed Metadata Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;15) What is Managed Metadata?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Managed metadata is a hierarchical
collection of centrally managed terms that you can define, and then use as
attributes for items.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;16) What are Terms and Term Sets?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;A term is a word or a phrase that
can be associated with an item.&amp;nbsp; A term set is a collection of related
terms.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;17) How do Terms And Term Sets
relate to Managed Metadata?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Managed metadata is a way of
referring to the fact that terms and term sets can be created and managed
independently from the columns themselves.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;18) Are there different types of
Term Sets?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;There are Local Term Sets and Global
Term Sets, one created within the context of a site collection and the
other&amp;nbsp;created outside the context of a site collection, respectively.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;19) How are terms created and used?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;There are several ways; however the
most common is to use the Term Store Management Tool.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;20) How is Managed Metadata, and the
related Term technology used?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Through the UI, the most common use
is through the managed metadata list column which allows you to specify the
term set to use. It also related to searching and enhancing the user search
experience.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Sandbox Solutions Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;21) What is a sandboxed solution?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Components that are deployed
to&amp;nbsp;run within the sandboxed process rather than running in the production
Internet Information Services (IIS) worker process.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;22) What are some examples of things
that might run within the SharePoint sandbox?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Any of the following are acceptable
answers:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&amp;nbsp;Web Parts&lt;br /&gt;
Event receivers&lt;br /&gt;
Feature receivers&lt;br /&gt;
Custom Microsoft SharePoint Designer workflow activities&lt;br /&gt;
Microsoft InfoPath business logic&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;others….&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;23) Why are sandboxed solutions
used?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Primarily because they promote high
layers of isolation. By default they run within&amp;nbsp;a rights-restricted,
isolated process based around Code Access Security (CAS). Isolation is possible
to increase with activities like running the sandboxing service on only
specific SharePoint 2010 servers.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;SharePoint Search Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;24) What is a content source in
relation to SharePoint search? What’s the minimum amount of content sources?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;A content source is a set of options
that you can use to specify what type of content is crawled, what URLs to
crawl, and how deep and when to crawl. You must create at least one content
source before a crawl can occur.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;25) What is a search scope?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;A search scope defines a subset of
information in the search index. Users can select a search scope when
performing a search.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;26) What is a federated location
with SharePoint search?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Federated locations provide
information that exists outside of your internal network to your end-users.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;27) How does managed metadata affect
search?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Enhances the end-user search
experience by mapping crawled properties to managed properties. Managed
properties show up in search results and help users perform more successful
queries.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;28)&amp;nbsp; What is query logging in
SharePoint 2010?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Collects information about user
search queries and search results that users select on their computers to
improve the relevancy of search results and to improve query suggestions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;29) What authentication type does
the SharePoint crawler use?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;The crawl component requires access
to content using NTLM authentication.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Services Architecture Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;30) Please describe what a Service
Application is in SharePoint 2010.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Service applications in SharePoint
2010 are&amp;nbsp;a set of&amp;nbsp;services that&amp;nbsp;can possibly&amp;nbsp;be shared
across Web applications. Some of these services may or may not be shared across
the SharePoint 2010 farm. The reason these applications are shared is the
overall reduction of&amp;nbsp;resources required to&amp;nbsp;supply the
functionality&amp;nbsp;these services cultivate.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;31) Please provide an example of one
of these service applications.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Any of the below are acceptable
answers:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Access Services&lt;br /&gt;
Business Data Connectivity service&lt;br /&gt;
Excel Services Application&lt;br /&gt;
Managed Metadata service&lt;br /&gt;
PerformancePoint Service Application&lt;br /&gt;
Search service&lt;br /&gt;
Secure Store Service&lt;br /&gt;
State service&lt;br /&gt;
Usage and Health Data Collection service&lt;br /&gt;
User Profile service&lt;br /&gt;
Visio Graphics Service&lt;br /&gt;
Web Analytics service&lt;br /&gt;
Word Automation Services&lt;br /&gt;
Microsoft SharePoint Foundation Subscription Settings Service&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;32) What are Service Application
Groups used for?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Just provides a logical grouping of
services that are scoped to a particular Web Application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;33) How are Service Applications
deployed in terms of IIS (Internet Information Services)?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;They are provisioned as
a&amp;nbsp;single Internet Information Services (IIS) Web site.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;34) Explain how connections are
managed with Service Applications.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;A&amp;nbsp;virtual entity is used that
is referred to as a proxy, due to&amp;nbsp;label in PowerShell.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;35)&amp;nbsp;What are some
common&amp;nbsp;examples of SharePoint 2010 services&amp;nbsp;architectures,
and&amp;nbsp;what are&amp;nbsp;the advantages of each design?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75; font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;The three most popular designs are
single farms with either a single service application group or multiple service
application groups, or&amp;nbsp;Enterprise services farms.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Single farms with a single service
application group are generally the most common, and have the advantages of
easy deployment, simple service application allocation, effective resource
utilization and cohesive management.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Single farms with&amp;nbsp;multiple
service application groups is less common, and have the advantage of potential
individual management of service applications as well as allowing data
isolation, and while being more complex to deploy and maintain allows targeting
of sites to particular service applications.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Enterprise Service Farms is pretty
uncommon as it is a complete farm dedicated to Service Applications but
promotes autonomous management and high levels of data isolation.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;36) Are there any other type of
relevant service architectures?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Depending on the environment
requirements, a specialized farm can also be used in order to deploy specific
services tailored to the organizational requirements which can aid in scaling
out and conservation of resources.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;37) What is the User Profile
service?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Allows configuring and
managing&amp;nbsp;User profile properties, Audiences, Profile synchronization
settings, organization browsing and management settings, and My Site settings.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;38) What are User Profiles?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Aggregates properties from diverse
identity content sources together to create unified and consistent profiles
across an organization, used throughout the SharePoint environment.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;39) What is Excel Services?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Allows sharing, securing, managing,
and using Excel 2010 workbooks in a SharePoint Server Web site or document
library. Excel Services consists of the Excel Calculation Services (ECS),
Microsoft Excel Web Access (EWA), and Excel Web Services (EWS) components.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;40) What is PerformancePoint
Services?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Allows users to monitor and
analyze&amp;nbsp;a business by building dashboards, scorecards, and key performance
indicators (KPIs).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;41) What is Visio Services?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Allows users to share and view
Microsoft Visio Web drawings. The service also enables data-connected Microsoft
Visio 2010 Web drawings to be refreshed and updated from various data sources.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;42) What is Access Services?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Allows users to edit, update, and
create linked Microsoft Access 2010 databases that can be viewed and
manipulated by using an internet browser, the Access client, or a linked HTML
page.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;43) What is the Secure Store Service
(SSS)?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;A secure database for storing
credentials that are associated with application IDs&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;44) What is Content Deployment?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Content deployment enables you to
copy content from a source site collection to a destination site collection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Backup / DR Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;45) Describe how redundancy can be
built into a SharePoint environment. Please be specific in regards to any
auxiliary components.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Multiple&amp;nbsp;front-end web servers
(WFE’s) can be deployed and correlated through Windows NLB or anything
approach.&amp;nbsp;Application servers can be deployed into the farm for a variety
of purposes, depending on organizational requirements. Databases can be clustered
or mirrored, again depending on requirements and environment.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;46) From a basic standpoint, what is
the difference between SQL clustering and mirroring?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Clustering provides a&amp;nbsp;failover
scenario whereby one or more nodes can be swapped as active depending on
whether a node goes down. In mirroring, transactions are sent directly from a
principal database and server to a mirror database to establish essentially a
replica of the database.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Governance Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;47) What Is Governance in terms of
SharePoint 2010?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Governance is the set of policies,
roles, responsibilities, and processes that guide, direct, and control how an
organization’s business divisions and IT teams cooperate to achieve business
goals.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;48) What are some useful, OOB
features of SharePoint that aid with governance of an environment?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75; font-family: &#39;Times New Roman&#39;, serif; font-size: 12pt;&quot;&gt;Any of the below are acceptable
answers. There are some others but these are the major ones that I generally
look for from a candidate:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Site templates&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; – consistent branding, site structure, and layout can be
enforce a set of customizations that are applied to a site definition.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Quotas&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; – limits to the amount of storage a site collection can
use.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Locks&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; -&amp;nbsp;prevent users from either adding content to a site
collection or using the site collection.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Web application permissions and
policies&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; – comprehensive security settings
that apply to all users and groups for all site collections within a Web
application.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Self-service site creation&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt; -&amp;nbsp;enables users to create their own site collections,
thus must be incorporated into a governance scheme.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;Monitoring Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;49) Describe the monitoring features
that are baked into SharePoint 2010.&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Diagnostic logging captures data
about the state of the system, whereas health and usage data collection uses
specific timer jobs to perform monitoring tasks, collecting information about:&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul type=&quot;disc&quot;&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Performance Counter Fata&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Event Log Data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Timer Service Data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Metrics For Site Collections and Sites&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Search Usage Data&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;General Workflow Questions&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;50) What is a declarative workflow?
Can non-authenticated users participate in workflows?&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; font-size: 12.0pt; mso-fareast-font-family: &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;Workflows created by using Microsoft
SharePoint Designer 2010, the default setting enables deployment of declarative
workflows. Yes, however you do not give non-authorized users access to the
site. The e-mail message and attachments sent from notifications might contain
sensitive information.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/858710862717899257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2012/05/sharepoint-2010-questions-and-answers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/858710862717899257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/858710862717899257'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2012/05/sharepoint-2010-questions-and-answers.html' title='SharePoint 2010 Questions And Answers'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-6624743300641659790</id><published>2012-05-25T14:49:00.002+01:00</published><updated>2012-05-25T14:55:01.002+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><title type='text'>C# .Net Interview Questions</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;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #20124d;&quot;&gt;&amp;nbsp; &amp;nbsp;&lt;b&gt;&amp;nbsp;1. Which is better - singly
linked list or doubly linked list? What are the pros and cons of using each?&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #351c75;&quot;&gt;&lt;b&gt;
Answer -&lt;/b&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&amp;nbsp;It depends on the requirement.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #20124d; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;Single
linked list has smaller memory requirement because it needs only forward
reference. If you need to get next item from a specified item, then you should use
single list. It can be traversed in forward direction only.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #20124d; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;When
you need to get previous or next item from a specified item then doubly linked
is the best option. It can be traversed in both directions.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;b&gt;2. What&#39;s the difference
between Managed code and Native code?&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;b&gt;Answer -&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;span style=&quot;color: #20124d; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;Managed
Code - Managed code is the code which runs under .Net CLR. &lt;/span&gt;&lt;span style=&quot;color: #20124d; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #20124d; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;CLR basically take care of Exception handling,
memory management, Code access security, etc.&lt;/span&gt;&lt;span style=&quot;color: #20124d; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;
&lt;/span&gt;&lt;span style=&quot;color: #20124d; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;It is not compiled directly to machine code , but to an intermediate
language. &lt;/span&gt;&lt;span style=&quot;color: #20124d; font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;Native
code: Code which is complied directly to machine code. It is executed by OS
directly. It always has chances of memory leak if developer has not handled it
properly. Unlike CLR, There is no garbage collection and no memory management.&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;b&gt;3. What is thread safe
code?&lt;o:p&gt;&lt;/o:p&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;b&gt;Answer -&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;span style=&quot;color: #20124d;&quot;&gt;&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;In
multithreaded application where multiple threads call the same method of the object.
Then there should be synchronization mechanism so that one thread can not interrupt
other thread. If this situation is not synchronized, &lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, sans-serif; font-size: 10pt;&quot;&gt;then one&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;search-highlight&quot;&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;thread&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;might interrupt another&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;search-highlight&quot;&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;thread&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;and
the object could be left in an invalid state&lt;/span&gt;. A class whose members are
protected from such interruptions is called&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;search-highlight&quot;&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;thread&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;search-highlight&quot;&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;safe&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
&lt;span style=&quot;font-family: Calibri, sans-serif; font-size: 11pt;&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/6624743300641659790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2012/05/c-net-interview-questions.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/6624743300641659790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/6624743300641659790'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2012/05/c-net-interview-questions.html' title='C# .Net Interview Questions'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-2014490020028440453</id><published>2012-05-25T12:55:00.000+01:00</published><updated>2012-05-25T14:55:24.470+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><title type='text'></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;h3 class=&quot;post-title entry-title&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 22px; margin: 0px; position: relative; text-align: -webkit-auto;&quot;&gt;


C# Interview Questions &amp;amp; Answers&lt;/h3&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;&lt;span style=&quot;color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Question 1:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt; line-height: 18px;&quot;&gt;&amp;nbsp;Write a function that receives three integer inputs for the lengths of the sides of a triangle and returns one of four values to determine the triangle type (1=scalene, 2=isosceles, 3=equilateral, 4=error). Generate test cases for the function assuming another developer coded the function.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt; line-height: 18px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt; line-height: 18px;&quot;&gt;&lt;b&gt;Answer :&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white; color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt; line-height: 18px;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;GetCubicType(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;Height,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;Width,&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;&amp;nbsp;Length)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;(Height &amp;lt; 0 || Width &amp;lt; 0 || Length &amp;lt; 0)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;4;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;((Height == Width) &amp;amp;&amp;amp; (Height == Length))&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;3;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;&amp;nbsp;((Height == Width) || (Width == Length) || (Length == Width))&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;2;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;&amp;nbsp;1;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; color: #4c4c4c; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;b style=&quot;background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;&lt;span style=&quot;color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Question 2:&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Implement a circular queue of integers of user-specified size using a simple array. Provide routines to initialize(), enqueue() and dequeue() the queue. Make it thread safe.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;div style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;
&lt;b style=&quot;background-color: white; color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;
&lt;b style=&quot;background-color: white; color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;Answer :&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background-color: white; font-size: 13px; line-height: 18px;&quot;&gt;
&lt;div style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;
&lt;span style=&quot;color: #1f497d; font-family: Arial, sans-serif; font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; System;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; System.Collections.Generic;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; System.Linq;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; System.Text;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; ThreadSafeCirculurQueue&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ThreadSafeCircularQueue&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;[] _queue;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; _length;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; _head;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; _tail;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt; _objLocker = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;
&lt;span style=&quot;color: blue;&quot;&gt;object&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; ThreadSafeCircularQueue()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Initialize();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
Initialize()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
_head = -1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
_tail = -1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.Write(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Please
enter queue size: &quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt; length = &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; queueLength = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;bool&lt;/span&gt; success = &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;.TryParse(length,
&lt;span style=&quot;color: blue;&quot;&gt;out&lt;/span&gt; queueLength);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt;(!success){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.Write(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Invalid Data\n PleaseTry Again&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
_length = queueLength;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
_queue = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt;[_length];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Enqueue(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; data)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;lock&lt;/span&gt; (_objLocker)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; ((_head == 0 &amp;amp;&amp;amp; _tail ==
_length - 1) ||&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(_tail + 1 == _head))&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Queue is full.&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (_tail == _length - 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _tail = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;_tail++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
_queue[_tail] = data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Inserted Item&amp;nbsp;
--&amp;gt; {0}&quot;&lt;/span&gt;, data);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (_head == -1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
_head = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
Dequeue()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;lock&lt;/span&gt; (_objLocker)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; data;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (_head == -1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Queue is empty.&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
data = -1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
data = _queue[_head];&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
_queue[_head] = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (_head == _tail)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _head = _tail = -1;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (_head == _length - 1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _head = 0;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _head++;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Removed Item --&amp;gt; {0}&quot;&lt;/span&gt;, data);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;private&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
ShowData()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;lock&lt;/span&gt; (_objLocker)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (_head == -1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;Queue is empty.&quot;&lt;/span&gt;);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;return&lt;/span&gt;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: blue;&quot;&gt;if&lt;/span&gt; (_tail &amp;lt; _head)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; (i = 0; i &amp;lt;= _length - 1; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.Write(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;{0}
&quot;&lt;/span&gt;, _queue[i]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: blue;&quot;&gt;else&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
{&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; (i = 0; i &amp;lt;= _tail; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.Write(&lt;span style=&quot;color: #a31515;&quot;&gt;&quot;{0}
&quot;&lt;/span&gt;, _queue[i]);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.WriteLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
}&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt;
EnqueueDequeue()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 1; i
&amp;lt; 5; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Enqueue(i);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
ShowData();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Enqueue(5); &lt;span style=&quot;color: green;&quot;&gt;// Circular queue is full!&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 1; i
&amp;lt;5;i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Dequeue();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Dequeue(); &lt;span style=&quot;color: green;&quot;&gt;// Circular queue is empty!&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
ShowData();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Enqueue(6);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
ShowData();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Enqueue(7);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
ShowData();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Dequeue();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Dequeue();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Enqueue(8);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
ShowData();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Enqueue(9);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
ShowData();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
Enqueue(10);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
ShowData();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;color: blue; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp; &amp;nbsp; class&lt;/span&gt;&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;Program&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: blue;&quot;&gt;void&lt;/span&gt; Main(&lt;span style=&quot;color: blue;&quot;&gt;string&lt;/span&gt;[] args)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;ThreadSafeCircularQueue&lt;/span&gt; circularQueue =&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&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; &amp;nbsp;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ThreadSafeCircularQueue&lt;/span&gt;();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;[] threads = &lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;[1]; &lt;span style=&quot;color: green;&quot;&gt;//
Thread can be increased&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 0; i
&amp;lt; threads.Length; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;threads[i] =&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; new&lt;/span&gt;
&lt;span style=&quot;color: #2b91af;&quot;&gt;Thread&lt;/span&gt;(&lt;span style=&quot;color: blue;&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #2b91af;&quot;&gt;ThreadStart&lt;/span&gt;(circularQueue.EnqueueDequeue));&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: blue;&quot;&gt;for&lt;/span&gt; (&lt;span style=&quot;color: blue;&quot;&gt;int&lt;/span&gt; i = 0; i
&amp;lt; threads.Length; i++)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;
threads[i].Start();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&quot;color: #2b91af;&quot;&gt;Console&lt;/span&gt;.ReadLine();&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Consolas; font-size: 9.5pt;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;color: #4c4c4c; line-height: normal; margin-bottom: 0.0001pt;&quot;&gt;
&lt;span style=&quot;font-family: Consolas;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/2014490020028440453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2012/05/c-interview-questions-answers-question.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/2014490020028440453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/2014490020028440453'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2012/05/c-interview-questions-answers-question.html' title=''/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-727145788451382905</id><published>2009-07-30T14:15:00.000+01:00</published><updated>2009-07-30T14:15:34.170+01:00</updated><title type='text'>The art of staying in the present | Specials | Cricinfo Magazine | Cricinfo.com</title><content type='html'>&lt;a href=&quot;http://www.cricinfo.com/magazine/content/story/416753.html&quot;&gt;The art of staying in the present | Specials | Cricinfo Magazine | Cricinfo.com&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/727145788451382905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2009/07/art-of-staying-in-present-specials.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/727145788451382905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/727145788451382905'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2009/07/art-of-staying-in-present-specials.html' title='The art of staying in the present | Specials | Cricinfo Magazine | Cricinfo.com'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-195675696507996038</id><published>2009-04-10T11:53:00.000+01:00</published><updated>2009-04-10T11:58:27.963+01:00</updated><title type='text'>Insert datatable into SQL Server using Bulk Copy</title><content type='html'>Here is code &lt;br /&gt;//create Sql connection&lt;br /&gt;//create Sql command&lt;br /&gt;&lt;br /&gt;//tablename is the  name of table in database &lt;br /&gt;source is the datatable &lt;br /&gt;&lt;br /&gt;using (SqlBulkCopy bulkCopy = new SqlBulkCopy(conneection , SqlBulkCopyOptions.Default, command.Transaction))&lt;br /&gt;                        {&lt;br /&gt;                            bulkCopy.DestinationTableName = tablename;&lt;br /&gt;                            bulkCopy.NotifyAfter = 1000;&lt;br /&gt;                            bulkCopy.BulkCopyTimeout = 100;&lt;br /&gt;                            bulkCopy.WriteToServer(source);&lt;br /&gt;                            bulkCopy.Close();&lt;br /&gt;                        }</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/195675696507996038/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2009/04/insert-datatable-into-sql-server-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/195675696507996038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/195675696507996038'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2009/04/insert-datatable-into-sql-server-using.html' title='Insert datatable into SQL Server using Bulk Copy'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-8662030440787072836</id><published>2008-06-14T07:59:00.000+01:00</published><updated>2008-06-14T07:59:50.423+01:00</updated><title type='text'>PropertyGrid</title><content type='html'>&lt;a href=&quot;http://www.pcreview.co.uk/forums/thread-2236013.php&quot;&gt;PropertyGrid&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/8662030440787072836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/06/propertygrid.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/8662030440787072836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/8662030440787072836'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/06/propertygrid.html' title='PropertyGrid'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-5849322568386273316</id><published>2008-06-06T06:36:00.000+01:00</published><updated>2012-05-25T14:56:07.829+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Interview Questions"/><title type='text'>Six C# features Java developers will kill for...</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.c-sharpcorner.com/UploadFile/rankorn/6FeaturesJavaDevelopersWillKillFor06142006072031AM/6FeaturesJavaDevelopersWillKillFor.aspx&quot;&gt;Six C# features Java developers will kill for...&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/5849322568386273316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/06/six-c-features-java-developers-will.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/5849322568386273316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/5849322568386273316'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/06/six-c-features-java-developers-will.html' title='Six C# features Java developers will kill for...'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-470274686071283581</id><published>2008-06-06T06:10:00.000+01:00</published><updated>2008-06-06T06:14:18.205+01:00</updated><title type='text'>Using GetHashCode and Equals</title><content type='html'>The ability to override GetHashCode is available on every object but is seldom required for POCOs.  The Equals method usually provides all of the comparison functionality we&#39;ll ever need.  But when using an ORM such as NHibernate, GetHashCode takes a more prominent role as it helps NHibernate determine if an object already exists in a collection.  Not overriding GetHashCode, or doing so inappropriately, may lead to duplicate objects showing up in collections and/or objects missing altogether.  When needed, most people implement both methods and end up with similar code in both.  So to ease the burden of managing both of these methods, there&#39;s exploitable overlap between Equals and GetHashCode to kill two birds with one stone.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In my project work, I consider the following to be true when comparing two objects:&lt;br /&gt;&lt;br /&gt;    * If two objects have IDs, and have the same IDs, then they may be considered equal without examining them further.  (I&#39;m assuming ID to be an identity field, or equivalent, in the DB.)&lt;br /&gt;    * If two objects have IDs, but have different IDs, than they may be considered not equal without examining them further.  E.g., If customer A has an ID of 4 while customer B has an ID of 5, then they are not equal, QED.&lt;br /&gt;    * If neither object has an ID or only one of them has an ID, but their &quot;business value signatures&quot; are identical, then they&#39;re equal.  E.g., customer A has an ID of 4 and a social-security-number of 123-45-6789 while customer B has no ID but also has a social-security-number of 123-45-6789.  In this case, customer A and customer B are equal.  By &quot;business signatures,&quot; I imply a combination of those properties which deem an entity unique, regardless of its ID.  &lt;br /&gt;&lt;br /&gt;    * If one of them is null, then they are not equal.  (Whoo, that was easy.)&lt;br /&gt;&lt;br /&gt;With the above considerations in mind, we&#39;ll want to write code to make the following unit test pass.  Note that Customer takes a company name into its constructor.  It also has a settable contact name.  The combination of its company name and contact name give Customer its unique business signature.&lt;br /&gt;&lt;br /&gt;view plaincopy to clipboardprint?&lt;br /&gt;&lt;br /&gt;   1. [Test]  &lt;br /&gt;   2. public void CanCompareCustomers() {  &lt;br /&gt;   3.   Customer customerA = new Customer(&quot;Acme&quot;);  &lt;br /&gt;   4.   Customer customerB = new Customer(&quot;Anvil&quot;);  &lt;br /&gt;   5.       &lt;br /&gt;   6.   Assert.AreNotEqual(customerA, null);  &lt;br /&gt;   7.   Assert.AreNotEqual(customerA, customerB);  &lt;br /&gt;   8.   &lt;br /&gt;   9.   customerA.SetIdTo(1);  &lt;br /&gt;  10.   customerB.SetIdTo(1);  &lt;br /&gt;  11.   &lt;br /&gt;  12.   // Even though the signatures are different,   &lt;br /&gt;  13.   // the persistent IDs were the same. Call me   &lt;br /&gt;  14.   // crazy, but I put that much trust into IDs.  &lt;br /&gt;  15.   Assert.AreEqual(customerA, customerB);  &lt;br /&gt;  16.   &lt;br /&gt;  17.   Customer customerC = new Customer(&quot;Acme&quot;);  &lt;br /&gt;  18.   &lt;br /&gt;  19.   // Since customerA has an ID but customerC   &lt;br /&gt;  20.   // doesn&#39;t, their signatures will be compared  &lt;br /&gt;  21.   Assert.AreEqual(customerA, customerC);  &lt;br /&gt;  22.   &lt;br /&gt;  23.   customerC.ContactName = &quot;Coyote&quot;;  &lt;br /&gt;  24.   &lt;br /&gt;  25.   // Signatures are now different  &lt;br /&gt;  26.   Assert.AreNotEqual(customerA, customerC);  &lt;br /&gt;  27.   &lt;br /&gt;  28.   // customerA.Equals(customerB) because they   &lt;br /&gt;  29.   //  have the same ID.  &lt;br /&gt;  30.   // customerA.Equals(customerC) because they   &lt;br /&gt;  31.   //  have the same signature.  &lt;br /&gt;  32.   // customerB.DoesNotEquals(customerC) because   &lt;br /&gt;  33.   //  we can&#39;t compare their IDs, since   &lt;br /&gt;  34.   //  customerC is transient, and their   &lt;br /&gt;  35.   //  signatures are different.  &lt;br /&gt;  36.   Assert.AreNotEqual(customerB, customerC);  &lt;br /&gt;  37. }  &lt;br /&gt;&lt;br /&gt;[Test] public void CanCompareCustomers() { Customer customerA = new Customer(&quot;Acme&quot;); Customer customerB = new Customer(&quot;Anvil&quot;); Assert.AreNotEqual(customerA, null); Assert.AreNotEqual(customerA, customerB); customerA.SetIdTo(1); customerB.SetIdTo(1); // Even though the signatures are different, // the persistent IDs were the same. Call me // crazy, but I put that much trust into IDs. Assert.AreEqual(customerA, customerB); Customer customerC = new Customer(&quot;Acme&quot;); // Since customerA has an ID but customerC // doesn&#39;t, their signatures will be compared Assert.AreEqual(customerA, customerC); customerC.ContactName = &quot;Coyote&quot;; // Signatures are now different Assert.AreNotEqual(customerA, customerC); // customerA.Equals(customerB) because they // have the same ID. // customerA.Equals(customerC) because they // have the same signature. // customerB.DoesNotEquals(customerC) because // we can&#39;t compare their IDs, since // customerC is transient, and their // signatures are different. Assert.AreNotEqual(customerB, customerC); }&lt;br /&gt;&lt;br /&gt;Although some argue against a single object which all other persistable domain objects inherit from, I use one nonetheless and ingeniously call it &quot;DomainObject.&quot;  (Those are Dr. Evil quotes there.)  &quot;DomainObject,&quot; in its entirety, contains the following:&lt;br /&gt;&lt;br /&gt;view plaincopy to clipboardprint?&lt;br /&gt;&lt;br /&gt;   1. public abstract class DomainObject&lt;IdT&gt;  &lt;br /&gt;   2. {  &lt;br /&gt;   3.   /// &lt;summary&gt;  &lt;br /&gt;   4.   /// ID may be of type string, int,   &lt;br /&gt;   5.   /// custom type, etc.  &lt;br /&gt;   6.   /// &lt;/summary&gt;  &lt;br /&gt;   7.   public IdT ID {  &lt;br /&gt;   8.     get { return id; }  &lt;br /&gt;   9.   }  &lt;br /&gt;  10.   &lt;br /&gt;  11.   public override sealed bool Equals(object obj) {  &lt;br /&gt;  12.     DomainObject&lt;IdT&gt; compareTo =   &lt;br /&gt;  13.       obj as DomainObject&lt;IdT&gt;;  &lt;br /&gt;  14.   &lt;br /&gt;  15.     return (compareTo != null) &amp;&amp;  &lt;br /&gt;  16.       (HasSameNonDefaultIdAs(compareTo) ||  &lt;br /&gt;  17.        // Since the IDs aren&#39;t the same, either   &lt;br /&gt;  18.        // of them must be transient to compare   &lt;br /&gt;  19.        // business value signatures  &lt;br /&gt;  20.        (((IsTransient()) || compareTo.IsTransient()) &amp;&amp;  &lt;br /&gt;  21.        HasSameBusinessSignatureAs(compareTo)));  &lt;br /&gt;  22.   }  &lt;br /&gt;  23.   &lt;br /&gt;  24.   /// &lt;summary&gt;  &lt;br /&gt;  25.   /// Transient objects are not associated with an   &lt;br /&gt;  26.   /// item already in storage.  For instance, a   &lt;br /&gt;  27.   /// Customer is transient if its ID is 0.  &lt;br /&gt;  28.   /// &lt;/summary&gt;  &lt;br /&gt;  29.   public bool IsTransient() {  &lt;br /&gt;  30.     return ID == null || ID.Equals(default(IdT));  &lt;br /&gt;  31.   }  &lt;br /&gt;  32.   &lt;br /&gt;  33.   /// &lt;summary&gt;  &lt;br /&gt;  34.   /// Must be implemented to compare two objects  &lt;br /&gt;  35.   /// &lt;/summary&gt;  &lt;br /&gt;  36.   public abstract override int GetHashCode();  &lt;br /&gt;  37.   &lt;br /&gt;  38.   private bool HasSameBusinessSignatureAs(DomainObject&lt;IdT&gt; compareTo) {  &lt;br /&gt;  39.     return GetHashCode().Equals(compareTo.GetHashCode());  &lt;br /&gt;  40.   }  &lt;br /&gt;  41.   &lt;br /&gt;  42.   /// &lt;summary&gt;  &lt;br /&gt;  43.   /// Returns true if self and the provided domain   &lt;br /&gt;  44.   /// object have the same ID values and the IDs   &lt;br /&gt;  45.   /// are not of the default ID value  &lt;br /&gt;  46.   /// &lt;/summary&gt;  &lt;br /&gt;  47.   private bool HasSameNonDefaultIdAs(DomainObject&lt;IdT&gt; compareTo) {  &lt;br /&gt;  48.     return (ID != null &amp;&amp;   &lt;br /&gt;  49.             ! ID.Equals(default(IdT))) &amp;&amp;  &lt;br /&gt;  50.       (compareTo.ID != null &amp;&amp;   &lt;br /&gt;  51.        ! compareTo.ID.Equals(default(IdT))) &amp;&amp;  &lt;br /&gt;  52.       ID.Equals(compareTo.ID);  &lt;br /&gt;  53.   }  &lt;br /&gt;  54.   &lt;br /&gt;  55.   /// &lt;summary&gt;  &lt;br /&gt;  56.   /// Set to protected to allow unit tests to set   &lt;br /&gt;  57.   /// this property via reflection and to allow   &lt;br /&gt;  58.   /// domain objects more flexibility in setting   &lt;br /&gt;  59.   /// this for those objects with assigned IDs.  &lt;br /&gt;  60.   /// &lt;/summary&gt;  &lt;br /&gt;  61.   protected IdT id = default(IdT);  &lt;br /&gt;  62. }  &lt;br /&gt;&lt;br /&gt;public abstract class DomainObject&lt;IdT&gt; { /// &lt;summary&gt; /// ID may be of type string, int, /// custom type, etc. /// &lt;/summary&gt; public IdT ID { get { return id; } } public override sealed bool Equals(object obj) { DomainObject&lt;IdT&gt; compareTo = obj as DomainObject&lt;IdT&gt;; return (compareTo != null) &amp;&amp; (HasSameNonDefaultIdAs(compareTo) || // Since the IDs aren&#39;t the same, either // of them must be transient to compare // business value signatures (((IsTransient()) || compareTo.IsTransient()) &amp;&amp; HasSameBusinessSignatureAs(compareTo))); } /// &lt;summary&gt; /// Transient objects are not associated with an /// item already in storage. For instance, a /// Customer is transient if its ID is 0. /// &lt;/summary&gt; public bool IsTransient() { return ID == null || ID.Equals(default(IdT)); } /// &lt;summary&gt; /// Must be implemented to compare two objects /// &lt;/summary&gt; public abstract override int GetHashCode(); private bool HasSameBusinessSignatureAs(DomainObject&lt;IdT&gt; compareTo) { return GetHashCode().Equals(compareTo.GetHashCode()); } /// &lt;summary&gt; /// Returns true if self and the provided domain /// object have the same ID values and the IDs /// are not of the default ID value /// &lt;/summary&gt; private bool HasSameNonDefaultIdAs(DomainObject&lt;IdT&gt; compareTo) { return (ID != null &amp;&amp; ! ID.Equals(default(IdT))) &amp;&amp; (compareTo.ID != null &amp;&amp; ! compareTo.ID.Equals(default(IdT))) &amp;&amp; ID.Equals(compareTo.ID); } /// &lt;summary&gt; /// Set to protected to allow unit tests to set /// this property via reflection and to allow /// domain objects more flexibility in setting /// this for those objects with assigned IDs. /// &lt;/summary&gt; protected IdT id = default(IdT); }&lt;br /&gt;&lt;br /&gt;Note that Equals is sealed and cannot be overridden by a DomainObject implementation.  I suppose it could be unsealed, but since I put a lot of work into that method, I don&#39;t want anyone mucking it up! &lt;br /&gt;&lt;br /&gt;Now assume that Customer implements DomainObject.  As mentioned above, the combination of its company name and contact name give it its unique signature.  So its GetHashCode would be as follows:&lt;br /&gt;&lt;br /&gt;view plaincopy to clipboardprint?&lt;br /&gt;&lt;br /&gt;   1. public override int GetHashCode() {  &lt;br /&gt;   2.     return (GetType().FullName + &quot;|&quot; +  &lt;br /&gt;   3.             CompanyName + &quot;|&quot; +  &lt;br /&gt;   4.             ContactName).GetHashCode();  &lt;br /&gt;   5. }  &lt;br /&gt;&lt;br /&gt;public override int GetHashCode() { return (GetType().FullName + &quot;|&quot; + CompanyName + &quot;|&quot; + ContactName).GetHashCode(); }&lt;br /&gt;&lt;br /&gt;You&#39;ll notice that the start of the method includes the full name of the class type itself.  With this in place, two different classes would never return the same signature.  (You&#39;ll have to reconsider how GetHashCode is implemented to handle inheritance structures; e.g. a Customer and an Employee both inherit from a Person class but Customer and Employee may be equal in some instances...for this, I&#39;d probably only add GetHashCode to the Person class.)  Additionally, note that GetHashCode should only contain the &quot;business signature&quot; of the object and not include its ID.  Including the ID in the signature would make it impossible to find equality between a transient object and a ! transient object.  (Equality for all regardless of transience I say!)&lt;br /&gt;&lt;br /&gt;Pramod Gupta</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/470274686071283581/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/06/using-gethashcode-and-equals.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/470274686071283581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/470274686071283581'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/06/using-gethashcode-and-equals.html' title='Using GetHashCode and Equals'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-4919593837707925343</id><published>2008-05-22T06:54:00.000+01:00</published><updated>2008-05-22T06:55:49.064+01:00</updated><title type='text'>Bulk Binding: FORALL</title><content type='html'>Bulk Binding: FORALL&lt;br /&gt;When writing your PL/SQL stored procedure bear in mind that SQL statements are still sent to the SQL Engine as opposed to the PL/SQL Engine. Therefore in cases where you are executing several SQL statements in a loop, the resulting context switches could cause a noticeable performance problem.&lt;br /&gt;&lt;br /&gt;One solution to this performance solution is the use of &quot;bulk binding.&quot; What is that? Well first, you may recall that binding variables allows you to tie the current value of a variable into an SQL statement.&lt;br /&gt;http://thinkoracle.blogspot.com/2005/06/bind-variables-in-plsql.html&lt;br /&gt;&lt;br /&gt;&quot;Bulk Binding&quot; refers to a process whereby you can tie the current values of all the elements in an entire collection into a single operation. By using bulk binds, only one context switch is made between the PL/SQL and SQL Engines, to pass the entire collection, thus avoiding those performance issues.&lt;br /&gt;&lt;br /&gt;So how is this done? In this case, using FORALL.&lt;br /&gt;&lt;br /&gt;Let&#39;s look at an example from the Oracle documentation of how you might do something without any knowledge of bulk binding:&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;TYPE NumList IS VARRAY(20) OF NUMBER;&lt;br /&gt;depts NumList := NumList(10,30,70);&lt;br /&gt;BEGIN&lt;br /&gt;FOR i IN depts.FIRST..depts.LAST LOOP&lt;br /&gt;UPDATE emp SET sal = sal + 100 WHERE deptno = depts(i);&lt;br /&gt;END LOOP;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;Using timing techniques I&#39;ve explained before, here is what I came up with:&lt;br /&gt;http://thinkoracle.blogspot.com/2005/09/analyzing-query-performance.html&lt;br /&gt;&lt;br /&gt;call     count       cpu    elapsed       disk      query&lt;br /&gt;------- ------  -------- ---------- ---------- ----------&lt;br /&gt;Parse        1      0.00       0.00          0          0 &lt;br /&gt;Execute      3      0.01       0.00          0          9 &lt;br /&gt;Fetch        0      0.00       0.00          0          0 &lt;br /&gt;------- ------  -------- ---------- ---------- ---------- &lt;br /&gt;total        4      0.01       0.00          0          9 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Instead, we can use FORALL like this:&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;TYPE NumList IS VARRAY(20) OF NUMBER;&lt;br /&gt;depts NumList := NumList(10,30,70);&lt;br /&gt;BEGIN&lt;br /&gt;FORALL i IN depts.FIRST..depts.LAST&lt;br /&gt;UPDATE emp SET sal = sal + 100 WHERE deptno = depts(i);&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;And get this:&lt;br /&gt;&lt;br /&gt;call     count       cpu    elapsed       disk      query&lt;br /&gt;------- ------  -------- ---------- ---------- ----------&lt;br /&gt;Parse        1      0.00       0.00          0          0&lt;br /&gt;Execute      1      0.00       0.01          0          9&lt;br /&gt;Fetch        0      0.00       0.00          0          0&lt;br /&gt;------- ------  -------- ---------- ---------- ----------&lt;br /&gt;total        2      0.00       0.01          0          9&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Notice 1 execute instead of 3. Of course we won&#39;t see any performance difference on a small sample size, but here I am just illustrating the point.&lt;br /&gt;&lt;br /&gt;You may notice the absense of the keyword &quot;LOOP&quot; in the FORALL example. That is because despite its similar appearances and syntax in this example, FORALL is not a loop. It takes a single SQL statement, and the index i can be used only as an index into the collection.&lt;br /&gt;&lt;br /&gt;You can find more information about FORALL in the PL/SQL User&#39;s Guide and Reference: http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624.pdf&lt;br /&gt;&lt;br /&gt;Another useful trick is the use of SQL%BULK_ROWCOUNT (SQL is the implicit cursor used by the SQL engine for DML operations). It can be indexed the same way as the collection.&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;TYPE NumList IS VARRAY(20) OF NUMBER;&lt;br /&gt;depts NumList := NumList(10,30,70);&lt;br /&gt;BEGIN&lt;br /&gt;FORALL i IN depts.FIRST..depts.LAST&lt;br /&gt;UPDATE emp SET sal = sal + 100 WHERE deptno = depts(i);&lt;br /&gt;&lt;br /&gt;FOR i IN depts.FIRST..depts.LAST LOOP&lt;br /&gt;DBMS_OUTPUT.PUT_LINE(&#39;Affected Rows for &#39; || depts(i) || &#39; is &#39; || SQL%BULK_ROWCOUNT(i));&lt;br /&gt;END LOOP;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;Affected Rows for 10 is 3&lt;br /&gt;Affected Rows for 30 is 6&lt;br /&gt;Affected Rows for 70 is 0&lt;br /&gt;&lt;br /&gt;The only error I can foresee getting with FORALL is this one:&lt;br /&gt;ORA-22160: element at index does not exist&lt;br /&gt;And you will only get that if you are somehow binding to an index that does not exist.&lt;br /&gt;&lt;br /&gt;You may also get complaints if you use the index in an expression, which is not supported:&lt;br /&gt;PLS-00430: FORALL iteration variable i is not allowed in this context&lt;br /&gt;&lt;br /&gt;Now that I&#39;ve spoken about avoiding unnecessary context switches executing SQL statements, what about unnecessary context switches in getting information FROM the SQL engine? Are those avoidable? Yes, using BULK COLLECT. I&#39;ll write more about that shortly.&lt;br /&gt;&lt;br /&gt;Links:&lt;br /&gt;Dan Morgan has more than just a reference on this topic, he has lots of really good examples: http://www.psoug.org/reference/bulk_collect.html&lt;br /&gt;&lt;br /&gt;There is also a short but good write-up on bulk binding in the Application Developer&#39;s Guide: Fundamentals, look under Chapter 9:&lt;br /&gt;http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96590.pdf&lt;br /&gt;&lt;br /&gt;Dr. Tim Hall has some several good write-ups with good examples: http://www.oracle-base.com/articles/8i/BulkBinds8i.php</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/4919593837707925343/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/bulk-binding-forall.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/4919593837707925343'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/4919593837707925343'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/bulk-binding-forall.html' title='Bulk Binding: FORALL'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-509898165256064232</id><published>2008-05-08T11:52:00.000+01:00</published><updated>2008-05-08T11:52:34.873+01:00</updated><title type='text'>CodeProject: Database. Free source code and programming help</title><content type='html'>&lt;a href=&quot;http://www.codeproject.com/KB/database/#Database%20-%20SQL%20Server&quot;&gt;CodeProject: Database. Free source code and programming help&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/509898165256064232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/codeproject-database-free-source-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/509898165256064232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/509898165256064232'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/codeproject-database-free-source-code.html' title='CodeProject: Database. Free source code and programming help'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-4149989385191188051</id><published>2008-05-06T13:38:00.000+01:00</published><updated>2008-05-06T13:38:43.262+01:00</updated><title type='text'>SQL Server 2005 | New XML Capabilities</title><content type='html'>&lt;a href=&quot;http://www.setfocus.com/technicalarticles/sql-server-2005-xml.aspx&quot;&gt;SQL Server 2005 | New XML Capabilities&lt;/a&gt;: &quot;Take Five with SQL Server 2005&quot;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/4149989385191188051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/sql-server-2005-new-xml-capabilities.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/4149989385191188051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/4149989385191188051'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/sql-server-2005-new-xml-capabilities.html' title='SQL Server 2005 | New XML Capabilities'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-8265718764536553339</id><published>2008-05-06T13:36:00.000+01:00</published><updated>2008-05-06T13:38:25.430+01:00</updated><title type='text'>Take Five with SQL Server 2005</title><content type='html'>&lt;h1&gt;Take  	Five with SQL Server 2005&lt;/h1&gt; &lt;h2&gt;New XML Capabilities in SQL Server 2005&lt;br /&gt;	Kevin S. Goff, Microsoft MVP 2007 &lt;/h2&gt; &lt;a href=&quot;http://www.dotnetkicks.com/kick/?url=http://www.setfocus.com/technicalarticles/sql-server-2005-xml.aspx&quot;&gt; 	&lt;img src=&quot;http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http://www.setfocus.com/technicalarticles/sql-server-2005-xml.aspx&quot; alt=&quot;kick it on DotNetKicks.com&quot; border=&quot;0&quot; /&gt;&lt;/a&gt; &lt;p class=&quot;mainbody&quot;&gt;This is the first installment in a monthly, ten-part series on  	new developer features in SQL Server 2005. The objective of this series is to  	provide software developers with quick information and meaningful examples that  	demonstrate new capabilities in SQL 2005. Many developers can testify that  	being able to effectively utilize the tools in SQL Server can increase the  	value they bring to a software project. This series will cover the following:&lt;/p&gt; &lt;ul&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;New XML capabilities (subject of this article)&lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;A three-part series on new T-SQL 2005 language features&lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;SQL Server 2005 Service Broker&lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;SQL Server 2005 Isolation Levels&lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;A two-part series on writing procedures and functions in the  			.NET CLR, and in-process data access&lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;SQL Server 2005 Reporting Services&lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;ADO.NET&lt;/div&gt; 	&lt;/li&gt;&lt;/ul&gt; &lt;p class=&quot;mainbody&quot;&gt;The title of this series (&quot;Take Five with SQL 2005&quot;) reflects  	the goal of providing useful programming examples in a short period of time.  	Despite a number of great SQL 2005 books, some developers don’t always have  	time to study the material in a book. So these articles will focus on code  	samples that developers can adapt to their applications.&lt;/p&gt; &lt;p class=&quot;mainbody&quot;&gt;So let’s begin! Microsoft beefed up support of XML in SQL 2005.  	Here are the items we’ll cover:&lt;/p&gt; &lt;ol&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;The new &lt;b&gt;XML datatype&lt;/b&gt; in SQL 2005, and the new  			associated methods  (&lt;b&gt;query&lt;/b&gt;, &lt;b&gt;exists&lt;/b&gt;, &lt;b&gt;value&lt;/b&gt;, and &lt;b&gt;nodes&lt;/b&gt;) 		&lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;A reusable T-SQL UDF to convert XML to a table variable&lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;New &lt;b&gt;SELECT FOR….XML&lt;/b&gt; capabilities&lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;Performing &lt;b&gt;partial text searches&lt;/b&gt; inside an XML  			DataColumn 		&lt;/div&gt; 	&lt;/li&gt;&lt;/ol&gt; &lt;h3&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(153, 51, 0);&quot;&gt; &lt;hr size=&quot;1&quot; width=&quot;100%&quot;&gt;  &lt;/span&gt;&lt;/b&gt;1- XML Datatype and associated methods: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt; &lt;p class=&quot;mainbody&quot;&gt;Prior to SQL Server 2005, if developers wanted to convert XML  	data to relational data, they had to use combinations of the stored procedure &lt;b&gt;sp_xml_preparedocument&lt;/b&gt; 	and the &lt;b&gt;OPENXML&lt;/b&gt; function. While still valid, this methodology introduces  	some overhead. SQL 2005 provides native support for the XML data type, and new  	methods to directly parse and read the data.  &lt;/p&gt; &lt;p class=&quot;mainbody&quot;&gt;Listing A provides a demonstration.  The code creates a  	basic XML string of names and cities, and uses the nodes method to create a row  	for each instance of the &lt;b&gt;Customer node&lt;/b&gt;. We must provide a table/column  	name combination to use the results, so we’ll call it &lt;b&gt;tab(col).  &lt;/b&gt;In  	the SELECT statement, the code will use the&lt;b&gt; value&lt;/b&gt; method to strip out  	pieces of the &lt;b&gt;tab(col)&lt;/b&gt; structure&lt;b&gt;.  &lt;/b&gt;Finally, the query uses  	the exist method, which evaluates a comparison condition and returns either a 0  	or 1. Note that the syntax for exist doesn’t allow us to concatenate a search  	variable – but we can use the 	&lt;span style=&quot;color: red;&quot;&gt;sql:variable  &lt;/span&gt; syntax to embed any variable or parameter.&lt;/p&gt; &lt;b&gt; 	&lt;span style=&quot;font-size: 10pt; color: rgb(153, 51, 0);&quot;&gt; 		&lt;p style=&quot;text-align: center;&quot; align=&quot;center&quot;&gt; Listing A&lt;br /&gt;			(using nodes to convert XML to relational data) 			&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/p&gt;&lt;/span&gt;&lt;/b&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- using the XML Nodes methd to turn XML data &lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- into Relational Data&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;DECLARE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @XMLString  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;XML&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SET&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @XMLString  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&lt;customers&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;  &lt;customer&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;     &lt;firstname&gt;Kevin&lt;/firstname&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;     &lt;lastname&gt;Goff&lt;/lastname&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;    &lt;city&gt;Camp  Hill&lt;/city&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;  &lt;/customer&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;  &lt;customer&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;    &lt;firstname&gt;Steve&lt;/firstname&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;     &lt;lastname&gt;Goff&lt;/lastname&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;    &lt;city&gt; &lt;st1:city st=&quot;on&quot;&gt;&lt;st1:place st=&quot;on&quot;&gt;Philadelphia&lt;/st1:place&gt; 		&lt;/st1:city&gt;&lt;/city&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;  &lt;/customer&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&lt;/customers&gt;&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- use the basic query method&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SELECT&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  @XMLString&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;query&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;/Customers/Customer&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- Now query using the &lt;b&gt;nodes&lt;/b&gt;  method&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- Read the columns using the &lt;b&gt;value&lt;/b&gt; method, and set a condition using &lt;b&gt;exist&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- Set a search condition&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;DECLARE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @cLookup  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;50&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SET&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @cLookup  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;Camp Hill&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  tab&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;col&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;FirstName[1]&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;VARCHAR(20)&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;AS&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  FirstName&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  tab&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;col&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;LastName[1]&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;VARCHAR(20)&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;AS&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  LastName&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  tab&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;col&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;City[1]&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;VARCHAR(20)&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;AS&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  City&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FROM &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;@XMLString&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;nodes&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;//Customer&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  tab&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;col&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;    &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;WHERE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;   tab&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;col&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;exist&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;City/text()[.= sql:variable(&quot;@cLookup&quot;)] &#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; 	1 &lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;hr size=&quot;1&quot; width=&quot;100%&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt; &lt;h3&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;2 -  A reusable T-SQL UDF to convert XML to a table variable &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt; &lt;p class=&quot;mainbody&quot;&gt;Many database applications execute queries based on a variable  	number of selections. For example, a product report might prompt the user with  	a menu of dozens or even hundreds of products. The user selects any number of  	products, and the database must query against the information for those  	products.&lt;/p&gt; &lt;p class=&quot;mainbody&quot;&gt;Over the years, developers have come up with different ways to  	write a stored procedure that accepts a variable number of selections.   	Some developers will pass a comma-delimited string of integer PK values  	representing the selections, write a UDF in T-SQL to convert the string to a  	table variable, and then query against the table variable.  Other  	developers will pass an XML string of selections, and then use &lt;b&gt;sp_xml_preparedocument&lt;/b&gt; 	and &lt;b&gt;OPENXML&lt;/b&gt; to convert the XML selections to a table variable.  The  	problem with the latter method is that SQL Server doesn’t allow the use of &lt;b&gt;sp_xml_preparedocument 	&lt;/b&gt;inside a UDF, making it difficult to write a generic, reusable method.&lt;/p&gt; &lt;p class=&quot;mainbody&quot;&gt;Once again, the new XML features in SQL 2005 make this task  	easier, faster, and less resource intensive.  If you create an XML string  	[or an .NET Dataset/object that can serialize as XML] with a column called &lt;b&gt;PKValue&lt;/b&gt; 	that stores user-selections, you can write a UDF like the one in &lt;b&gt;Listing B&lt;/b&gt;,  	to convert the XML string to a table variable, using the &lt;b&gt;node&lt;/b&gt; method  	previously covered in this article.  &lt;b&gt;Listing B&lt;/b&gt; contains both a UDF  	as well as a sample to utilize it.&lt;/p&gt; &lt;b&gt; 	&lt;span style=&quot;font-size: 10pt; color: rgb(153, 51, 0);&quot;&gt; 		&lt;p style=&quot;text-align: center;&quot; align=&quot;center&quot;&gt;Listing B – UDF XML2TableVar&lt;br /&gt;			Converts an XML string with a node of PKValue to a table variable 			&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/p&gt;&lt;/span&gt;&lt;/b&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;CREATE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FUNCTION&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  [dbo]&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;[XML2TableVar]  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;   @XMLString &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;XML&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;RETURNS&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;@tPKList  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;TABLE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;   &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; PKValue  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;int&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;BEGIN&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;             &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;INSERT&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;INTO&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @tPKList  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;               &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SELECT&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  Tbl&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;Col&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;.&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;int&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;                   &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FROM&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;    @XMLString&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;nodes&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;//PKValue&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  Tbl&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt; 	&lt;st1:state st=&quot;on&quot;&gt; 		&lt;st1:place st=&quot;on&quot;&gt; 			&lt;b&gt; 				&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;Col&lt;/span&gt;&lt;/b&gt;&lt;/st1:place&gt; 	&lt;/st1:state&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;    &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;RETURN&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;END&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- Example Usage&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- Create an XML string to use in a subsequent join against  a customer table&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;DECLARE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @XMLString  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;XML&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SET&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @XMLString  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;&lt;customers&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;                                        &lt;customer&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;                                                 &lt;pkvalue&gt;2&lt;/pkvalue&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;                                                 &lt;pkvalue&gt;5&lt;/pkvalue&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin-left: 1.5in; text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&lt;/customer&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;                              &lt;/customers&gt;&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- Show the contents&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SELECT&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;   &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;*&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FROM&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  [dbo]&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;[XML2TableVar]  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;@XMLString&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  CustList&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- Perform a JOIN using the UDF&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SELECT&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  Customers&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.*&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FROM&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  Customers&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;                         &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;JOIN&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  [dbo]&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;[XML2TableVar]  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;@XMLString&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; CustList  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;                                     &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;ON&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  Customers&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;CustomerPK  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  CustList&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;PKValue&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;hr size=&quot;1&quot; width=&quot;100%&quot;&gt; &lt;o:p&gt;&lt;/o:p&gt; &lt;h3&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;3 -  New SELECT FOR….XML capabilities &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt; &lt;p class=&quot;mainbody&quot;&gt;&lt;strong&gt;Listing C&lt;/strong&gt; shows examples of querying to XML  	format, including the ability to specify an attribute-centric or  	element-centric format. 	&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt; &lt;p class=&quot;mainbody&quot; style=&quot;text-align: center;&quot; align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(153, 51, 0);&quot;&gt;Listing C&lt;br /&gt;(SELECT…FOR XML capabilities) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot; align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; color: rgb(153, 51, 0); font-family: Verdana;&quot;&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- attribute-centric schema&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SELECT&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;*&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FROM&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  orders   &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;WHERE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; OrderID  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  10447&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FOR&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;XML&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;AUTO&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;XMLSCHEMA&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: green; font-family: Verdana;&quot;&gt;-- element-centric schema&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SELECT&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;*&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FROM&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  orders   &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;WHERE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; OrderID  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  10447&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;text-indent: 0.5in;&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FOR&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;XML&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;AUTO&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; 			&lt;span style=&quot;color: blue;&quot;&gt;ELEMENTS&lt;/span&gt; 		&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;,&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;XMLSCHEMA &lt;b&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(153, 51, 0);&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;hr size=&quot;1&quot; width=&quot;100%&quot;&gt;  &lt;h3&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;4 -  Performing partial text searches inside an XML DataColumn &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/h3&gt; &lt;p class=&quot;mainbody&quot;&gt;Last, but certainly not least – some database store information  	in an XML format. For example, some will store address information inside an  	XML column.  It can become a bit of a challenge to query that data,  	especially if end users want the ability to perform partial text searches.&lt;/p&gt; &lt;p class=&quot;mainbody&quot;&gt;Once again, we can use the exist method and clauses within the  	exist method to perform these types of queries. &lt;strong&gt;Listing D&lt;/strong&gt; creates  	a simple address XML column, populates some sample data, and then performs a  	partial text query as follows:&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;text-align: center;&quot; align=&quot;center&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;WHERE &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;Address&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;exist&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;/Address/AddressRecord  [contains(@City,&quot;burg&quot;)]&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  1&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;mainbody&quot; style=&quot;text-align: center;&quot; align=&quot;center&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt; color: rgb(153, 51, 0);&quot;&gt;Listing D&lt;br /&gt;(Performing partial text  searches) &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;DECLARE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @tTestAddress  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;TABLE&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;Address  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;XML&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;INSERT&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;INTO&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;   @tTestAddress &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;VALUES&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;&lt;address&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;   &lt;addressrecord&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;       CustomerID = &quot;1&quot;  &lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;       Street=&quot; &lt;st1:street st=&quot;on&quot;&gt;&lt;st1:address st=&quot;on&quot;&gt;1945  14th Ave&lt;/st1:address&gt; 		&lt;/st1:street&gt;&quot; City=&quot; &lt;st1:city st=&quot;on&quot;&gt; 			&lt;st1:place st=&quot;on&quot;&gt;Atlantic City&lt;/st1:place&gt; 		&lt;/st1:city&gt;&quot; State=&quot;NJ&quot; Zip=&quot;91912&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;   &lt;/address&gt;&#39;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;insert&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;into&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @tTestAddress  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;values&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;&lt;address&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;   &lt;addressrecord&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;       CustomerID = &quot;2&quot;  &lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;       Street=&quot; &lt;st1:street st=&quot;on&quot;&gt;&lt;st1:address st=&quot;on&quot;&gt;27  Main Street&lt;/st1:address&gt; 		&lt;/st1:street&gt;&quot; City=&quot; &lt;st1:city st=&quot;on&quot;&gt; 			&lt;st1:place st=&quot;on&quot;&gt;Harrisburg&lt;/st1:place&gt; 		&lt;/st1:city&gt;&quot; State=&quot;PA&quot; Zip=&quot;44555&quot;/&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;   &lt;/address&gt;&#39;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;SELECT&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;*&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;FROM&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; @tTestAddress  &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: blue; font-family: Verdana;&quot;&gt;WHERE&lt;/span&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;o:p&gt;&lt;/o:p&gt; 	&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt; Address&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;.&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;exist&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: red; font-family: Verdana;&quot;&gt;&#39;/Address/AddressRecord  [contains(@City,&quot;burg&quot;)]&#39;&lt;/span&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;)&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt; color: gray; font-family: Verdana;&quot;&gt;=&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 9pt; font-family: Verdana;&quot;&gt;  1&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 9pt;&quot;&gt; 		&lt;b&gt; 			&lt;span style=&quot;font-size: 10pt; color: rgb(153, 51, 0);&quot;&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;hr size=&quot;1&quot; width=&quot;100%&quot;&gt; &lt;p class=&quot;MsoNormal&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;Recommended &lt;st1:place st=&quot;on&quot;&gt;&lt;st1:city st=&quot;on&quot;&gt;Reading&lt;/st1:city&gt; 			&lt;/st1:place&gt;: &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt; &lt;p class=&quot;mainbody&quot;&gt;For every piece of information that an article covers, there  	are always multiple items that aren’t covered.  That’s a testament to how  	much XML functionality exists in SQL 2005.  There are new capabilities for  	OPENROWSET, a modify method in the XML data type to manipulate XML data, and so  	much more.  The objective of this article was to provide a starting point  	with some examples of the new XML.  Here are some additional resources  	that provide additional information.&lt;/p&gt; &lt;ul&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;Shawn Wildermuth, &lt;b&gt;&lt;a href=&quot;http://www.code-magazine.com/Article.aspx?quickid=0605081%20%20%20%20%20%20%20%20&quot;&gt; 					&lt;span style=&quot;color:#0000ff;&quot;&gt;Making&lt;/span&gt; Sense of the XML DataType in SQL Server  					2005&lt;/a&gt;,  &lt;/b&gt;May/June 2006 issue of CoDe Magazine.&lt;br /&gt;			  &lt;/div&gt; 	&lt;/li&gt;&lt;li&gt; 		&lt;div class=&quot;mainbody&quot;&gt;Bob Beauchemin and Dan Sullivan, &lt;u&gt;&lt;a href=&quot;http://www.amazon.com/Developers-Guide-Server-Microsoft-Development/dp/0321382188/sr=1-2/qid=1168895091/ref=sr_1_2/002-0739270-0560051?ie=UTF8&amp;amp;s=books&quot;&gt; 					&lt;strong&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;A Developer&#39;s Guide to SQL Server 2005 (Microsoft  						.NET Development Series)&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt; &lt;/span&gt;&lt;/a&gt;&lt;/u&gt;–  			there are multiple chapters on XML &lt;b&gt; &lt;/b&gt;&lt;/div&gt; 	&lt;/li&gt;&lt;/ul&gt; &lt;p class=&quot;mainbody&quot;&gt;Remember…GOOGLE is your friend. Sometimes just taking thirty  	minutes to Google some XML keywords will lead to more valuable information than  	you ever thought possible.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/8265718764536553339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/take-five-with-sql-server-2005.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/8265718764536553339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/8265718764536553339'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/take-five-with-sql-server-2005.html' title='Take Five with SQL Server 2005'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-3043246592168706823</id><published>2008-05-06T10:21:00.000+01:00</published><updated>2008-05-06T10:21:35.309+01:00</updated><title type='text'>Writing CLR Stored Procedures in C#</title><content type='html'>&lt;a href=&quot;http://www.geekzilla.co.uk/View6C0ECA41-80B9-4EA9-A232-FF9C5AEE68C3.htm&quot;&gt;Writing CLR Stored Procedures in C#&lt;/a&gt;: &quot;Writing CLR Stored Procedures in C#&lt;br /&gt;&lt;br /&gt;As SQL Server 2005 rolls out DBA&#39;s are going to be forced to learn either C# or Visual Basic or both. Until now these were client side languages and not knowing them had little impact on your job. And if you write code in these languages your going to have to learn to use Visual Studio. This article covers the basics of C# and Visual Studio using a basic stored procedure as an example. It&#39;s written using the April CTP of SQL Server 2005.&lt;br /&gt;&lt;br /&gt;This article shows you how http://www.sqlteam.com/item.asp?ItemID=21927&quot;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/3043246592168706823/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/writing-clr-stored-procedures-in-c_06.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/3043246592168706823'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/3043246592168706823'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/writing-clr-stored-procedures-in-c_06.html' title='Writing CLR Stored Procedures in C#'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1017435312072764385.post-3141426129344475397</id><published>2008-05-06T09:48:00.000+01:00</published><updated>2008-05-06T09:48:42.849+01:00</updated><title type='text'>Writing CLR Stored Procedures in C# - Introduction to C# (Part 1) - SQLTeam.com</title><content type='html'>&lt;a href=&quot;http://www.sqlteam.com/article/writing-clr-stored-procedures-in-charp-introduction-to-charp-part-1&quot;&gt;Writing CLR Stored Procedures in C# - Introduction to C# (Part 1) - SQLTeam.com&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetaddicted.blogspot.com/feeds/3141426129344475397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/writing-clr-stored-procedures-in-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/3141426129344475397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1017435312072764385/posts/default/3141426129344475397'/><link rel='alternate' type='text/html' href='http://dotnetaddicted.blogspot.com/2008/05/writing-clr-stored-procedures-in-c.html' title='Writing CLR Stored Procedures in C# - Introduction to C# (Part 1) - SQLTeam.com'/><author><name>AG</name><uri>http://www.blogger.com/profile/07460165216927994929</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>