<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dot Net &#8211; Sibeesh Passion</title>
	<atom:link href="https://mail.sibeeshpassion.com/tag/dot-net/feed/" rel="self" type="application/rss+xml" />
	<link>https://mail.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Wed, 02 Jun 2021 15:12:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>Dot Net &#8211; Sibeesh Passion</title>
	<link>https://mail.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Important ADO.NET Interview Questions</title>
		<link>https://mail.sibeeshpassion.com/important-ado-net-interview-questions/</link>
					<comments>https://mail.sibeeshpassion.com/important-ado-net-interview-questions/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Sat, 24 Oct 2015 07:14:44 +0000</pubDate>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[ADO.NET]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Career Advice]]></category>
		<category><![CDATA[Dot Net]]></category>
		<category><![CDATA[Important ADO.NET Interview Questions]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=10836</guid>

					<description><![CDATA[In this article we will discuss about the most asked ADO.NET interview questions and answers. If you need to know other interview questions and answers, I strongly recommend to follow this link: Interview Questions. Now in this post we are going to share the interview questions or the information which you must know as a programmer or a developer, especially if you are a Dot Net developer. I hope you will like this article. Background I am a dot net developer. As a dot net developer, you will always use ADO.NET to handle your data. Isn&#8217;t it. So it is [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>In this article we will discuss about the most asked ADO.NET interview questions and answers. If you need to know other interview questions and answers, I strongly recommend to follow this link: <a href="http://sibeeshpassion.com/category/interview/" target="_blank" rel="noopener">Interview Questions</a>. Now in this post we are going to share the interview questions or the information which you must know as a programmer or a developer, especially if you are a Dot Net developer. I hope you will like this article.</p>
<p><strong>Background</strong></p>
<p>I am a dot net developer. As a dot net developer, you will always use ADO.NET to handle your data. Isn&#8217;t it. So it is important that you must know some information. We will read those basic information here. I am sharing those in the form of articles, you can always read my other interview questions here in the below links.</p>
<li><a href="http://sibeeshpassion.com/dot-net-interview-questions-for-experienced-and-fresher/" target="_blank" rel="noopener">Interview Questions For Experienced and Beginner .NET Professionals</a></li>
<li><a href="http://sibeeshpassion.com/infosys-interview-questions-for-dotnet-professionals/" target="_blank" rel="noopener">Infosys Interview Questions For DotNet Professionals</a></li>
<li><a href="http://sibeeshpassion.com/sql-interview-questions-and-answers/" target="_blank" rel="noopener">SQL Interview Questions And Answers</a></li>
<p>So shall we now discuss about ADO.NET interview questions?</p>
<p><strong>ADO.NET Interview Questions</strong></p>
<p><strong>What is ADO.NET?</strong></p>
<p>ADO.NET is basically a set of components which can be used by a programmer to access and manipulate the data in a disconnected architecture. It gives the access to the data source such as SQL Server and XML. We use DataSet for the data operations in ADO.NET. It is a part of Microsoft .Net framework.  </p>
<p><strong>Difference between ExecuteReader, ExecuteScalar and ExecuteNonQuery ?</strong></p>
<p>Source <a href="http://www.aspsnippets.com/Articles/Difference-between-ExecuteReader-ExecuteScalar-and-ExecuteNonQuery.aspx" target="_blank" rel="noopener">http://www.aspsnippets.com/Articles/Difference-between-ExecuteReader-ExecuteScalar-and-ExecuteNonQuery.aspx </a></p>
<p><em>ExecuteNonQuery</em> </p>
<p>ExecuteNonQuery is basically used for operations where there is nothing returned from the SQL Query or Stored Procedure. Preferred use will be for INSERT, UPDATE and DELETE Operations. </p>
<p>[csharp]<br />
using (SqlConnection con = new SqlConnection(constring))<br />
{<br />
    using (SqlCommand cmd = new SqlCommand(&quot;DELETE FROM Persons WHERE Name = @Name&quot;, con))<br />
    {<br />
        cmd.CommandType = CommandType.Text;<br />
        cmd.Parameters.AddWithValue(&quot;@Name&quot;, name);<br />
        con.Open();<br />
        int rowsAffected = cmd.ExecuteNonQuery();<br />
        con.Close();<br />
    }<br />
}<br />
[/csharp]</p>
<p><em>Execute Scalar </em></p>
<p>ExecuteScalar is a handy function when you want to just need one Cell value i.e. one column and one row.<br />
For example in a case where I need to get the City of a person based on its Name. </p>
<p>[csharp]<br />
using (SqlConnection con = new SqlConnection(constring))<br />
{<br />
    using (SqlCommand cmd = new SqlCommand(&quot;SELECT City FROM Persons WHERE Name=@Name&quot;, con))<br />
    {<br />
        cmd.CommandType = CommandType.Text;<br />
        cmd.Parameters.AddWithValue(&quot;@Name&quot;, name);<br />
        con.Open();<br />
        object o = cmd.ExecuteScalar();<br />
        if (o != null)<br />
        {<br />
            string city = o.ToString();<br />
        }<br />
        con.Close();<br />
    }<br />
}<br />
[/csharp]</p>
<p><em>Execute Reader </em></p>
<p>ExecuteReader is strictly used for fetching records from the SQL Query or Stored Procedure i.e. SELECT Operation.<br />
Example would be fetching Name City for all records in the Person Table. </p>
<p>[csharp]<br />
using (SqlConnection con = new SqlConnection(constring))<br />
{<br />
    using (SqlCommand cmd = new SqlCommand(&quot;SELECT Name, City FROM Persons&quot;, con))<br />
    {<br />
        cmd.CommandType = CommandType.Text;<br />
        con.Open();<br />
        SqlDataReader dr = cmd.ExecuteReader();<br />
        while (dr.Read())<br />
        {<br />
            string name = dr[&quot;Name&quot;].ToString();<br />
            string city = dr[&quot;City&quot;].ToString();<br />
            Response.Write(&quot;Name: &quot; + name);<br />
            Response.Write(&quot;City: &quot; + city);<br />
        }<br />
        con.Close();<br />
    }<br />
}<br />
[/csharp]</p>
<p><strong>What are Data Reader, Dataset &#038; Data Adapter ? Explain the differences?</strong></p>
<p><em>Data Reader</em> </p>
<p>Data Reader is used to read the data from database and it is a read and forward only connection oriented architecture during fetch the data from database. Data Reader is used to iterate through result set that came from server and it will read one record at a time because of that memory consumption will be less and it will fetch the data very fast when compared with dataset. Generally we will use Execute Reader object to bind data to data reader. </p>
<p>[csharp]<br />
using (SqlConnection con = new SqlConnection(&quot;Connectionstring&quot;))<br />
{<br />
con.Open();<br />
SqlCommand cmd = new SqlCommand(&quot;Select UserName,LastName,Location FROM UserInformation&quot;, con);<br />
SqlDataReader dr = cmd.ExecuteReader();<br />
}<br />
[/csharp]</p>
<p><em>Dataset </em></p>
<p>Dataset is a disconnected orient architecture that means there is no need of active connections during work with datasets and it is a collection of Data Tables and relations between tables. It is used to hold multiple tables with data. You can select data form tables, create views based on table and ask child rows over relations. Also Dataset provides you with rich features like saving data as XML and loading XML data. </p>
<p>[csharp]<br />
SqlCommand cmd = new SqlCommand(&quot;select UserName,LastName,Location from UserInformation&quot;, con);<br />
SqlDataAdapter da = new SqlDataAdapter(cmd);<br />
DataSet ds = new DataSet();<br />
da.Fill(ds);<br />
[/csharp]</p>
<p><em>Data Adapter</em> </p>
<p>DataAdapter will acts as a Bridge between DataSet and database. This dataadapter object is used to read the data from database and bind that data to dataset. Dataadapter is a disconnected oriented architecture. </p>
<p>[csharp]<br />
SqlCommand cmd = new SqlCommand(&quot;select UserName,LastName,Location from UserInformation&quot;, con);<br />
SqlDataAdapter da = new SqlDataAdapter(cmd);<br />
DataSet ds = new DataSet();<br />
da.Fill(ds);<br />
[/csharp]</p>
<p><strong>ADO stands for?</strong></p>
<p>ActiveX Data Object</p>
<p><strong>What are the main objects used in ADO.NET?</strong></p>
<p><em>Dataset</em></p>
<p>Dataset is a disconnected orient architecture that means there is no need of active connections during work with datasets and it is a collection of Data Tables and relations between tables. It is used to hold multiple tables with data. You can select data form tables, create views based on table and ask child rows over relations. Also Dataset provides you with rich features like saving data as XML and loading XML data. </p>
<p><em>DataReader</em></p>
<p>Data Reader is used to read the data from database and it is a read and forward only connection oriented architecture during fetch the data from database. Data Reader is used to iterate through result set that came from server and it will read one record at a time because of that memory consumption will be less and it will fetch the data very fast when compared with dataset. Generally we will use Execute Reader object to bind data to data reader. </p>
<p>That&#8217;s all. Have a great day.</p>
<p><strong>Conclusion</strong></p>
<p>Did I miss anything that you may think which is needed? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>
<p><strong>Your turn. What do you think?</strong></p>
<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>
<p>Kindest Regards<br />
Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mail.sibeeshpassion.com/important-ado-net-interview-questions/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Interview Questions For Experienced and Beginner .NET Professionals</title>
		<link>https://mail.sibeeshpassion.com/dot-net-interview-questions-for-experienced-and-fresher/</link>
					<comments>https://mail.sibeeshpassion.com/dot-net-interview-questions-for-experienced-and-fresher/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Tue, 16 Jun 2015 09:43:02 +0000</pubDate>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Interview]]></category>
		<category><![CDATA[Q&A]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Answers]]></category>
		<category><![CDATA[Dot Net]]></category>
		<category><![CDATA[Questions]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=4621</guid>

					<description><![CDATA[[toc] Introduction Hi, I hope you are all fine. If you are a .Net professional and if you are looking for a change in job (especially in Infosys, IBM, DELL, Aversan) you may want to read: Interview Questions For 3 Year .NET Professionals. I have described my interview experience there. Now I will share some other important series of questions that will definitely ask in any .Net interview. What employers currently look for in a candidate is logical understanding with basic knowledge. So understanding the basics is very important, even if you are an experienced candidate. So let us start. [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>[toc]</p>



<h2 class="wp-block-heading"><strong>Introduction </strong></h2>



<p>Hi, I hope you are all fine. If you are a .Net professional and if you are looking for a change in job (especially in Infosys, IBM, DELL, Aversan) you may want to read: <a href="http://sibeeshpassion.com/Infosys-Interview-Questions-For-DotNet-Professionals/" target="_blank" rel="noopener noreferrer">Interview Questions For 3 Year .NET Professionals.</a></p>



<p>I have described my interview experience there. Now I will share some other important series of questions that will definitely ask in any .Net interview. What employers currently look for in a candidate is logical understanding with basic knowledge. So understanding the basics is very important, even if you are an experienced candidate.</p>



<p>So let us start. I hope you will like this article. Please provide your valuable comments so that I can improve myself.</p>



<p>First of all you must be ready to introduce yourself. Please don&#8217;t use so many “mmmmm” and “And and and”. Be confident and don&#8217;t urge. Take your own time to describe yourself. Look straight. You can find more tips here: <a href="http://www.wikihow.com/Prepare-for-a-Job-Interview" target="_blank" rel="noopener noreferrer">How to Prepare for a Job Interview.</a></p>



<h2 class="wp-block-heading"><strong>Now we will concentrate on the technical questions.</strong></h2>



<p>Please note that these questions are asked in my interview experience, you may need to see more questions when you go for your interview.</p>



<p>1. What is the sequence of execution of the ASP.NET page life cycle?</p>



<p>The simple way is to remember SILVER.</p>



<p><em>S (It is not counted)<br>I (Init)<br>L (Load)<br>V (Validate)<br>E (Event)<br>R (Render)</em></p>



<p>Read more <a href="https://msdn.microsoft.com/en-us/library/ms178472(v=vs.85).aspx" target="_blank" rel="noopener noreferrer">here</a>.</p>



<p>2. What is the difference between a Hash Table and a Dictionary?</p>



<p>The main differences are listed below.</p>



<p><strong>Dictionary</strong>:</p>



<p>Returns an error if the key does not exist<br>No boxing and unboxing<br>Faster than a Hash table</p>



<p><strong>Hashtable</strong>:</p>



<p>Returns NULL even if the key does not exist<br>Requires boxing and unboxing<br>Slower than a Dictionary</p>



<p>3. How to use View state?</p>



<script src="https://gist.github.com/SibeeshVenu/34a3c94ddb49657ec034a87a614d25a4.js"></script>



<p>4. What are the state management techniques used in .NET?</p>



<p><strong>Client-side</strong>:</p>



<ul class="wp-block-list"><li>Hidden Field</li><li>View State</li><li>Cookies</li><li>Control State</li><li>Query Strings</li></ul>



<p><strong>Server-side</strong>:</p>



<p><em>Session</em></p>



<ul class="wp-block-list"><li>In Proc mode</li><li>State Server mode</li><li>SQL Server mode</li><li>Custom mode</li></ul>



<p><em>Application</em>.</p>



<p>Read <a href="http://www.codeproject.com/Articles/492397/State-Management-in-ASP-NET-Introduction" target="_blank" rel="noopener noreferrer">here</a>.</p>



<p>5. How can we create a new table in SQL with only the structure?</p>



<p>Here is the query to do that.</p>



<script src="https://gist.github.com/SibeeshVenu/a5cf9edbd0ecc016d0b8d5fb2b09fd66.js"></script>



<p><em>Points to be noted:</em></p>



<p>A is the source table.<br>B is the destination table.<br>The condition 1=2 is to prevent the data from being copyied.</p>



<p>6. How to add a button dynamically to a grid view?</p>



<script src="https://gist.github.com/SibeeshVenu/53e892a522ac31d40bfa7a2fe26dfdd2.js"></script>



<p>7. How to find a control inside a GridView?</p>



<script src="https://gist.github.com/SibeeshVenu/b3993cf9f80c1e6696273813fa16cb04.js"></script>



<p>Here we are finding the control myButton from the 0th row first cell.</p>



<p>8. What are abstract and interface? Provide actual examples.</p>



<p>Please read <a href="http://www.codeproject.com/Questions/43970/Real-world-examples-of-abstract-classes-and-interf" target="_blank" rel="noopener noreferrer">here</a>.</p>



<p>9. What is partial class?</p>



<p>There are the following situations of when splitting a class definition is desirable:<br>To work with large projects.<br>To split the class definitions as we needed with the keyword partial.</p>



<p>10. How to use a partial class?</p>



<script src="https://gist.github.com/SibeeshVenu/5773dd7db2a31c77533f4558f734c2ae.js"></script>



<p>11. How to remove a constraint from a table in SQL Server?</p>



<script src="https://gist.github.com/SibeeshVenu/d23dc61d7cf412cfa6c86cbe840134af.js"></script>



<p>12. How to create Table Variables In T-SQL?</p>



<p>Normally the syntax to create a table variable is the same as to create a table statement.</p>



<script src="https://gist.github.com/SibeeshVenu/8fa72f9b50dc1e8a4121190d54125038.js"></script>



<p>13. How can you delete a duplicate record from a table in SQL?</p>



<p>There are so many ways to do this. Here I am sharing what I use when I get that kind of situation.</p>



<ul class="wp-block-list"><li>I will create a temp table.</li><li>Copy the distinct data from the existing table to the temp table.</li><li>Empty the data in the existing table.</li><li>Insert the data from the temp table to the source table.</li></ul>



<p>Here is the query to do that:</p>



<script src="https://gist.github.com/SibeeshVenu/6d28476a8a74394e60e3d5a021a95ca0.js"></script>



<p>14. When to use an override and new in C#?</p>



<p>We can use override when there is virtual/abstract/override type of method in base class. We can use New when there is no virtual/abstract/override type of method in base class.</p>



<h3 class="wp-block-heading">Conclusion</h3>



<p>Did I miss anything that you may think which is needed? Could you find this post as useful? I hope you liked this article. Please share me your valuable suggestions and feedback.</p>



<h3 class="wp-block-heading">Your turn. What do you think?</h3>



<p>A blog isn’t a blog without comments, but do try to stay on topic. If you have a question unrelated to this post, you’re better off posting it on C# Corner, Code Project, Stack Overflow, Asp.Net Forum instead of commenting here. Tweet or email me a link to your question there and I’ll definitely try to help if I can.</p>



<p>Kindest Regards<br>Sibeesh Venu</p>
]]></content:encoded>
					
					<wfw:commentRss>https://mail.sibeeshpassion.com/dot-net-interview-questions-for-experienced-and-fresher/feed/</wfw:commentRss>
			<slash:comments>27</slash:comments>
		
		
			</item>
	</channel>
</rss>
