<?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: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-1609588823802027374</id><updated>2011-11-28T05:53:38.316+05:30</updated><category term='C++'/><category term='C#'/><category term='C# Interview QA'/><category term='C Aptitude Questions and Answers'/><category term='Interview Question and Answer'/><category term='VB.Net'/><category term='ASP.Net Interview Question'/><category term='ASP.Net'/><category term='Student Online Help'/><category term='JAVA'/><category term='Dot Net'/><category term='.Net'/><title type='text'>Student Online Help</title><subtitle type='html'>Student Online Help</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-483216850037497202</id><published>2009-02-20T16:32:00.001+05:30</published><updated>2009-02-20T16:37:44.881+05:30</updated><title type='text'>Select Data between two DataBases.</title><content type='html'>&lt;b&gt;select * from [myDatabase].[dbo].[table1]&lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-483216850037497202?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/483216850037497202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=483216850037497202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/483216850037497202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/483216850037497202'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2009/02/select-data-between-two-databases.html' title='Select Data between two DataBases.'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-851218476493138898</id><published>2008-08-02T19:57:00.001+05:30</published><updated>2008-08-02T19:58:27.690+05:30</updated><title type='text'>KEYBOARD SHORTCUTS</title><content type='html'>* KEYBOARD SHORTCUTS &lt;br /&gt;* SHIFT+DELETE (Delete the selected item permanently without placing the item in the Recycle Bin)&lt;br /&gt;* CTRL while dragging an item (Copy the selected item)&lt;br /&gt;* CTRL+SHIFT while dragging an item (Create a shortcut to the selected item)&lt;br /&gt;* F2 key (Rename the selected item)&lt;br /&gt;* CTRL+RIGHT ARROW (Move the insertion point to the beginning of the next word)&lt;br /&gt;* CTRL+LEFT ARROW (Move the insertion point to the beginning of the previous word)&lt;br /&gt;* CTRL+DOWN ARROW (Move the insertion point to the beginning of the next paragraph)&lt;br /&gt;* CTRL+UP ARROW (Move the insertion point to the beginning of the previous paragraph)&lt;br /&gt;* CTRL+SHIFT with any of the arrow keys (Highlight a block of text)&lt;br /&gt;* SHIFT with any of the arrow keys (Select more than one item in a window or on the desktop, or select text in a document)&lt;br /&gt;*&lt;br /&gt;* F3 key (Search for a file or a folder)&lt;br /&gt;* ALT+ENTER (View the properties for the selected item)&lt;br /&gt;* ALT+F4 (Close the active item, or quit the active program)&lt;br /&gt;* ALT+ENTER (Display the properties of the selected object)&lt;br /&gt;* ALT+SPACEBAR (Open the shortcut menu for the active window)&lt;br /&gt;* CTRL+F4 (Close the active document in programs that enable you to have multiple documents open simultaneously)&lt;br /&gt;*&lt;br /&gt;* ALT+ESC (Cycle through items in the order that they had been opened)&lt;br /&gt;* F6 key (Cycle through the screen elements in a window or on the desktop)&lt;br /&gt;* F4 key (Display the Address bar list in My Computer or Windows Explorer)&lt;br /&gt;* SHIFT+F10 (Display the shortcut menu for the selected item)&lt;br /&gt;* ALT+SPACEBAR (Display the System menu for the active window)&lt;br /&gt;* CTRL+ESC (Display the Start menu)&lt;br /&gt;* ALT+Underlined letter in a menu name (Display the corresponding menu)&lt;br /&gt;Underlined letter in a command name on an open menu (Perform the corresponding command)&lt;br /&gt;* F10 key (Activate the menu bar in the active program)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-851218476493138898?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/851218476493138898/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=851218476493138898' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/851218476493138898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/851218476493138898'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/08/keyboard-shortcuts.html' title='KEYBOARD SHORTCUTS'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-4299693140296287985</id><published>2008-08-01T15:28:00.004+05:30</published><updated>2008-08-02T19:53:05.692+05:30</updated><title type='text'>Asp.net 2.0 Interview Part-3</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Which method do you invoke on the DataAdapter control to load your generated dataset with data? &lt;br /&gt;&lt;/span&gt;System.Data.Common.DataAdapter.Fill(System.Data.DataSet); &lt;br /&gt;If my DataAdapter is sqlDataAdapter and my DataSet is dsUsers then it is called this way: &lt;br /&gt;sqlDataAdapter.Fill(dsUsers);&lt;br /&gt;Which template must you provide, in order to display data in a Repeater control? &lt;br /&gt;ItemTemplate &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How can you provide an alternating color scheme in a Repeater control? &lt;/span&gt;&lt;br /&gt;AlternatingItemTemplate Like the ItemTemplate element, but rendered for every other row (alternating items) in the Repeater control. You can specify a different appearance for the AlternatingItemTemplate element by setting its style properties. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control? &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;You must set the DataMember property which Gets or sets the specific table in the DataSource to bind to the control and the DataBind method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What base class do all Web Forms inherit from? &lt;/span&gt;&lt;br /&gt;System.Web.UI.Page &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What method do you use to explicitly kill a user’s session? &lt;/span&gt;&lt;br /&gt;The Abandon method destroys all the objects stored in a Session object and releases their resources.&lt;br /&gt;If you do not call the Abandon method explicitly, the server destroys these objects when the session times out. &lt;br /&gt;Syntax: Session.Abandon &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How do you turn off cookies for one page in your site? &lt;/span&gt;&lt;br /&gt;Use the Cookie.Discard Property which Gets or sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the user’s hard disk when a session ends. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Which two properties are on every validation control? &lt;/span&gt;&lt;br /&gt;ControlToValidate &amp; ErrorMessage properties &lt;br /&gt;How do you create a permanent cookie? &lt;br /&gt;Setting the Expires property to MinValue means that the Cookie never expires. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Which method do you use to redirect the user to another page without performing a round trip to the client? &lt;br /&gt;&lt;/span&gt;Server.transfer()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-4299693140296287985?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/4299693140296287985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=4299693140296287985' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/4299693140296287985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/4299693140296287985'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/08/aspnet-20-interview-part-3.html' title='Asp.net 2.0 Interview Part-3'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-3878300617985145381</id><published>2008-08-01T15:28:00.002+05:30</published><updated>2008-08-01T15:29:56.387+05:30</updated><title type='text'>Asp.net 2.0 Interview Part-2</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Which method do you invoke on the DataAdapter control to load your generated dataset with data? &lt;br /&gt;&lt;/span&gt;System.Data.Common.DataAdapter.Fill(System.Data.DataSet); &lt;br /&gt;If my DataAdapter is sqlDataAdapter and my DataSet is dsUsers then it is called this way: &lt;br /&gt;sqlDataAdapter.Fill(dsUsers);&lt;br /&gt;Which template must you provide, in order to display data in a Repeater control? &lt;br /&gt;ItemTemplate &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How can you provide an alternating color scheme in a Repeater control? &lt;/span&gt;&lt;br /&gt;AlternatingItemTemplate Like the ItemTemplate element, but rendered for every other row (alternating items) in the Repeater control. You can specify a different appearance for the AlternatingItemTemplate element by setting its style properties. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control? &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;You must set the DataMember property which Gets or sets the specific table in the DataSource to bind to the control and the DataBind method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What base class do all Web Forms inherit from? &lt;/span&gt;&lt;br /&gt;System.Web.UI.Page &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What method do you use to explicitly kill a user’s session? &lt;/span&gt;&lt;br /&gt;The Abandon method destroys all the objects stored in a Session object and releases their resources.&lt;br /&gt;If you do not call the Abandon method explicitly, the server destroys these objects when the session times out. &lt;br /&gt;Syntax: Session.Abandon &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How do you turn off cookies for one page in your site? &lt;/span&gt;&lt;br /&gt;Use the Cookie.Discard Property which Gets or sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the user’s hard disk when a session ends. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Which two properties are on every validation control? &lt;/span&gt;&lt;br /&gt;ControlToValidate &amp; ErrorMessage properties &lt;br /&gt;How do you create a permanent cookie? &lt;br /&gt;Setting the Expires property to MinValue means that the Cookie never expires. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Which method do you use to redirect the user to another page without performing a round trip to the client? &lt;br /&gt;&lt;/span&gt;Server.transfer()&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-3878300617985145381?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/3878300617985145381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=3878300617985145381' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/3878300617985145381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/3878300617985145381'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/08/aspnet-20-interview-part-2.html' title='Asp.net 2.0 Interview Part-2'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-5505705964746523975</id><published>2008-08-01T15:21:00.005+05:30</published><updated>2008-08-01T15:28:24.975+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net Interview Question'/><category scheme='http://www.blogger.com/atom/ns#' term='VB.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question and Answer'/><category scheme='http://www.blogger.com/atom/ns#' term='Dot Net'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net'/><category scheme='http://www.blogger.com/atom/ns#' term='Student Online Help'/><category scheme='http://www.blogger.com/atom/ns#' term='.Net'/><title type='text'>Asp.net 2.0 Interview Part-1</title><content type='html'>&lt;span style="font-weight:bold;"&gt;How many languages .NET is supporting now?&lt;/span&gt;&lt;br /&gt;When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. 44 languages are supported. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How is .NET able to support multiple languages? &lt;/span&gt;&lt;br /&gt;A language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language. &lt;br /&gt;How ASP .NET different from ASP? &lt;br /&gt;Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is smart navigation? &lt;/span&gt;&lt;br /&gt;The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is view state? &lt;/span&gt;&lt;br /&gt;The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How do you validate the controls in an ASP .NET page? &lt;/span&gt;&lt;br /&gt;Using special validation controls that are meant for this. We have Range Validator, Email Validator. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Can the validation be done in the server side? Or this can be done only in the Client side?&lt;/span&gt; &lt;br /&gt;Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How to manage pagination in a page? &lt;/span&gt;&lt;br /&gt;Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is ADO .NET and what is difference between ADO and ADO.NET? &lt;/span&gt;&lt;br /&gt;ADO.NET is stateless mechanism. I can treat the ADO.Net as a separate in-memory database where in I can use relationships between the tables and select insert and updates to the database. I can update the actual database as a batch.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Explain the differences between Server-side and Client-side code?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Server side scripting means that all the script will be executed by the server and interpreted as needed. ASP doesn’t have some of the functionality like sockets, uploading, etc. For these you have to make a custom components usually in VB or VC++. Client side scripting means that the script will be executed immediately in the browser such as form field validation, clock, email validation, etc. Client side scripting is usually done in VBScript or JavaScript. Download time, browser compatibility, and visible code - since JavaScript and VBScript code is included in the HTML page, then anyone can see the code by viewing the page source. Also a possible security hazards for the client computer. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What type of code (server or client) is found in a Code-Behind class? &lt;/span&gt;&lt;br /&gt;C# &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Should validation (did the user enter a real date) occur server-side or client-side? &lt;/span&gt;Why? &lt;br /&gt;Client-side validation because there is no need to request a server side date when you could obtain a date from the client machine. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What does the "EnableViewState" property do? Why would I want it on or off? &lt;/span&gt;&lt;br /&gt;Enable ViewState turns on the automatic state management feature that enables server controls to re-populate their values on a round trip without requiring you to write any code. This feature is not free however, since the state of a control is passed to and from the server in a hidden form field. You should be aware of when ViewState is helping you and when it is not. For example, if you are binding a control to data on every round trip (as in the datagrid example in tip #4), then you do not need the control to maintain it’s view state, since you will wipe out any re-populated data in any case. ViewState is enabled for all server controls by default. To disable it, set the EnableViewState property of the control to false. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is the difference between Server.Transfer and Response.Redirect? &lt;/span&gt;&lt;br /&gt;Why would I choose one over the other? Server.Transfer() : client is shown as it is on the requesting page only, but the all the content is of the requested page. Data can be persist across the pages using Context.Item collection, which is one of the best way to transfer data from one page to another keeping the page state alive. Response.Dedirect() :client know the physical location (page name and query string as well). Context.Items loses the persistence when navigate to destination page. In earlier versions of IIS, if we wanted to send a user to a new Web page, the only option we had was Response.Redirect. While this method does accomplish our goal, it has several important drawbacks. The biggest problem is that this method causes each page to be treated as a separate transaction. Besides making it difficult to maintain your transactional integrity, Response.Redirect introduces some additional headaches. First, it prevents good encapsulation of code. Second, you lose access to all of the properties in the Request object. Sure, there are workarounds, but they’re difficult. Finally, Response.Redirect necessitates a round trip to the client, which, on high-volume sites, causes scalability problems. As you might suspect, Server.Transfer fixes all of these problems. It does this by performing the transfer on the server without requiring a roundtrip to the client. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component? &lt;br /&gt;&lt;/span&gt;When to Use Web Services:&lt;br /&gt;* Communicating through a Firewall When building a distributed application with 100s/1000s of users spread over multiple locations, there is always the problem of communicating between client and server because of firewalls and proxy servers. Exposing your middle tier components as Web Services and invoking the directly from a Windows UI is a very valid option.&lt;br /&gt;&lt;br /&gt;* Application Integration When integrating applications written in various languages and running on disparate systems. Or even applications running on the same platform that have been written by separate vendors.&lt;br /&gt;&lt;br /&gt;* Business-to-Business Integration This is an enabler for B2B integration which allows one to expose vital business processes to authorized supplier and customers. An example would be exposing electronic ordering and invoicing, allowing customers to send you purchase orders and suppliers to send you invoices electronically.&lt;br /&gt;&lt;br /&gt;* Software Reuse This takes place at multiple levels. Code Reuse at the Source code level or binary component-based reuse. The limiting factor here is that you can reuse the code but not the data behind it. Webservice overcome this limitation. A scenario could be when you are building an app that aggregates the functionality of several other Applications. Each of these functions could be performed by individual apps, but there is value in perhaps combining the multiple apps to present a unified view in a Portal or Intranet.&lt;br /&gt;&lt;br /&gt;* When not to use Web Services: Single machine Applications When the apps are running on the same machine and need to communicate with each other use a native API. You also have the options of using component technologies such as COM or .NET Components as there is very little overhead.&lt;br /&gt;&lt;br /&gt;* Homogeneous Applications on a LAN If you have Win32 or Winforms apps that want to communicate to their server counterpart. It is much more efficient to use DCOM in the case of Win32 apps and .NET Remoting in the case of .NET Apps.&lt;br /&gt;Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?&lt;br /&gt;In ADO, the in-memory representation of data is the RecordSet. In ADO.NET, it is the dataset. There are important differences between them.&lt;br /&gt;&lt;br /&gt;* A RecordSet looks like a single table. If a recordset is to contain data from multiple database tables, it must use a JOIN query, which assembles the data from the various database tables into a single result table. In contrast, a dataset is a collection of one or more tables. The tables within a dataset are called data tables; specifically, they are DataTable objects. If a dataset contains data from multiple database tables, it will typically contain multiple DataTable objects. That is, each DataTable object typically corresponds to a single database table or view. In this way, a dataset can mimic the structure of the underlying database. A dataset usually also contains relationships. A relationship within a dataset is analogous to a foreign-key relationship in a database —that is, it associates rows of the tables with each other. For example, if a dataset contains a table about investors and another table about each investor’s stock purchases, it could also contain a relationship connecting each row of the investor table with the corresponding rows of the purchase table. Because the dataset can hold multiple, separate tables and maintain information about relationships between them, it can hold much richer data structures than a recordset, including self-relating tables and tables with many-to-many relationships.&lt;br /&gt;&lt;br /&gt;* In ADO you scan sequentially through the rows of the recordset using the ADO MoveNext method. In ADO.NET, rows are represented as collections, so you can loop through a table as you would through any collection, or access particular rows via ordinal or primary key index. DataRelation objects maintain information about master and detail records and provide a method that allows you to get records related to the one you are working with. For example, starting from the row of the Investor table for "Nate Sun," you can navigate to the set of rows of the Purchase table describing his purchases. A cursor is a database element that controls record navigation, the ability to update data, and the visibility of changes made to the database by other users. ADO.NET does not have an inherent cursor object, but instead includes data classes that provide the functionality of a traditional cursor. For example, the functionality of a forward-only, read-only cursor is available in the ADO.NET DataReader object. For more information about cursor functionality, see Data Access Technologies.&lt;br /&gt;&lt;br /&gt;* Minimized Open Connections: In ADO.NET you open connections only long enough to perform a database operation, such as a Select or Update. You can read rows into a dataset and then work with them without staying connected to the data source. In ADO the recordset can provide disconnected access, but ADO is designed primarily for connected access. There is one significant difference between disconnected processing in ADO and ADO.NET. In ADO you communicate with the database by making calls to an OLE DB provider. In ADO.NET you communicate with the database through a data adapter (an OleDbDataAdapter, SqlDataAdapter, OdbcDataAdapter, or OracleDataAdapter object), which makes calls to an OLE DB provider or the APIs provided by the underlying data source. The important difference is that in ADO.NET the data adapter allows you to control how the changes to the dataset are transmitted to the database — by optimizing for performance, performing data validation checks, or adding any other extra processing. Data adapters, data connections, data commands, and data readers are the components that make up a .NET Framework data provider. Microsoft and third-party providers can make available other .NET Framework data providers that can be integrated into Visual Studio.&lt;br /&gt;&lt;br /&gt;* Sharing Data Between Applications. Transmitting an ADO.NET dataset between applications is much easier than transmitting an ADO disconnected recordset. To transmit an ADO disconnected recordset from one component to another, you use COM marshalling. To transmit data in ADO.NET, you use a dataset, which can transmit an XML stream.&lt;br /&gt;&lt;br /&gt;* Richer data types.COM marshalling provides a limited set of data types — those defined by the COM standard. Because the transmission of datasets in ADO.NET is based on an XML format, there is no restriction on data types. Thus, the components sharing the dataset can use whatever rich set of data types they would ordinarily use.&lt;br /&gt;&lt;br /&gt;* Performance. Transmitting a large ADO recordset or a large ADO.NET dataset can consume network resources; as the amount of data grows, the stress placed on the network also rises. Both ADO and ADO.NET let you minimize which data is transmitted. But ADO.NET offers another performance advantage, in that ADO.NET does not require data-type conversions. ADO, which requires COM marshalling to transmit records sets among components, does require that ADO data types be converted to COM data types.&lt;br /&gt;&lt;br /&gt;* Penetrating Firewalls.A firewall can interfere with two components trying to transmit disconnected ADO recordsets. Remember, firewalls are typically configured to allow HTML text to pass, but to prevent system-level requests (such as COM marshalling) from passing.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Can you give an example of what might be best suited to place in the &lt;br /&gt;Application_Start and Session_Start subroutines?&lt;br /&gt;&lt;/span&gt;The Application_Start event is guaranteed to occur only once throughout the lifetime of the application. It’s a good place to initialize global variables. For example, you might want to retrieve a list of products from a database table and place the list in application state or the Cache object. SessionStateModule exposes both Session_Start and Session_End events. &lt;br /&gt;&lt;br /&gt;If I’m developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users? &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What are ASP.NET Web Forms? How is this technology different than what is available though ASP? &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Web Forms are the heart and soul of ASP.NET. Web Forms are the User Interface (UI) elements that give your Web applications their look and feel. Web Forms are similar to Windows Forms in that they provide properties, methods, and events for the controls that are placed onto them. However, these UI elements render themselves in the appropriate markup language required by the request, e.g. HTML. If you use Microsoft Visual Studio .NET, you will also get the familiar drag-and-drop interface used to create your UI for your Web application. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How does VB.NET/C# achieve polymorphism? &lt;/span&gt;&lt;br /&gt;By using Abstract classes/functions.&lt;br /&gt;Can you explain what inheritance is and an example of when you might use it? &lt;br /&gt;Inheritance is a fundamental feature of an object oriented system and it is simply the ability to inherit data and functionality from a parent object. Rather than developing new objects from scratch, new code can be based on the work of other programmers, adding only new features that are needed. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How would you implement inheritance using VB.NET/C#? &lt;/span&gt;&lt;br /&gt;When we set out to implement a class using inheritance, we must first start with an existing class from which we will derive our new subclass. This existing class, or base class, may be part of the .NET system class library framework, it may be part of some other application or .NET assembly, or we may create it as part of our existing application. Once we have a base class, we can then implement one or more subclasses based on that base class. Each of our subclasses will automatically have all of the methods, properties, and events of that base class ? including the implementation behind each method, property, and event. Our subclass can add new methods, properties, and events of its own - extending the original interface with new functionality. Additionally, a subclass can replace the methods and properties of the base class with its own new implementation - effectively overriding the original behavior and replacing it with new behaviors. Essentially inheritance is a way of merging functionality from an existing class into our new subclass. Inheritance also defines rules for how these methods, properties, and events can be merged. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What's an assembly? &lt;/span&gt;&lt;br /&gt;Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. To the runtime, a type does not exist outside the context of an assembly. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Describe the difference between inline and code behind - which is best in a loosely coupled solution? &lt;br /&gt;&lt;/span&gt;ASP.NET supports two modes of page development: Page logic code that is written inside &lt;script runat=server&gt; blocks within an .aspx file and dynamically compiled the first time the page is requested on the server. Page logic code that is written within an external class that is compiled prior to deployment on a server and linked "behind" the .aspx file at run time. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Explain what a diffgram is, and a good use for one? &lt;/span&gt;&lt;br /&gt;A DiffGram is an XML format that is used to identify current and original versions of data elements. The DataSet uses the DiffGram format to load and persist its contents, and to serialize its contents for transport across a network connection. When a DataSet is written as a DiffGram, it populates the DiffGram with all the necessary information to accurately recreate the contents, though not the schema, of the DataSet, including column values from both the Original and Current row versions, row error information, and row order. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Where would you use an iHTTPModule, and what are the limitations of anyapproach you might take in implementing one? &lt;br /&gt;&lt;/span&gt;One of ASP.NET’s most useful features is the extensibility of the HTTP pipeline, the path that data takes between client and server. You can use them to extend your ASP.NET applications by adding pre- and post-processing to each HTTP request coming into your application. For example, if you wanted custom authentication facilities for your application, the best technique would be to intercept the request when it comes in and process the request in a custom HTTP module. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In what order do the events of an ASPX page execute. As a developer is it important to understand these events? &lt;br /&gt;&lt;/span&gt;Every Page object (which your .aspx page is) has nine events, most of which you will not have to worry about in your day to day dealings with ASP.NET. The three that you will deal with the most are: Page_Init, Page_Load, Page_PreRender. &lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-5505705964746523975?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/5505705964746523975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=5505705964746523975' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/5505705964746523975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/5505705964746523975'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/08/aspnet-20-interview-part-1.html' title='Asp.net 2.0 Interview Part-1'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-6795860170342438132</id><published>2008-07-19T09:39:00.005+05:30</published><updated>2009-02-20T16:38:37.221+05:30</updated><title type='text'>.Net Framework 3.0, WPF, WCF, WF, XAML Interview FAQ</title><content type='html'>&lt;span style="font-weight:bold;"&gt;What is .Net Framework 3.0?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Microsoft .NET Framework 3.0 (formerly WinFX), is the new managed code programming model for Windows.&lt;br /&gt;&lt;br /&gt;It combines the power of the .NET Framework 2.0 with four new technologies: Windows Presentation Foundation (WPF), Windows Communication Foundation (WCF), Windows Workflow Foundation (WF), and Windows CardSpace (WCS, formerly "InfoCard").&lt;br /&gt;&lt;br /&gt;Use the .NET Framework 3.0 today to build applications that have visually compelling user experiences, seamless communication across technology boundaries, the ability to support a wide range of business processes, and an easier way to manage your personal information online. Now the same great WinFX technology you know and love has a new name that identifies it for exactly what it is – the next version of Microsoft’s development framework. This change does not affect the release schedule of the .NET Framework 3.0 or the technologies included as a part of the package.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Why is the .NET Framework 3.0 a major version number of the .NET Framework if it uses the .NET Framework 2.0 runtime and compiler?&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The new technologies delivered in the .NET Framework 3.0, including WCF, WF, WPF, and CardSpace, offer tremendous functionality and innovation, and we wanted to signal that with a major release number.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Which version of the Common Language Runtime (CLR) does the .NET Framework 3.0 use?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The .NET Framework 3.0 uses the 2.0 version of the CLR. With this release, the overall developer platform version has been decoupled from the core CLR engine version. We expect the lower level components of the .NET Framework such as the engine to change less than higher level APIs, and this decoupling helps retain customers' investments in the technology.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Will the name change be reflected in any of the existing .NET Framework 2.0 APIs, assemblies, or namespaces?&lt;br /&gt;&lt;/span&gt;There will be no changes to any of the existing .NET Framework 2.0 APIs, assemblies, or namespaces. The applications that you've built on .NET Framework 2.0 will continue to run on the .NET Framework 3.0 just as they have before.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How does the .NET Framework 3.0 relate to the .NET Framework 2.0?&lt;br /&gt;The .NET Framework 3.0 is an additive release to the .NET Framework 2.0. The .NET Framework 3.0 adds four new technologies to the .NET Framework 2.0: Windows Presentation Foundation (WPF), Windows Workflow Foundation (WF), Windows Communication Foundation (WCF), and Windows CardSpace. There are no changes to the version of the .NET Framework 2.0 components included in the .NET Framework 3.0. This means that the millions of developers who use .NET today can use the skills they already have to start building .NET Framework 3.0 applications. It also means that applications that run on the .NET Framework 2.0 today will continue to run on the .NET Framework 3.0.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What happens to the WinFX technologies?&lt;br /&gt;The WinFX technologies will now be released under the name .NET Framework 3.0. There are no changes to the WinFX technologies or ship schedule — the same technologies you're familiar with now simply have a new name.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is the .NET Framework 3.0 (formerly WinFX)?&lt;br /&gt;The .NET Framework 3.0 is Microsoft's managed code programming model. It is a superset of the .NET Framework 2.0, combining .NET Framework 2.0 components with new technologies for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes. In addition to the .NET Framework 2.0, it includes Windows Presentation Foundation (WPF), Windows Workflow Foundation (WF), Windows Communication Foundation (WCF), and Windows CardSpace.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;System Requirements for Installing .NET Framework 3.0&lt;br /&gt;Processor&lt;br /&gt;Minimum: 400 megahertz (MHz) Pentium processor&lt;br /&gt;Recommended: 1 gigahertz (GHz) Pentium processor&lt;br /&gt;&lt;br /&gt;Operating System&lt;br /&gt;.NET Framework 3.0 can be installed on any of the following systems:&lt;br /&gt;Microsoft Windows 2003 Server Service Pack 1 (SP1)&lt;br /&gt;Windows XP SP2&lt;br /&gt;Windows Vista *&lt;br /&gt;&lt;br /&gt;*Windows Vista comes with .NET Framework 3.0. There is no separate installation package required. The standalone .NET Framework 3.0 packages are not supported on Vista.&lt;br /&gt;&lt;br /&gt;RAM&lt;br /&gt;Minimum: 96 megabytes (MB)&lt;br /&gt;Recommended:256 MB&lt;br /&gt;&lt;br /&gt;Hard Disk&lt;br /&gt;Up to 500 MB of available space may be required.&lt;br /&gt;CD or DVD Drive Not required.&lt;br /&gt;&lt;br /&gt;Display Minimum: 800 x 600, 256 colors&lt;br /&gt;Recommended:1024 x 768 high color, 32-bit&lt;br /&gt;&lt;br /&gt;Mouse Not required&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What Improvements does WCF offers over its earlier counterparts?&lt;br /&gt;A lot of communication approaches exist in the .NET Framework 2.0 such as ASP.NET Web Services, .NET Remoting, System.Messaging supporting queued messaging through MSMQ, Web Services Enhancements (WSE) - an extension to ASP.NET Web Services that supports WS-Security etc. However, instead of requiring developers to use a different technology with a different application programming interface for each kind of communication, WCF provides a common approach and API.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What are WCF features and what communication problems it solves?&lt;br /&gt;WCF provides strong support for interoperable communication through SOAP. This includes support for several specifications, including WS-Security, WS-ReliableMessaging, and WS-AtomicTransaction. WCF doesn't itself require SOAP, so other approaches can also be used, including optimized binary protocol and queued messaging using MSMQ. WCF also takes an explicit service-oriented approach to communication, and loosens some of the tight couplings that can exist in distributed object systems, making interaction less error-prone and easier to change. Thus, WCF addresses a range of communication problems for applications. Three of its most important aspects that clearly stand out are:&lt;br /&gt;&lt;br /&gt;Unification of Microsoft's communication technologies.&lt;br /&gt;Support for cross-vendor interoperability, including reliability, security, and transactions.&lt;br /&gt;Rich support for service orientation development.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What contemporary computing problems WCS solves?&lt;br /&gt;WCS provides an entirely new approach to managing digital identities. It helps people keep track of their digital identities as distinct information cards. If a Web site accepts WCS logins, users attempting to log in to that site will see a WCS selection. By choosing a card, users also choose a digital identity that will be used to access this site. Rather than remembering a plethora of usernames and passwords, users need only recognize the card they wish to use. The identities represented by these cards are created by one or more identity providers. These identities will typically use stronger cryptographic mechanisms to allow users to prove their identity. With this provider, users can create their own identities that don't rely on passwords for authentication.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What contemporary computing problems WPF solves?&lt;br /&gt;User interfaces needs to display video, run animations, use 2/3D graphics, and work with different document formats. So far, all of these aspects of the user interface have been provided in different ways on Windows. For example, a developer needs to use Windows Forms to build a Windows GUI, or HTML/ASPX/Applets/JavaScript etc. to build a web interface, Windows Media Player or software such as Adobe's Flash Player for displaying video etc. The challenge for developers is to build a coherent user interface for different kinds of clients using diverse technologies isn't a simple job.&lt;br /&gt;&lt;br /&gt;A primary goal of WPF is to address this challenge! By offering a consistent platform for these entire user interface aspects, WPF makes life simpler for developers. By providing a common foundation for desktop clients and browser clients, WPF makes it easier to build applications.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is XAML ?&lt;br /&gt;WPF relies on the eXtensible Application Markup Language (XAML). An XML-based language, XAML allows specifying a user interface declaratively rather than in code. This makes it much easier for user interface design tools like MS Expression Blend to generate and work with an interface specification based on the visual representation created by a designer. Designers will be able to use such tools to create the look of an interface and then have a XAML definition of that interface generated for them. The developer imports this definition into Visual Studio, then creates the logic the interface requires.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is XBAP?&lt;br /&gt;XAML browser application (XBAP) can be used to create a remote client that runs inside a Web browser. Built on the same foundation as a stand-alone WPF application, an XBAP allows presenting the same style of user interface within a downloadable browser application. The best part is that the same code can potentially be used for both kinds of applications, which means that developers no longer need different skill sets for desktop and browser clients. The downloaded XBAP from the Internet runs in a secure sandbox (like Java applets), and thus it limits what the downloaded application can do.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is a service contract ( In WCF) ?&lt;br /&gt;In every service oriented architecture, services share schemas and contracts, not classes and types. What this means is that you don't share class definitions neither any implementation details about your service to consumers.&lt;br /&gt;&lt;br /&gt;Everything your consumer has to know is your service interface, and how to talk to it. In order to know this, both parts (service and consumer) have to share something that is called a Contract.&lt;br /&gt;&lt;br /&gt;In WCF, there are 3 kinds of contracts: Service Contract, Data Contract and Message Contract.&lt;br /&gt;&lt;br /&gt;A Service Contract describes what the service can do. It defines some properties about the service, and a set of actions called Operation Contracts. Operation Contracts are equivalent to web methods in ASMX technology&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In terms of WCF, What is a message?&lt;br /&gt;A message is a self-contained unit of data that may consist of several parts, including a body and headers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In terms of WCF, What is a service?&lt;br /&gt;A service is a construct that exposes one or more endpoints, with each endpoint exposing one or more service operations.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In terms of WCF, What is an endpoint?&lt;br /&gt;An endpoint is a construct at which messages are sent or received (or both). It comprises a location (an address) that defines where messages can be sent, a specification of the communication mechanism (a binding) that described how messages should be sent, and a definition for a set of messages that can be sent or received (or both) at that location (a service contract) that describes what message can be sent.&lt;br /&gt;&lt;br /&gt;An WCF service is exposed to the world as a collection of endpoints.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In terms of WCF, What is an application endpoint?&lt;br /&gt;An endpoint exposed by the application and that corresponds to a service contract implemented by the application.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In terms of WCF, What is an infrastructure endpoint?&lt;br /&gt;An endpoint that is exposed by the infrastructure to facilitate functionality that is needed or provided by the service that does not relate to a service contract. For example, a service might have an infrastructure endpoint that provides metadata information.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In terms of WCF, What is an address?&lt;br /&gt;An address specifies the location where messages are received. It is specified as a Uniform Resource Identifier (URI). The schema part of the URI names the transport mechanism to be used to reach the address, such as "HTTP" and "TCP", and the hierarchical part of the URI contains a unique location whose format is dependent on the transport mechanism.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In terms of WCF, What is binding?&lt;br /&gt;A binding defines how an endpoint communicates to the world. It is constructed of a set of components called binding elements that "stack" one on top of the other to create the communication infrastructure. At the very least, a binding defines the transport (such as HTTP or TCP) and the encoding being used (such as text or binary). A binding can contain binding elements that specify details like the security mechanisms used to secure messages, or the message pattern used by an endpoint.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is an operation contract?&lt;br /&gt;An operation contract defines the parameters and return type of an operation. When creating an interface that defines the service contract, you signify an operation contract by applying the OperationContractAttribute attribute to each method definition that is part of the contract. The operations can be modeled as taking a single message and returning a single message, or as taking a set of types and returning a type. In the latter case, the system will determine the format for the messages that need to be exchanged for that operation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is a message contract?&lt;br /&gt;A message contact describes the format of a message. For example, it declares whether message elements should go in headers versus the body, what level of security should be applied to what elements of the message, and so on.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is a fault contract?&lt;br /&gt;A fault contract can be associated with a service operation to denote errors that can be returned to the caller. An operation can have zero or more faults associated with it. These errors are SOAP faults that are modeled as exceptions in the programming model.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Terms of WCF, what do you understand by metadata of a service&lt;br /&gt;The metadata of a service describes the characteristics of the service that an external entity needs to understand to communicate with the service. Metadata can be consumed by the Service Model Metadata Utility Tool ( Svcutil.exe) to generate a WCF client and accompanying configuration that a client application can use to interact with the service.&lt;br /&gt;&lt;br /&gt;The metadata exposed by the service includes XML schema documents, which define the data contract of the service, and WSDL documents, which describe the methods of the service.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What is password fatigue?&lt;br /&gt;As the use of internet increases, as increases the danger of online identity theft, fraud, and privacy. Users must track a growing number of accounts and passwords. This burden results in "password fatigue," and that results in less secure practices, such as reusing the same account names and passwords at many sites.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What are activities in WWF?&lt;br /&gt;Activities are the elemental unit of a workflow. They are added to a workflow programmatically in a manner similar to adding XML DOM child nodes to a root node. When all the activities in a given flow path are finished running, the workflow instance is completed.&lt;br /&gt;&lt;br /&gt;An activity can perform a single action, such as writing a value to a database, or it can be a composite activity and consist of a set of activities. Activities have two types of behavior: runtime and design time. The runtime behavior specifies the actions upon execution. The design time behavior controls the appearance of the activity and its interaction while being displayed within the designer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-6795860170342438132?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/6795860170342438132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=6795860170342438132' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/6795860170342438132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/6795860170342438132'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/07/net-framework-30-wpf-wcf-wf-xaml_19.html' title='.Net Framework 3.0, WPF, WCF, WF, XAML Interview FAQ'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-6246740202512960788</id><published>2008-07-19T09:39:00.004+05:30</published><updated>2008-07-19T09:45:28.294+05:30</updated><title type='text'>.Net Framework 3.0, WPF, WCF, WF, XAML Interview FAQ</title><content type='html'>&lt;span style="font-weight:bold;"&gt;What is .Net Framework 3.0?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The Microsoft .NET Framework 3.0 (formerly WinFX), is the new managed code programming model for Windows.&lt;br /&gt;&lt;br /&gt;It combines the power of the .NET Framework 2.0 with four new technologies: Windows Presentation Foundation (WPF), Windows Communication Foundation (WCF), Windows Workflow Foundation (WF), and Windows CardSpace (WCS, formerly "InfoCard").&lt;br /&gt;&lt;br /&gt;Use the .NET Framework 3.0 today to build applications that have visually compelling user experiences, seamless communication across technology boundaries, the ability to support a wide range of business processes, and an easier way to manage your personal information online. Now the same great WinFX technology you know and love has a new name that identifies it for exactly what it is – the next version of Microsoft’s development framework. This change does not affect the release schedule of the .NET Framework 3.0 or the technologies included as a part of the package.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Why is the .NET Framework 3.0 a major version number of the .NET Framework if it uses the .NET Framework 2.0 runtime and compiler?&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;The new technologies delivered in the .NET Framework 3.0, including WCF, WF, WPF, and CardSpace, offer tremendous functionality and innovation, and we wanted to signal that with a major release number.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Which version of the Common Language Runtime (CLR) does the .NET Framework 3.0 use?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The .NET Framework 3.0 uses the 2.0 version of the CLR. With this release, the overall developer platform version has been decoupled from the core CLR engine version. We expect the lower level components of the .NET Framework such as the engine to change less than higher level APIs, and this decoupling helps retain customers' investments in the technology.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Will the name change be reflected in any of the existing .NET Framework 2.0 APIs, assemblies, or namespaces?&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;There will be no changes to any of the existing .NET Framework 2.0 APIs, assemblies, or namespaces. The applications that you've built on .NET Framework 2.0 will continue to run on the .NET Framework 3.0 just as they have before.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;How does the .NET Framework 3.0 relate to the .NET Framework 2.0?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The .NET Framework 3.0 is an additive release to the .NET Framework 2.0. The .NET Framework 3.0 adds four new technologies to the .NET Framework 2.0: Windows Presentation Foundation (WPF), Windows Workflow Foundation (WF), Windows Communication Foundation (WCF), and Windows CardSpace. There are no changes to the version of the .NET Framework 2.0 components included in the .NET Framework 3.0. This means that the millions of developers who use .NET today can use the skills they already have to start building .NET Framework 3.0 applications. It also means that applications that run on the .NET Framework 2.0 today will continue to run on the .NET Framework 3.0.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is a message contract?&lt;/span&gt;&lt;br /&gt;A message contact describes the format of a message. For example, it declares whether message elements should go in headers versus the body, what level of security should be applied to what elements of the message, and so on.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is a fault contract?&lt;/span&gt;&lt;br /&gt;A fault contract can be associated with a service operation to denote errors that can be returned to the caller. An operation can have zero or more faults associated with it. These errors are SOAP faults that are modeled as exceptions in the programming model.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Terms of WCF, what do you understand by metadata of a service&lt;br /&gt;The metadata of a service describes the characteristics of the service that an external entity needs to understand to communicate with the service. Metadata can be consumed by the Service Model Metadata Utility Tool ( Svcutil.exe) to generate a WCF client and accompanying configuration that a client application can use to interact with the service.&lt;br /&gt;&lt;br /&gt;The metadata exposed by the service includes XML schema documents, which define the data contract of the service, and WSDL documents, which describe the methods of the service.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is password fatigue?&lt;/span&gt;&lt;br /&gt;As the use of internet increases, as increases the danger of online identity theft, fraud, and privacy. Users must track a growing number of accounts and passwords. This burden results in "password fatigue," and that results in less secure practices, such as reusing the same account names and passwords at many sites.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What are activities in WWF?&lt;/span&gt;&lt;br /&gt;Activities are the elemental unit of a workflow. They are added to a workflow programmatically in a manner similar to adding XML DOM child nodes to a root node. When all the activities in a given flow path are finished running, the workflow instance is completed.&lt;br /&gt;&lt;br /&gt;An activity can perform a single action, such as writing a value to a database, or it can be a composite activity and consist of a set of activities. Activities have two types of behavior: runtime and design time. The runtime behavior specifies the actions upon execution. The design time behavior controls the appearance of the activity and its interaction while being displayed within the designer.&lt;br /&gt;&lt;br /&gt;The WinFX technologies will now be released under the name .NET Framework 3.0. There are no changes to the WinFX technologies or ship schedule — the same technologies you're familiar with now simply have a new name.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is the .NET Framework 3.0 (formerly WinFX)?&lt;/span&gt;&lt;br /&gt;The .NET Framework 3.0 is Microsoft's managed code programming model. It is a superset of the .NET Framework 2.0, combining .NET Framework 2.0 components with new technologies for building applications that have visually stunning user experiences, seamless and secure communication, and the ability to model a range of business processes. In addition to the .NET Framework 2.0, it includes Windows Presentation Foundation (WPF), Windows Workflow Foundation (WF), Windows Communication Foundation (WCF), and Windows CardSpace.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;System Requirements for Installing .NET Framework 3.0&lt;/span&gt;&lt;br /&gt;Processor&lt;br /&gt;Minimum: 400 megahertz (MHz) Pentium processor&lt;br /&gt;Recommended: 1 gigahertz (GHz) Pentium processor&lt;br /&gt;&lt;br /&gt;Operating System&lt;br /&gt;.NET Framework 3.0 can be installed on any of the following systems:&lt;br /&gt;Microsoft Windows 2003 Server Service Pack 1 (SP1)&lt;br /&gt;Windows XP SP2&lt;br /&gt;Windows Vista *&lt;br /&gt;&lt;br /&gt;*Windows Vista comes with .NET Framework 3.0. There is no separate installation package required. The standalone .NET Framework 3.0 packages are not supported on Vista.&lt;br /&gt;&lt;br /&gt;RAM&lt;br /&gt;Minimum: 96 megabytes (MB)&lt;br /&gt;Recommended:256 MB&lt;br /&gt;&lt;br /&gt;Hard Disk&lt;br /&gt;Up to 500 MB of available space may be required.&lt;br /&gt;CD or DVD Drive Not required.&lt;br /&gt;&lt;br /&gt;Display Minimum: 800 x 600, 256 colors&lt;br /&gt;Recommended:1024 x 768 high color, 32-bit&lt;br /&gt;&lt;br /&gt;Mouse Not required&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What Improvements does WCF offers over its earlier counterparts?&lt;/span&gt;&lt;br /&gt;A lot of communication approaches exist in the .NET Framework 2.0 such as ASP.NET Web Services, .NET Remoting, System.Messaging supporting queued messaging through MSMQ, Web Services Enhancements (WSE) - an extension to ASP.NET Web Services that supports WS-Security etc. However, instead of requiring developers to use a different technology with a different application programming interface for each kind of communication, WCF provides a common approach and API.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What are WCF features and what communication problems it solves?&lt;/span&gt;&lt;br /&gt;WCF provides strong support for interoperable communication through SOAP. This includes support for several specifications, including WS-Security, WS-ReliableMessaging, and WS-AtomicTransaction. WCF doesn't itself require SOAP, so other approaches can also be used, including optimized binary protocol and queued messaging using MSMQ. WCF also takes an explicit service-oriented approach to communication, and loosens some of the tight couplings that can exist in distributed object systems, making interaction less error-prone and easier to change. Thus, WCF addresses a range of communication problems for applications. Three of its most important aspects that clearly stand out are:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Unification of Microsoft's communication technologies.&lt;/span&gt;&lt;br /&gt;Support for cross-vendor interoperability, including reliability, security, and transactions.&lt;br /&gt;Rich support for service orientation development.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What contemporary computing problems WCS solves?&lt;/span&gt;&lt;br /&gt;WCS provides an entirely new approach to managing digital identities. It helps people keep track of their digital identities as distinct information cards. If a Web site accepts WCS logins, users attempting to log in to that site will see a WCS selection. By choosing a card, users also choose a digital identity that will be used to access this site. Rather than remembering a plethora of usernames and passwords, users need only recognize the card they wish to use. The identities represented by these cards are created by one or more identity providers. These identities will typically use stronger cryptographic mechanisms to allow users to prove their identity. With this provider, users can create their own identities that don't rely on passwords for authentication.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What contemporary computing problems WPF solves?&lt;/span&gt;&lt;br /&gt;User interfaces needs to display video, run animations, use 2/3D graphics, and work with different document formats. So far, all of these aspects of the user interface have been provided in different ways on Windows. For example, a developer needs to use Windows Forms to build a Windows GUI, or HTML/ASPX/Applets/JavaScript etc. to build a web interface, Windows Media Player or software such as Adobe's Flash Player for displaying video etc. The challenge for developers is to build a coherent user interface for different kinds of clients using diverse technologies isn't a simple job.&lt;br /&gt;&lt;br /&gt;A primary goal of WPF is to address this challenge! By offering a consistent platform for these entire user interface aspects, WPF makes life simpler for developers. By providing a common foundation for desktop clients and browser clients, WPF makes it easier to build applications.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is XAML ?&lt;/span&gt;&lt;br /&gt;WPF relies on the eXtensible Application Markup Language (XAML). An XML-based language, XAML allows specifying a user interface declaratively rather than in code. This makes it much easier for user interface design tools like MS Expression Blend to generate and work with an interface specification based on the visual representation created by a designer. Designers will be able to use such tools to create the look of an interface and then have a XAML definition of that interface generated for them. The developer imports this definition into Visual Studio, then creates the logic the interface requires.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is XBAP?&lt;/span&gt;&lt;br /&gt;XAML browser application (XBAP) can be used to create a remote client that runs inside a Web browser. Built on the same foundation as a stand-alone WPF application, an XBAP allows presenting the same style of user interface within a downloadable browser application. The best part is that the same code can potentially be used for both kinds of applications, which means that developers no longer need different skill sets for desktop and browser clients. The downloaded XBAP from the Internet runs in a secure sandbox (like Java applets), and thus it limits what the downloaded application can do.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is a service contract ( In WCF) ?&lt;/span&gt;&lt;br /&gt;In every service oriented architecture, services share schemas and contracts, not classes and types. What this means is that you don't share class definitions neither any implementation details about your service to consumers.&lt;br /&gt;&lt;br /&gt;Everything your consumer has to know is your service interface, and how to talk to it. In order to know this, both parts (service and consumer) have to share something that is called a Contract.&lt;br /&gt;&lt;br /&gt;In WCF, there are 3 kinds of contracts: Service Contract, Data Contract and Message Contract.&lt;br /&gt;&lt;br /&gt;A Service Contract describes what the service can do. It defines some properties about the service, and a set of actions called Operation Contracts. Operation Contracts are equivalent to web methods in ASMX technology&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In terms of WCF, What is a message?&lt;/span&gt;&lt;br /&gt;A message is a self-contained unit of data that may consist of several parts, including a body and headers.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In terms of WCF, What is a service?&lt;/span&gt;&lt;br /&gt;A service is a construct that exposes one or more endpoints, with each endpoint exposing one or more service operations.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In terms of WCF, What is an endpoint?&lt;/span&gt;&lt;br /&gt;An endpoint is a construct at which messages are sent or received (or both). It comprises a location (an address) that defines where messages can be sent, a specification of the communication mechanism (a binding) that described how messages should be sent, and a definition for a set of messages that can be sent or received (or both) at that location (a service contract) that describes what message can be sent.&lt;br /&gt;&lt;br /&gt;An WCF service is exposed to the world as a collection of endpoints.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In terms of WCF, What is an application endpoint?&lt;/span&gt;&lt;br /&gt;An endpoint exposed by the application and that corresponds to a service contract implemented by the application.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In terms of WCF, What is an infrastructure endpoint?&lt;/span&gt;&lt;br /&gt;An endpoint that is exposed by the infrastructure to facilitate functionality that is needed or provided by the service that does not relate to a service contract. For example, a service might have an infrastructure endpoint that provides metadata information.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In terms of WCF, What is an address?&lt;/span&gt;&lt;br /&gt;An address specifies the location where messages are received. It is specified as a Uniform Resource Identifier (URI). The schema part of the URI names the transport mechanism to be used to reach the address, such as "HTTP" and "TCP", and the hierarchical part of the URI contains a unique location whose format is dependent on the transport mechanism.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;In terms of WCF, What is binding?&lt;/span&gt;&lt;br /&gt;A binding defines how an endpoint communicates to the world. It is constructed of a set of components called binding elements that "stack" one on top of the other to create the communication infrastructure. At the very least, a binding defines the transport (such as HTTP or TCP) and the encoding being used (such as text or binary). A binding can contain binding elements that specify details like the security mechanisms used to secure messages, or the message pattern used by an endpoint.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is an operation contract?&lt;/span&gt;&lt;br /&gt;An operation contract defines the parameters and return type of an operation. When creating an interface that defines the service contract, you signify an operation contract by applying the OperationContractAttribute attribute to each method definition that is part of the contract. The operations can be modeled as taking a single message and returning a single message, or as taking a set of types and returning a type. In the latter case, the system will determine the format for the messages that need to be exchanged for that operation.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is a message contract?&lt;/span&gt;&lt;br /&gt;A message contact describes the format of a message. For example, it declares whether message elements should go in headers versus the body, what level of security should be applied to what elements of the message, and so on.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is a fault contract?&lt;/span&gt;&lt;br /&gt;A fault contract can be associated with a service operation to denote errors that can be returned to the caller. An operation can have zero or more faults associated with it. These errors are SOAP faults that are modeled as exceptions in the programming model.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In Terms of WCF, what do you understand by metadata of a service&lt;br /&gt;The metadata of a service describes the characteristics of the service that an external entity needs to understand to communicate with the service. Metadata can be consumed by the Service Model Metadata Utility Tool ( Svcutil.exe) to generate a WCF client and accompanying configuration that a client application can use to interact with the service.&lt;br /&gt;&lt;br /&gt;The metadata exposed by the service includes XML schema documents, which define the data contract of the service, and WSDL documents, which describe the methods of the service.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What is password fatigue?&lt;/span&gt;&lt;br /&gt;As the use of internet increases, as increases the danger of online identity theft, fraud, and privacy. Users must track a growing number of accounts and passwords. This burden results in "password fatigue," and that results in less secure practices, such as reusing the same account names and passwords at many sites.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;What are activities in WWF?&lt;/span&gt;&lt;br /&gt;Activities are the elemental unit of a workflow. They are added to a workflow programmatically in a manner similar to adding XML DOM child nodes to a root node. When all the activities in a given flow path are finished running, the workflow instance is completed.&lt;br /&gt;&lt;br /&gt;An activity can perform a single action, such as writing a value to a database, or it can be a composite activity and consist of a set of activities. Activities have two types of behavior: runtime and design time. The runtime behavior specifies the actions upon execution. The design time behavior controls the appearance of the activity and its interaction while being displayed within the designer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-6246740202512960788?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/6246740202512960788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=6246740202512960788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/6246740202512960788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/6246740202512960788'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/07/net-framework-30-wpf-wcf-wf-xaml.html' title='.Net Framework 3.0, WPF, WCF, WF, XAML Interview FAQ'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-8295005863964966617</id><published>2008-04-10T04:03:00.008+05:30</published><updated>2008-05-02T10:26:37.485+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C Aptitude Questions and Answers'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net Interview Question'/><category scheme='http://www.blogger.com/atom/ns#' term='C# Interview QA'/><category scheme='http://www.blogger.com/atom/ns#' term='C++'/><category scheme='http://www.blogger.com/atom/ns#' term='JAVA'/><title type='text'>C# Interview QA Part - 1</title><content type='html'>&lt;span style="font-weight:bold;"&gt;1. What's C# ?&lt;/span&gt;&lt;br /&gt;C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Is it possible to inline assembly or IL in C# code? &lt;/span&gt;&lt;br /&gt;- No. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Is it possible to have different access modifiers on the get/set methods of a property? &lt;br /&gt;&lt;/span&gt;- No. The access modifier on a property applies to both its get and set accessors. What you need to do if you want them to be different is make the property read-only (by only providing a get accessor) and create a private/internal set method that is separate from the property. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. Is it possible to have a static indexer in C#? allowed in C#. &lt;/span&gt;&lt;br /&gt;- No. Static indexers are not &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;5. If I return out of a try/finally in C#, does the code in the finally-clause run? &lt;/span&gt;&lt;br /&gt;-Yes. The code in the finally always runs. If you return out of the try block, or even if you do a goto out of the try, the finally block always runs:&lt;br /&gt;using System; &lt;br /&gt;class main&lt;br /&gt;{&lt;br /&gt;public static void Main()&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;Console.WriteLine(\"In Try block\");&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;finally&lt;br /&gt;{&lt;br /&gt;Console.WriteLine(\"In Finally block\");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;} &lt;br /&gt;&lt;br /&gt;Both In Try block and In Finally block will be displayed. Whether the return is in the try block or after the try-finally block, performance is not affected either way. The compiler treats it as if the return were outside the try block anyway. If it’s a return without an expression (as it is above), the IL emitted is identical whether the return is inside or outside of the try. If the return has an expression, there’s an extra store/load of the value of the expression (since it has to be computed within the try block). &lt;br /&gt;I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it? &lt;br /&gt;&lt;br /&gt;You should declare the variable as an int, but when you pass it in you must specify it as ‘out’, like the following: int i; foo(out i); where foo is declared as follows: &lt;br /&gt;[return-type] foo(out int o) { } &lt;br /&gt;How do you directly call a native function exported from a DLL? &lt;br /&gt;Here’s a quick example of the DllImport attribute in action:&lt;br /&gt;&lt;br /&gt;using System.Runtime.InteropServices; \&lt;br /&gt;class C&lt;br /&gt;{&lt;br /&gt;[DllImport(\"user32.dll\")]&lt;br /&gt;public static extern int MessageBoxA(int h, string m, string c, int type);&lt;br /&gt;public static int Main()&lt;br /&gt;{&lt;br /&gt;return MessageBoxA(0, \"Hello World!\", \"Caption\", 0);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;This example shows the minimum requirements for declaring a C# method that is implemented in a native DLL. The method C.MessageBoxA() is declared with the static and external modifiers, and has the DllImport attribute, which tells the compiler that the implementation comes from the user32.dll, using the default name of MessageBoxA. For more information, look at the Platform Invoke tutorial in the documentation. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;7. How do I simulate optional parameters to COM calls? &lt;/span&gt;&lt;br /&gt;You must use the Missing class and pass Missing.Value (in System.Reflection) for any values that have optional parameters. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;8. What do you know about .NET assemblies? &lt;/span&gt;&lt;br /&gt;Assemblies are the smallest units of versioning and deployment in the .NET application. Assemblies are also the building blocks for programs such as Web services, Windows services, serviced components, and .NET remoting applications. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;9. What’s the difference between private and shared assembly? &lt;/span&gt;&lt;br /&gt;Private assembly is used inside an application only and does not have to be identified by a strong name. Shared assembly can be used by multiple applications and has to have a strong name. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;10. What’s a strong name? &lt;/span&gt;&lt;br /&gt;A strong name includes the name of the assembly, version number, culture identity, and a public key token. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;11. How can you tell the application to look for assemblies at the locations other than its own install? &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use the directive in the XML .config file for a given application.&lt;br /&gt;&lt; probing privatePath=c:\mylibs; bin\debug /&gt;&lt;br /&gt;should do the trick. Or you can add additional search paths in the Properties box of the deployed application. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;12. How can you debug failed assembly binds? &lt;/span&gt;&lt;br /&gt;Use the Assembly Binding Log Viewer (fuslogvw.exe) to find out the paths searched. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;13. Where are shared assemblies stored? &lt;/span&gt;&lt;br /&gt;Global assembly cache. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;14. How can you create a strong name for a .NET assembly? &lt;/span&gt;&lt;br /&gt;With the help of Strong Name tool (sn.exe). &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;15. Where’s global assembly cache located on the system? &lt;/span&gt;&lt;br /&gt;Usually C:\winnt\assembly or C:\windows\assembly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-8295005863964966617?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/8295005863964966617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=8295005863964966617' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/8295005863964966617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/8295005863964966617'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/04/c-interview-qa-part-1.html' title='C# Interview QA Part - 1'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-2582575418475710958</id><published>2008-04-10T03:50:00.001+05:30</published><updated>2008-04-10T03:52:00.098+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='C Aptitude Questions and Answers'/><title type='text'>C Aptitude Questions and Answers</title><content type='html'>C Aptitude Questions and Answers&lt;br /&gt;1.    void main()&lt;br /&gt;{&lt;br /&gt;            int  const * p=5;&lt;br /&gt;            printf("%d",++(*p));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler error: Cannot modify a constant value. &lt;br /&gt;Explanation:    &lt;br /&gt;p is a pointer to a "constant integer". But we tried to change the value of the "constant integer".&lt;br /&gt;2.    main()&lt;br /&gt;{&lt;br /&gt;            char s[ ]="man";&lt;br /&gt;            int i;&lt;br /&gt;            for(i=0;s[ i ];i++)&lt;br /&gt;            printf("\n%c%c%c%c", s[ i ], *(s+i), *(i+s), i[s]);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;                        mmmm&lt;br /&gt;                       aaaa&lt;br /&gt;                       nnnn&lt;br /&gt;Explanation:&lt;br /&gt;s[i], *(i+s), *(s+i), i[s] are all different ways of expressing the same idea. Generally  array name is the base address for that array. Here s is the base address. i is the index number/displacement from the base address. So, indirecting it with * is same as s[i]. i[s] may be surprising. But in the  case of  C  it is same as s[i].&lt;br /&gt;3.      main()&lt;br /&gt;{&lt;br /&gt;            float me = 1.1;&lt;br /&gt;            double you = 1.1;&lt;br /&gt;            if(me==you)&lt;br /&gt;printf("I love U");&lt;br /&gt;else&lt;br /&gt;                        printf("I hate U");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer: &lt;br /&gt;I hate U&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;For floating point numbers (float, double, long double) the values cannot be predicted exactly. Depending on the number of bytes, the precession with of the value  represented varies. Float takes 4 bytes and long double takes 10 bytes. So float stores 0.9 with less precision than long double.&lt;br /&gt;Rule of Thumb: &lt;br /&gt;Never compare or at-least be cautious when using floating point numbers with relational operators (== , &gt;, &lt;, &lt;=, &gt;=,!= ) .  &lt;br /&gt;4.      main()&lt;br /&gt;            {&lt;br /&gt;            static int var = 5;&lt;br /&gt;            printf("%d ",var--);&lt;br /&gt;            if(var)&lt;br /&gt;                        main();&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;5 4 3 2 1&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;When static storage class is given, it is initialized once. The change in the value of a static variable is retained even between the function calls. Main is also treated like any other ordinary function, which can be called recursive function.  &lt;br /&gt;5.      main()&lt;br /&gt;{&lt;br /&gt;             int c[ ]={2.8, 3.4, 4, 6.7, 5};&lt;br /&gt;             int j,*p=c,*q=c;&lt;br /&gt;             for(j=0;j&lt;5;j++) {&lt;br /&gt;                        printf(" %d ", *c);&lt;br /&gt;                        ++q;     }&lt;br /&gt;             for(j=0;j&lt;5;j++){&lt;br /&gt;printf(" %d ",*p);&lt;br /&gt;++p;     }&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Answer:&lt;br /&gt;                        2 2 2 2 2 2 3 4 6 5&lt;br /&gt;&lt;br /&gt;Explanation: &lt;br /&gt;Initially pointer c is assigned to both p and q. In the first loop, since only q is incremented and not c , the value 2 will be printed 5 times. In second loop p itself is incremented. So the values 2 3 4 6 5 will be printed. &lt;br /&gt;6.      main()&lt;br /&gt;{&lt;br /&gt;            extern int i;&lt;br /&gt;            i=20;&lt;br /&gt;             printf("%d", i);&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Answer:  &lt;br /&gt;Linker Error : Undefined symbol '_i'&lt;br /&gt;Explanation: &lt;br /&gt;                        extern storage class in the following declaration,&lt;br /&gt;                                    extern int i;&lt;br /&gt;specifies to the compiler that the memory for i is allocated in some other program and that address will be given to the current program at the time of linking. But linker finds that no other variable of name i is available in any other program with memory space allocated for it. Hence a linker error has occurred .&lt;br /&gt;7.      main()&lt;br /&gt;{&lt;br /&gt;            int i= -1, j= -1, k=0, l=2, m;&lt;br /&gt;            m=i++ &amp;&amp; j++ &amp;&amp; k++ || l++;&lt;br /&gt;            printf("%d %d %d %d %d", i, j, k, l, m);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;                        0 0 1 3 1&lt;br /&gt;&lt;br /&gt;Explanation :&lt;br /&gt;Logical operations always give a result of 1 or 0 . And also the logical AND (&amp;&amp;) operator has higher priority over the logical OR (||) operator. So the expression  ‘i++ &amp;&amp; j++ &amp;&amp; k++’ is executed first. The result of this expression is 0    (-1 &amp;&amp; -1 &amp;&amp; 0 = 0). Now the expression is 0 || 2 which evaluates to 1 (because OR operator always gives 1 except for ‘0 || 0’ combination- for which it gives 0). So the value of m is 1. The values of other variables are also incremented by 1.&lt;br /&gt;8.      main()&lt;br /&gt;{&lt;br /&gt;            char *p;&lt;br /&gt;            printf("%d %d ",sizeof(*p),sizeof(p));&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Answer: &lt;br /&gt;                        1 2&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The sizeof() operator gives the number of bytes taken by its operand. P is a character pointer, which needs one byte for storing its value (a character). Hence sizeof(*p) gives a value of 1. Since it needs two bytes to store the address of the character pointer sizeof(p) gives 2.&lt;br /&gt;9.      main()&lt;br /&gt;{&lt;br /&gt;            int i=3;&lt;br /&gt;            switch(i)&lt;br /&gt;             {&lt;br /&gt;                default: printf("zero");&lt;br /&gt;&lt;br /&gt;                case 1: printf("one");&lt;br /&gt;                           break;&lt;br /&gt;               case 2:printf("two");&lt;br /&gt;                          break;&lt;br /&gt;              case 3: printf("three");&lt;br /&gt;                          break;&lt;br /&gt;              }  &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer :&lt;br /&gt;three&lt;br /&gt;&lt;br /&gt;Explanation :&lt;br /&gt;The default case can be placed anywhere inside the loop. It is executed only when all other cases doesn't match.&lt;br /&gt;10.      main()&lt;br /&gt;{&lt;br /&gt;              printf("%x", -1&lt;&lt;4);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer: &lt;br /&gt;fff0&lt;br /&gt;&lt;br /&gt;Explanation :&lt;br /&gt;-1 is internally represented as all 1's. When left shifted four times the least significant 4 bits are filled with 0's.The %x format specifier specifies that the integer value be printed as a hexadecimal value.&lt;br /&gt;11.      main()&lt;br /&gt;{&lt;br /&gt;            char string[]="Hello World";&lt;br /&gt;            display(string);&lt;br /&gt;}&lt;br /&gt;void display(char *string)&lt;br /&gt;{&lt;br /&gt;            printf("%s",string);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler Error : Type mismatch in redeclaration of function display &lt;br /&gt;&lt;br /&gt;Explanation :&lt;br /&gt;In third line, when the function display is encountered, the compiler doesn't know anything about the function display. It assumes the arguments and return types to be integers, (which is the default type). When it sees the actual function display, the arguments and type contradicts with what it has assumed previously. Hence a compile time error occurs.&lt;br /&gt;12.      main()&lt;br /&gt;{&lt;br /&gt;            int c=- -2;&lt;br /&gt;            printf("c=%d",c);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;                                    c=2;&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Here unary minus (or negation) operator is used twice. Same maths  rules applies, ie. minus * minus= plus.&lt;br /&gt;Note: &lt;br /&gt;However you cannot give like --2. Because -- operator can  only be applied to variables as a decrement operator (eg., i--). 2 is a constant and not a variable.&lt;br /&gt;13.      #define int char&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;            int i=65;&lt;br /&gt;            printf("sizeof(i)=%d",sizeof(i));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;                        sizeof(i)=1&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Since the #define replaces the string  int by the macro char &lt;br /&gt;14.      main()&lt;br /&gt;{&lt;br /&gt;int i=10;&lt;br /&gt;i=!i&gt;14;&lt;br /&gt;Printf ("i=%d",i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;i=0&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;In the expression !i&gt;14 , NOT (!) operator has more precedence than ‘ &gt;’ symbol.  ! is a unary logical operator. !i (!10) is 0 (not of true is false).  0&gt;14 is false (zero).&lt;br /&gt;15.      #include&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;char s[]={'a','b','c','\n','c','\0'};&lt;br /&gt;char *p,*str,*str1;&lt;br /&gt;p=&amp;s[3];&lt;br /&gt;str=p;&lt;br /&gt;str1=s;&lt;br /&gt;printf("%d",++*p + ++*str1-32);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;77        &lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;p is pointing to character '\n'. str1 is pointing to character 'a' ++*p. "p is pointing to '\n' and that is incremented by one." the ASCII value of '\n' is 10, which is then incremented to 11. The value of ++*p is 11. ++*str1, str1 is pointing to 'a' that is incremented by 1 and it becomes 'b'. ASCII value of 'b' is 98.&lt;br /&gt; Now performing (11 + 98 – 32), we get 77("M");&lt;br /&gt; So we get the output 77 :: "M" (Ascii is 77).&lt;br /&gt;16.      #include&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int a[2][2][2] = { {10,2,3,4}, {5,6,7,8}  };&lt;br /&gt;int *p,*q;&lt;br /&gt;p=&amp;a[2][2][2];&lt;br /&gt;*q=***a;&lt;br /&gt;printf("%d----%d",*p,*q);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;SomeGarbageValue---1&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;p=&amp;a[2][2][2]  you declare only two 2D arrays, but you are trying to access the third 2D(which you are not declared) it will print garbage values. *q=***a starting address of a is assigned integer pointer. Now q is pointing to starting address of a. If you print *q, it will print first element of 3D array.&lt;br /&gt;17.      #include&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;struct xx&lt;br /&gt;{&lt;br /&gt;      int x=3;&lt;br /&gt;      char name[]="hello";&lt;br /&gt; };&lt;br /&gt;struct xx *s;&lt;br /&gt;printf("%d",s-&gt;x);&lt;br /&gt;printf("%s",s-&gt;name);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler Error&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;You should not initialize variables in declaration&lt;br /&gt;18.      #include&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;struct xx&lt;br /&gt;{&lt;br /&gt;int x;&lt;br /&gt;struct yy&lt;br /&gt;{&lt;br /&gt;char s;&lt;br /&gt;            struct xx *p;&lt;br /&gt;};&lt;br /&gt;struct yy *q;&lt;br /&gt;};&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler Error&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The structure yy is nested within structure xx. Hence, the elements are of yy are to be accessed through the instance of structure xx, which needs an instance of yy to be known. If the instance is created after defining the structure the compiler will not know about the instance relative to xx. Hence for nested structure yy you have to declare member.&lt;br /&gt;19.      main()&lt;br /&gt;{&lt;br /&gt;printf("\nab");&lt;br /&gt;printf("\bsi");&lt;br /&gt;printf("\rha");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;hai&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;\n  - newline&lt;br /&gt;\b  - backspace&lt;br /&gt;\r  - linefeed&lt;br /&gt;20.      main()&lt;br /&gt;{&lt;br /&gt;int i=5;&lt;br /&gt;printf("%d%d%d%d%d%d",i++,i--,++i,--i,i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;45545&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The arguments in a function call are pushed into the stack from left to right. The evaluation is by popping out from the stack. and the  evaluation is from right to left, hence the result.&lt;br /&gt;21.      #define square(x) x*x&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int i;&lt;br /&gt;i = 64/square(4);&lt;br /&gt;printf("%d",i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;64&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;the macro call square(4) will substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64&lt;br /&gt;22.      main()&lt;br /&gt;{&lt;br /&gt;char *p="hai friends",*p1;&lt;br /&gt;p1=p;&lt;br /&gt;while(*p!='\0') ++*p++;&lt;br /&gt;printf("%s   %s",p,p1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;ibj!gsjfoet&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;                        ++*p++ will be parse in the given order&lt;br /&gt;Ø  *p that is value at the location currently pointed by p will be taken&lt;br /&gt;Ø  ++*p the retrieved value will be incremented &lt;br /&gt;Ø  when ; is encountered the location will be incremented that is p++ will be executed&lt;br /&gt;Hence, in the while loop initial value pointed by p is ‘h’, which is changed to ‘i’ by executing ++*p and pointer moves to point, ‘a’ which is similarly changed to ‘b’ and so on. Similarly blank space is converted to ‘!’. Thus, we obtain value in p becomes “ibj!gsjfoet” and since p reaches ‘\0’ and p1 points to p thus p1doesnot print anything. &lt;br /&gt;23.      #include &lt;br /&gt;#define a 10&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;#define a 50&lt;br /&gt;printf("%d",a);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;50&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The preprocessor directives can be redefined anywhere in the program. So the most recently assigned value will be taken.&lt;br /&gt;24.      #define clrscr() 100&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;clrscr();&lt;br /&gt;printf("%d\n",clrscr());&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;100&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Preprocessor executes as a seperate pass before the execution of the compiler. So textual replacement of clrscr() to 100 occurs.The input  program to compiler looks like this :&lt;br /&gt;                        main()&lt;br /&gt;                        {&lt;br /&gt;                             100;&lt;br /&gt;                             printf("%d\n",100);&lt;br /&gt;                        }&lt;br /&gt;            Note:   &lt;br /&gt;100; is an executable statement but with no action. So it doesn't give any problem&lt;br /&gt;25.   main()&lt;br /&gt;{&lt;br /&gt;printf("%p",main);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;                        Some address will be printed.&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;            Function names are just addresses (just like array names are addresses).&lt;br /&gt;main() is also a function. So the address of function main will be printed. %p in printf specifies that the argument is an address. They are printed as hexadecimal numbers.&lt;br /&gt;26.       main()&lt;br /&gt;{&lt;br /&gt;clrscr();&lt;br /&gt;}&lt;br /&gt;clrscr();&lt;br /&gt;            &lt;br /&gt;Answer:&lt;br /&gt;No output/error&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The first clrscr() occurs inside a function. So it becomes a function call. In the second clrscr(); is a function declaration (because it is not inside any function).&lt;br /&gt;27.       enum colors {BLACK,BLUE,GREEN}&lt;br /&gt; main()&lt;br /&gt;{&lt;br /&gt;  &lt;br /&gt; printf("%d..%d..%d",BLACK,BLUE,GREEN);&lt;br /&gt;   &lt;br /&gt; return(1);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;0..1..2&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;enum assigns numbers starting from 0, if not explicitly defined.&lt;br /&gt;28.       void main()&lt;br /&gt;{&lt;br /&gt; char far *farther,*farthest;&lt;br /&gt;  &lt;br /&gt; printf("%d..%d",sizeof(farther),sizeof(farthest));&lt;br /&gt;   &lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;4..2  &lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;            the second pointer is of char type and not a far pointer&lt;br /&gt;29.       main()&lt;br /&gt;{&lt;br /&gt; int i=400,j=300;&lt;br /&gt; printf("%d..%d");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;400..300&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;printf takes the values of the first two assignments of the program. Any number of printf's may be given. All of them take only the first two values. If more number of assignments given in the program, then printf will take garbage values.&lt;br /&gt;30.       main()&lt;br /&gt;{&lt;br /&gt; char *p;&lt;br /&gt; p="Hello";&lt;br /&gt; printf("%c\n",*&amp;*p);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;H &lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;* is a dereference operator &amp; is a reference  operator. They can be    applied any number of times provided it is meaningful. Here  p points to  the first character in the string "Hello". *p dereferences it and so its value is H. Again  &amp; references it to an address and * dereferences it to the value H.&lt;br /&gt;31.       main()&lt;br /&gt;{&lt;br /&gt;    int i=1;&lt;br /&gt;    while (i&lt;=5)&lt;br /&gt;    {&lt;br /&gt;       printf("%d",i);&lt;br /&gt;       if (i&gt;2)&lt;br /&gt;              goto here;&lt;br /&gt;       i++;&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;fun()&lt;br /&gt;{&lt;br /&gt;   here:&lt;br /&gt;     printf("PP");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler error: Undefined label 'here' in function main&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Labels have functions scope, in other words The scope of the labels is limited to functions . The label 'here' is available in function fun() Hence it is not visible in function main.&lt;br /&gt;32.       main()&lt;br /&gt;{&lt;br /&gt;   static char names[5][20]={"pascal","ada","cobol","fortran","perl"};&lt;br /&gt;    int i;&lt;br /&gt;    char *t;&lt;br /&gt;    t=names[3];&lt;br /&gt;    names[3]=names[4];&lt;br /&gt;    names[4]=t; &lt;br /&gt;    for (i=0;i&lt;=4;i++)&lt;br /&gt;            printf("%s",names[i]);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler error: Lvalue required in function main&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Array names are pointer constants. So it cannot be modified.&lt;br /&gt;33.     void main()&lt;br /&gt;{&lt;br /&gt;            int i=5;&lt;br /&gt;            printf("%d",i++ + ++i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Output Cannot be predicted  exactly.&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Side effects are involved in the evaluation of   i&lt;br /&gt;34.       void main()&lt;br /&gt;{&lt;br /&gt;            int i=5;&lt;br /&gt;            printf("%d",i+++++i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler Error &lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The expression i+++++i is parsed as i ++ ++ + i which is an illegal combination of operators. &lt;br /&gt;35.       #include&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int i=1,j=2;&lt;br /&gt;switch(i)&lt;br /&gt; {&lt;br /&gt; case 1:  printf("GOOD");&lt;br /&gt;                break;&lt;br /&gt; case j:  printf("BAD");&lt;br /&gt;               break;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler Error: Constant expression required in function main.&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The case statement can have only constant expressions (this implies that we cannot use variable names directly so an error).&lt;br /&gt;            Note:&lt;br /&gt;Enumerated types can be used in case statements. &lt;br /&gt;36.    main()&lt;br /&gt;{&lt;br /&gt;int i;&lt;br /&gt;printf("%d",scanf("%d",&amp;i));  // value 10 is given as input here&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;1&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Scanf returns number of items successfully read and not 1/0.  Here 10 is given as input which should have been scanned successfully. So number of items read is 1. &lt;br /&gt;37.       #define f(g,g2) g##g2&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;int var12=100;&lt;br /&gt;printf("%d",f(var,12));&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;100 &lt;br /&gt;38.      main()&lt;br /&gt;{&lt;br /&gt;int i=0;&lt;br /&gt; &lt;br /&gt;for(;i++;printf("%d",i)) ;&lt;br /&gt;printf("%d",i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;            1&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;before entering into the for loop the checking condition is "evaluated". Here it evaluates to 0 (false) and comes out of the loop, and i is incremented (note the semicolon after the for loop).&lt;br /&gt;39.       #include&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;  char s[]={'a','b','c','\n','c','\0'};&lt;br /&gt;  char *p,*str,*str1;&lt;br /&gt;  p=&amp;s[3];&lt;br /&gt;  str=p;&lt;br /&gt;  str1=s;&lt;br /&gt;  printf("%d",++*p + ++*str1-32);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;M&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;p is pointing to character '\n'.str1 is pointing to character 'a' ++*p meAnswer:"p is pointing to '\n' and that is incremented by one." the ASCII value of '\n' is 10. then it is incremented to 11. the value of ++*p is 11. ++*str1 meAnswer:"str1 is pointing to 'a' that is incremented by 1 and it becomes 'b'. ASCII value of 'b' is 98. both 11 and 98 is added and result is subtracted from 32. &lt;br /&gt;i.e. (11+98-32)=77("M");&lt;br /&gt;40.       #include&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;  struct xx&lt;br /&gt;   {&lt;br /&gt;      int x=3;&lt;br /&gt;      char name[]="hello";&lt;br /&gt;   };&lt;br /&gt;struct xx *s=malloc(sizeof(struct xx));&lt;br /&gt;printf("%d",s-&gt;x);&lt;br /&gt;printf("%s",s-&gt;name);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler Error&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Initialization should not be done for structure members inside the structure declaration&lt;br /&gt;41.       #include&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;struct xx&lt;br /&gt; {&lt;br /&gt;              int x;&lt;br /&gt;              struct yy&lt;br /&gt;               {&lt;br /&gt;                 char s;&lt;br /&gt;                 struct xx *p;&lt;br /&gt;               };&lt;br /&gt;                         struct yy *q;&lt;br /&gt;            };&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler Error&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;in the end of nested structure yy a member have to be declared&lt;br /&gt;42.       main()&lt;br /&gt;{&lt;br /&gt; extern int i;&lt;br /&gt; i=20;&lt;br /&gt; printf("%d",sizeof(i));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Linker error: undefined symbol '_i'.&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;extern declaration specifies that the variable i is defined somewhere else. The compiler passes the external variable to be resolved by the linker. So compiler doesn't find an error. During linking the linker searches for the definition of i. Since it is not found the linker flags an error.&lt;br /&gt;43.       main()&lt;br /&gt;{&lt;br /&gt;printf("%d", out);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int out=100;&lt;br /&gt;Answer:&lt;br /&gt;Compiler error: undefined symbol out in function main.&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The rule is that a variable is available for use from the point of declaration. Even though a is a global variable, it is not available for main. Hence an error.&lt;br /&gt;44.    main()&lt;br /&gt;{&lt;br /&gt; extern out;&lt;br /&gt; printf("%d", out);&lt;br /&gt;}&lt;br /&gt; int out=100;&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;100      &lt;br /&gt;&lt;br /&gt;            Explanation:   &lt;br /&gt;This is the correct way of writing the previous program.&lt;br /&gt;45.       main()&lt;br /&gt;{&lt;br /&gt; show();&lt;br /&gt;}&lt;br /&gt;void show()&lt;br /&gt;{&lt;br /&gt; printf("I'm the greatest");&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compier error: Type mismatch in redeclaration of show.&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;When the compiler sees the function show it doesn't know anything about it. So the default return type (ie, int) is assumed. But when compiler sees the actual definition of show mismatch occurs since it is declared as void. Hence the error.&lt;br /&gt;The solutions are as follows:&lt;br /&gt;1. declare void show() in main() .&lt;br /&gt;2. define show() before main().&lt;br /&gt;3. declare extern void show() before the use of show().&lt;br /&gt;46.  main( )&lt;br /&gt;{&lt;br /&gt;  int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}};&lt;br /&gt;  printf(“%u %u %u %d \n”,a,*a,**a,***a);&lt;br /&gt;        printf(“%u %u %u %d \n”,a+1,*a+1,**a+1,***a+1);&lt;br /&gt;       }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;100, 100, 100, 2&lt;br /&gt;114, 104, 102, 3&lt;br /&gt;47.   main( )&lt;br /&gt;{&lt;br /&gt;  int a[ ] = {10,20,30,40,50},j,*p;&lt;br /&gt;  for(j=0; j&lt;5; j++)&lt;br /&gt;    {&lt;br /&gt;printf(“%d” ,*a); &lt;br /&gt;a++;&lt;br /&gt;    }&lt;br /&gt;    p = a;&lt;br /&gt;   for(j=0; j&lt;5; j++) &lt;br /&gt;      {&lt;br /&gt;printf(“%d ” ,*p); &lt;br /&gt;p++;&lt;br /&gt;      }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler error: lvalue required.&lt;br /&gt;                        &lt;br /&gt;Explanation:&lt;br /&gt;Error is in line with statement a++. The operand must be an lvalue and may be of any of scalar type for the any operator, array name only when subscripted is an lvalue. Simply array name is a non-modifiable lvalue.&lt;br /&gt;48.       main( )&lt;br /&gt;{&lt;br /&gt; static int  a[ ]   = {0,1,2,3,4};&lt;br /&gt; int  *p[ ] = {a,a+1,a+2,a+3,a+4};&lt;br /&gt; int  **ptr =  p;&lt;br /&gt; ptr++;&lt;br /&gt; printf(“\n %d  %d  %d”, ptr-p, *ptr-a, **ptr); &lt;br /&gt; *ptr++;&lt;br /&gt; printf(“\n %d  %d  %d”, ptr-p, *ptr-a, **ptr); &lt;br /&gt; *++ptr;&lt;br /&gt; printf(“\n %d  %d  %d”, ptr-p, *ptr-a, **ptr); &lt;br /&gt; ++*ptr;&lt;br /&gt;       printf(“\n %d  %d  %d”, ptr-p, *ptr-a, **ptr); &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;            111&lt;br /&gt;            222&lt;br /&gt;            333&lt;br /&gt;            344&lt;br /&gt;49.       main( )&lt;br /&gt;{&lt;br /&gt; void *vp;&lt;br /&gt; char ch = ‘g’, *cp = “goofy”;&lt;br /&gt; int j = 20;&lt;br /&gt; vp = &amp;ch;&lt;br /&gt; printf(“%c”, *(char *)vp);&lt;br /&gt; vp = &amp;j;&lt;br /&gt; printf(“%d”,*(int *)vp);&lt;br /&gt; vp = cp;&lt;br /&gt; printf(“%s”,(char *)vp + 3);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;            g20fy&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Since a void pointer is used it can be type casted to any  other type pointer. vp = &amp;ch  stores address of char ch and the next statement prints the value stored in vp after type casting it to the proper data type pointer. the output is ‘g’. Similarly  the output from second printf is ‘20’. The third printf statement type casts it to print the string from the 4th value hence the output is ‘fy’.&lt;br /&gt;50.    main ( )&lt;br /&gt;{&lt;br /&gt; static char *s[ ]  = {“black”, “white”, “yellow”, “violet”};&lt;br /&gt; char **ptr[ ] = {s+3, s+2, s+1, s}, ***p;&lt;br /&gt; p = ptr;&lt;br /&gt; **++p;&lt;br /&gt; printf(“%s”,*--*++p + 3);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;            ck&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;In this problem we have an array of char pointers pointing to start of 4 strings. Then we have ptr which is a pointer to a pointer of type char and a variable p which is a pointer to a pointer to a pointer of type char. p hold the initial value of ptr, i.e. p = s+3. The next statement increment value in p by 1 , thus now value of p =  s+2. In the printf statement the expression is evaluated *++p causes gets value s+1 then the pre decrement is executed and we get s+1 – 1 = s . the indirection operator now gets the value from the array of s and adds 3 to the starting address. The string is printed starting from this position. Thus, the output is ‘ck’.&lt;br /&gt;51.    main()&lt;br /&gt;{&lt;br /&gt; int  i, n;&lt;br /&gt; char *x = “girl”;&lt;br /&gt; n = strlen(x);&lt;br /&gt; *x = x[n];&lt;br /&gt; for(i=0; i&lt;br /&gt;   {&lt;br /&gt;printf(“%s\n”,x);&lt;br /&gt;x++;&lt;br /&gt;   }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;(blank space)&lt;br /&gt;irl&lt;br /&gt;rl&lt;br /&gt;l&lt;br /&gt; &lt;br /&gt;Explanation:&lt;br /&gt;Here a string (a pointer to char) is initialized with a value “girl”.  The strlen function returns the length of the string, thus n has a value 4. The next statement assigns value at the nth location (‘\0’) to the first location. Now the string becomes “\0irl” . Now the printf statement prints the string after each iteration it increments it starting position.  Loop starts from 0 to 4. The first time x[0] = ‘\0’ hence it prints nothing and pointer value is incremented. The second time it prints from x[1] i.e “irl” and the third time it prints “rl” and the last time it prints “l” and the loop terminates.&lt;br /&gt;52.     int i,j;&lt;br /&gt;            for(i=0;i&lt;=10;i++)&lt;br /&gt;            {&lt;br /&gt;            j+=5;&lt;br /&gt;            assert(i&lt;5);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer: &lt;br /&gt;Runtime error: Abnormal program termination. &lt;br /&gt;                                    assert failed (i&lt;5), , &lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;asserts are used during debugging to make sure that certain conditions are satisfied. If assertion fails, the program will terminate reporting the same. After debugging use,&lt;br /&gt;            #undef NDEBUG&lt;br /&gt;and this will disable all the assertions from the source code. Assertion&lt;br /&gt;is a good debugging tool to make use of.  &lt;br /&gt;53.       main()&lt;br /&gt;            {&lt;br /&gt;            int i=-1;&lt;br /&gt;            +i;&lt;br /&gt;            printf("i = %d, +i = %d \n",i,+i);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt; i = -1, +i = -1&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;Unary + is the only dummy operator in C. Where-ever it comes you can just ignore it just because it has no effect in the expressions (hence the name dummy operator).&lt;br /&gt;54. What are the files which are automatically opened when a C file is executed?&lt;br /&gt;Answer:&lt;br /&gt;stdin, stdout, stderr (standard input,standard output,standard error).&lt;br /&gt;55.  what will be the position of the file marker?&lt;br /&gt;            a: fseek(ptr,0,SEEK_SET);&lt;br /&gt;            b: fseek(ptr,0,SEEK_CUR);&lt;br /&gt; &lt;br /&gt;Answer :&lt;br /&gt;            a: The SEEK_SET sets the file position marker to the starting of the file.&lt;br /&gt;                        b: The SEEK_CUR sets the file position marker to the current position&lt;br /&gt;            of the file.&lt;br /&gt;56.       main()&lt;br /&gt;            {&lt;br /&gt;            char name[10],s[12];&lt;br /&gt;            scanf(" \"%[^\"]\"",s);&lt;br /&gt;            }&lt;br /&gt;            How scanf will execute? &lt;br /&gt;Answer:&lt;br /&gt;First it checks for the leading white space and discards it.Then it matches with a quotation mark and then it  reads all character upto another quotation mark.&lt;br /&gt;57.       What is the problem with the following code segment?&lt;br /&gt;            while ((fgets(receiving array,50,file_ptr)) != EOF)&lt;br /&gt;                                    ;&lt;br /&gt;Answer &amp; Explanation:&lt;br /&gt;fgets returns a pointer. So the correct end of file check is checking for != NULL.&lt;br /&gt;58.   main()&lt;br /&gt;            {&lt;br /&gt;            main();&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt; Runtime error : Stack overflow.&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;main function calls itself again and again. Each time the function is called its return address is stored in the call stack. Since there is no condition to terminate the function call, the call stack overflows at runtime. So it terminates the program and results in an error.&lt;br /&gt;59.      main()&lt;br /&gt;            {&lt;br /&gt;            char *cptr,c;&lt;br /&gt;            void *vptr,v;&lt;br /&gt;            c=10;  v=0;&lt;br /&gt;            cptr=&amp;c; vptr=&amp;v;&lt;br /&gt;            printf("%c%v",c,v);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler error (at line number 4): size of v is Unknown.&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;You can create a variable of type void * but not of type void, since void is an empty type. In the second line you are creating variable vptr of type void * and v of type void hence an error.&lt;br /&gt;60.       main()&lt;br /&gt;            {&lt;br /&gt;            char *str1="abcd";&lt;br /&gt;            char str2[]="abcd";&lt;br /&gt;            printf("%d %d %d",sizeof(str1),sizeof(str2),sizeof("abcd"));&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;2 5 5&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;In first sizeof, str1 is a character pointer so it gives you the size of the pointer variable. In second sizeof the name str2 indicates the name of the array whose size is 5 (including the '\0' termination character). The third sizeof is similar to the second one.&lt;br /&gt;61.      main()&lt;br /&gt;            {&lt;br /&gt;            char not;&lt;br /&gt;            not=!2;&lt;br /&gt;            printf("%d",not);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;0&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;! is a logical operator. In C the value 0 is considered to be the boolean value FALSE, and any non-zero value is considered to be the boolean value TRUE. Here 2 is a non-zero value so TRUE. !TRUE is FALSE (0) so it prints 0.&lt;br /&gt;62.       #define FALSE -1&lt;br /&gt;            #define TRUE   1&lt;br /&gt;            #define NULL   0&lt;br /&gt;            main() {&lt;br /&gt;               if(NULL)&lt;br /&gt;                        puts("NULL");&lt;br /&gt;               else if(FALSE)&lt;br /&gt;                        puts("TRUE");&lt;br /&gt;               else&lt;br /&gt;                        puts("FALSE");&lt;br /&gt;               }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;TRUE&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The input program to the compiler after processing by the preprocessor is,&lt;br /&gt;            main(){&lt;br /&gt;                        if(0)&lt;br /&gt;                                    puts("NULL");&lt;br /&gt;            else if(-1)&lt;br /&gt;                                    puts("TRUE");&lt;br /&gt;            else&lt;br /&gt;                                    puts("FALSE");&lt;br /&gt;                        }&lt;br /&gt;Preprocessor doesn't replace the values given inside the double quotes. The check by if condition is boolean value false so it goes to else. In second if -1 is boolean value true hence "TRUE" is printed.&lt;br /&gt;&lt;br /&gt;63.     main()&lt;br /&gt;            {&lt;br /&gt;            int k=1;&lt;br /&gt;            printf("%d==1 is ""%s",k,k==1?"TRUE":"FALSE");&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;1==1 is TRUE&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;When two strings are placed together (or separated by white-space) they are concatenated (this is called as "stringization" operation). So the string is as if it is given as "%d==1 is %s". The conditional operator( ?: ) evaluates to "TRUE".&lt;br /&gt;64.       main()&lt;br /&gt;            {&lt;br /&gt;            int y;&lt;br /&gt;            scanf("%d",&amp;y); // input given is 2000&lt;br /&gt;            if( (y%4==0 &amp;&amp; y%100 != 0) || y%100 == 0 )&lt;br /&gt;                 printf("%d is a leap year");&lt;br /&gt;            else&lt;br /&gt;                 printf("%d is not a leap year");&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;2000 is a leap year&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;An ordinary program to check if leap year or not.&lt;br /&gt;65.       #define max 5&lt;br /&gt;            #define int arr1[max]&lt;br /&gt;            main()&lt;br /&gt;            {&lt;br /&gt;            typedef char arr2[max];&lt;br /&gt;            arr1 list={0,1,2,3,4};&lt;br /&gt;            arr2 name="name";&lt;br /&gt;            printf("%d %s",list[0],name);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler error (in the line arr1 list = {0,1,2,3,4})&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;arr2 is declared of type array of size 5 of characters. So it can be used to declare the variable name of the type arr2. But it is not the case of arr1. Hence an error.&lt;br /&gt;Rule of Thumb: &lt;br /&gt;#defines are used for textual replacement whereas typedefs are used for declaring new types.&lt;br /&gt;66.       int i=10;&lt;br /&gt;            main()&lt;br /&gt;            {&lt;br /&gt;             extern int i;&lt;br /&gt;              {&lt;br /&gt;                 int i=20;&lt;br /&gt;                        {&lt;br /&gt;                         const volatile unsigned i=30;&lt;br /&gt;                         printf("%d",i);&lt;br /&gt;                        }&lt;br /&gt;                  printf("%d",i);&lt;br /&gt;               }&lt;br /&gt;            printf("%d",i);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;30,20,10&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;'{' introduces new block and thus new scope. In the innermost block i is declared as, &lt;br /&gt;            const volatile unsigned&lt;br /&gt;which is a valid declaration. i is assumed of type int. So printf prints 30. In the next block, i has value 20 and so printf prints 20. In the outermost block, i is declared as extern, so no storage space is allocated for it. After compilation is over the linker resolves it to global variable i (since it is the only variable visible there). So it prints i's value as 10.&lt;br /&gt;67.       main()&lt;br /&gt;            {&lt;br /&gt;                int *j;&lt;br /&gt;                {&lt;br /&gt;                 int i=10;&lt;br /&gt;                 j=&amp;i;&lt;br /&gt;                 }&lt;br /&gt;                 printf("%d",*j);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;10&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;The variable i is a block level variable and the visibility is inside that block only. But the lifetime of i is lifetime of the function so it lives upto the exit of main function. Since the i is still allocated space, *j prints the value stored in i since j points i.&lt;br /&gt;68.      main()&lt;br /&gt;            {&lt;br /&gt;            int i=-1;&lt;br /&gt;            -i;&lt;br /&gt;            printf("i = %d, -i = %d \n",i,-i);&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;i = -1, -i = 1&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;-i is executed and this execution doesn't affect the value of i. In printf first you just print the value of i. After that the value of the expression -i = -(-1) is printed.&lt;br /&gt;69.       #include&lt;br /&gt;main()&lt;br /&gt; {&lt;br /&gt;   const int i=4;&lt;br /&gt;   float j;&lt;br /&gt;   j = ++i;&lt;br /&gt;   printf("%d  %f", i,++j);&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;Compiler error &lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;i is a constant. you cannot change the value of constant &lt;br /&gt;70.       #include&lt;br /&gt;main()&lt;br /&gt;{&lt;br /&gt;  int a[2][2][2] = { {10,2,3,4}, {5,6,7,8}  };&lt;br /&gt;  int *p,*q;&lt;br /&gt;  p=&amp;a[2][2][2];&lt;br /&gt;  *q=***a;&lt;br /&gt;  printf("%d..%d",*p,*q);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;garbagevalue..1&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;p=&amp;a[2][2][2]  you declare only two 2D arrays. but you are trying to access the third 2D(which you are not declared) it will print garbage values. *q=***a starting address of a is assigned integer pointer. now q is pointing to starting address of a.if you print *q meAnswer:it will print first element of 3D array.&lt;br /&gt;71.      #include&lt;br /&gt;main()&lt;br /&gt;  {&lt;br /&gt;    register i=5;&lt;br /&gt;    char j[]= "hello";                     &lt;br /&gt;     printf("%s  %d",j,i);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;hello 5&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;if you declare i as register  compiler will treat it as ordinary integer and it will take integer value. i value may be  stored  either in register  or in memory.&lt;br /&gt;72.      main()&lt;br /&gt;{&lt;br /&gt;              int i=5,j=6,z;&lt;br /&gt;              printf("%d",i+++j);&lt;br /&gt;             }&lt;br /&gt;&lt;br /&gt;Answer:&lt;br /&gt;11&lt;br /&gt;&lt;br /&gt;Explanation:&lt;br /&gt;the expression i+++j is treated as (i++ + j)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-2582575418475710958?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/2582575418475710958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=2582575418475710958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/2582575418475710958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/2582575418475710958'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/04/c-aptitude-questions-and-answers.html' title='C Aptitude Questions and Answers'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-6253115603947311036</id><published>2008-04-10T03:39:00.001+05:30</published><updated>2008-04-10T03:44:54.265+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.Net Interview Question'/><title type='text'>Asp.net 2.0 Interview QA</title><content type='html'>&lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;How many languages .NET is supporting now?&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. 44 languages are supported. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;How is .NET able to support multiple languages?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;A language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;How ASP .NET different from ASP?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Scripting is separated from the HTML, Code is compiled as a DLL, these DLLs can be executed on the server. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;What is smart navigation? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;What is view state? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;The web is stateless. But in ASP.NET, the state of a page is maintained in the in the page itself automatically. How? The values are encrypted and saved in hidden controls. this is done automatically by the ASP.NET. This can be switched off / on for a single control &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;How do you validate the controls in an ASP .NET page? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Using special validation controls that are meant for this. We have Range Validator, Email Validator. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;Can the validation be done in the server side? Or this can be done only in the Client side? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Client side is done by default. Server side validation is also possible. We can switch off the client side and server side can be done. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;How to manage pagination in a page? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Using pagination option in DataGrid control. We have to set the number of records for a page, then it takes care of pagination by itself. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;What is ADO .NET and what is difference between ADO and ADO.NET? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;ADO.NET is stateless mechanism. I can treat the ADO.Net as a separate in-memory database where in I can use relationships between the tables and select insert and updates to the database. I can update the actual database as a batch.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;Explain the differences between Server-side and Client-side code?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Server side scripting means that all the script will be executed by the server and interpreted as needed. ASP doesn’t have some of the functionality like sockets, uploading, etc. For these you have to make a custom components usually in VB or VC++. Client side scripting means that the script will be executed immediately in the browser such as form field validation, clock, email validation, etc. Client side scripting is usually done in VBScript or JavaScript. Download time, browser compatibility, and visible code - since JavaScript and VBScript code is included in the HTML page, then anyone can see the code by viewing the page source. Also a possible security hazards for the client computer. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;What type of code (server or client) is found in a Code-Behind class? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;C# &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;Should validation (did the user enter a real date) occur server-side or client-side? Why? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Client-side validation because there is no need to request a server side date when you could obtain a date from the client machine. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;What does the "EnableViewState" property do? Why would I want it on or off? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Enable ViewState turns on the automatic state management feature that enables server controls to re-populate their values on a round trip without requiring you to write any code. This feature is not free however, since the state of a control is passed to and from the server in a hidden form field. You should be aware of when ViewState is helping you and when it is not. For example, if you are binding a control to data on every round trip (as in the datagrid example in tip #4), then you do not need the control to maintain it’s view state, since you will wipe out any re-populated data in any case. ViewState is enabled for all server controls by default. To disable it, set the EnableViewState property of the control to false. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;What is the difference between Server.Transfer and Response.Redirect? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Why would I choose one over the other? Server.Transfer() : client is shown as it is on the requesting page only, but the all the content is of the requested page. Data can be persist across the pages using Context.Item collection, which is one of the best way to transfer data from one page to another keeping the page state alive. Response.Dedirect() :client know the physical location (page name and query string as well). Context.Items loses the persistence when navigate to destination page. In earlier versions of IIS, if we wanted to send a user to a new Web page, the only option we had was Response.Redirect. While this method does accomplish our goal, it has several important drawbacks. The biggest problem is that this method causes each page to be treated as a separate transaction. Besides making it difficult to maintain your transactional integrity, Response.Redirect introduces some additional headaches. First, it prevents good encapsulation of code. Second, you lose access to all of the properties in the Request object. Sure, there are workarounds, but they’re difficult. Finally, Response.Redirect necessitates a round trip to the client, which, on high-volume sites, causes scalability problems. As you might suspect, Server.Transfer fixes all of these problems. It does this by performing the transfer on the server without requiring a roundtrip to the client. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: blue;"&gt;Can you give an example of when it would be appropriate to use a web service as opposed to a non-serviced .NET component? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;When to Use Web Services:&lt;br /&gt;* Communicating through a Firewall When building a distributed application with 100s/1000s of users spread over multiple locations, there is always the problem of communicating between client and server because of firewalls and proxy servers. Exposing your middle tier components as Web Services and invoking the directly from a Windows UI is a very valid option.&lt;br /&gt;&lt;br /&gt;* Application Integration When integrating applications written in various languages and running on disparate systems. Or even applications running on the same platform that have been written by separate vendors.&lt;br /&gt;&lt;br /&gt;* Business-to-Business Integration This is an enabler for B2B integration which allows one to expose vital business processes to authorized supplier and customers. An example would be exposing electronic ordering and invoicing, allowing customers to send you purchase orders and suppliers to send you invoices electronically.&lt;br /&gt;&lt;br /&gt;* Software Reuse This takes place at multiple levels. Code Reuse at the Source code level or binary component-based reuse. The limiting factor here is that you can reuse the code but not the data behind it. Webservice overcome this limitation. A scenario could be when you are building an app that aggregates the functionality of several other Applications. Each of these functions could be performed by individual apps, but there is value in perhaps combining the multiple apps to present a unified view in a Portal or Intranet.&lt;br /&gt;&lt;br /&gt;* When not to use Web Services: Single machine Applications When the apps are running on the same machine and need to communicate with each other use a native API. You also have the options of using component technologies such as COM or .NET Components as there is very little overhead.&lt;br /&gt;&lt;br /&gt;* Homogeneous Applications on a LAN If you have Win32 or Winforms apps that want to communicate to their server counterpart. It is much more efficient to use DCOM in the case of Win32 apps and .NET Remoting in the case of .NET Apps.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: red;"&gt;Can you explain the difference between an ADO.NET Dataset and an ADO Recordset?&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;In ADO, the in-memory representation of data is the RecordSet. In ADO.NET, it is the dataset. There are important differences between them.&lt;br /&gt;&lt;br /&gt;* A RecordSet looks like a single table. If a recordset is to contain data from multiple database tables, it must use a JOIN query, which assembles the data from the various database tables into a single result table. In contrast, a dataset is a collection of one or more tables. The tables within a dataset are called data tables; specifically, they are DataTable objects. If a dataset contains data from multiple database tables, it will typically contain multiple DataTable objects. That is, each DataTable object typically corresponds to a single database table or view. In this way, a dataset can mimic the structure of the underlying database. A dataset usually also contains relationships. A relationship within a dataset is analogous to a foreign-key relationship in a database —that is, it associates rows of the tables with each other. For example, if a dataset contains a table about investors and another table about each investor’s stock purchases, it could also contain a relationship connecting each row of the investor table with the corresponding rows of the purchase table. Because the dataset can hold multiple, separate tables and maintain information about relationships between them, it can hold much richer data structures than a recordset, including self-relating tables and tables with many-to-many relationships.&lt;br /&gt;&lt;br /&gt;* In ADO you scan sequentially through the rows of the recordset using the ADO MoveNext method. In ADO.NET, rows are represented as collections, so you can loop through a table as you would through any collection, or access particular rows via ordinal or primary key index. DataRelation objects maintain information about master and detail records and provide a method that allows you to get records related to the one you are working with. For example, starting from the row of the Investor table for "Nate Sun," you can navigate to the set of rows of the Purchase table describing his purchases. A cursor is a database element that controls record navigation, the ability to update data, and the visibility of changes made to the database by other users. ADO.NET does not have an inherent cursor object, but instead includes data classes that provide the functionality of a traditional cursor. For example, the functionality of a forward-only, read-only cursor is available in the ADO.NET DataReader object. For more information about cursor functionality, see Data Access Technologies.&lt;br /&gt;&lt;br /&gt;* Minimized Open Connections: In ADO.NET you open connections only long enough to perform a database operation, such as a Select or Update. You can read rows into a dataset and then work with them without staying connected to the data source. In ADO the recordset can provide disconnected access, but ADO is designed primarily for connected access. There is one significant difference between disconnected processing in ADO and ADO.NET. In ADO you communicate with the database by making calls to an OLE DB provider. In ADO.NET you communicate with the database through a data adapter (an OleDbDataAdapter, SqlDataAdapter, OdbcDataAdapter, or OracleDataAdapter object), which makes calls to an OLE DB provider or the APIs provided by the underlying data source. The important difference is that in ADO.NET the data adapter allows you to control how the changes to the dataset are transmitted to the database — by optimizing for performance, performing data validation checks, or adding any other extra processing. Data adapters, data connections, data commands, and data readers are the components that make up a .NET Framework data provider. Microsoft and third-party providers can make available other .NET Framework data providers that can be integrated into Visual Studio.&lt;br /&gt;&lt;br /&gt;* Sharing Data Between Applications. Transmitting an ADO.NET dataset between applications is much easier than transmitting an ADO disconnected recordset. To transmit an ADO disconnected recordset from one component to another, you use COM marshalling. To transmit data in ADO.NET, you use a dataset, which can transmit an XML stream.&lt;br /&gt;&lt;br /&gt;* Richer data types.COM marshalling provides a limited set of data types — those defined by the COM standard. Because the transmission of datasets in ADO.NET is based on an XML format, there is no restriction on data types. Thus, the components sharing the dataset can use whatever rich set of data types they would ordinarily use.&lt;br /&gt;&lt;br /&gt;* Performance. Transmitting a large ADO recordset or a large ADO.NET dataset can consume network resources; as the amount of data grows, the stress placed on the network also rises. Both ADO and ADO.NET let you minimize which data is transmitted. But ADO.NET offers another performance advantage, in that ADO.NET does not require data-type conversions. ADO, which requires COM marshalling to transmit records sets among components, does require that ADO data types be converted to COM data types.&lt;br /&gt;&lt;br /&gt;* Penetrating Firewalls.A firewall can interfere with two components trying to transmit disconnected ADO recordsets. Remember, firewalls are typically configured to allow HTML text to pass, but to prevent system-level requests (such as COM marshalling) from passing.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Can you give an example of what might be best suited to place in the Application_Start and Session_Start subroutines?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;The Application_Start event is guaranteed to occur only once throughout the lifetime of the application. It’s a good place to initialize global variables. For example, you might want to retrieve a list of products from a database table and place the list in application state or the Cache object. SessionStateModule exposes both Session_Start and Session_End events.&lt;br /&gt;&lt;br /&gt;If I’m developing an application that must accomodate multiple security levels though secure login and my ASP.NET web appplication is spanned across three web-servers (using round-robbin load balancing) what would be the best approach to maintain login-in state for the users? &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;What are ASP.NET Web Forms? How is this technology different than what is available though ASP? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Web Forms are the heart and soul of ASP.NET. Web Forms are the User Interface (UI) elements that give your Web applications their look and feel. Web Forms are similar to Windows Forms in that they provide properties, methods, and events for the controls that are placed onto them. However, these UI elements render themselves in the appropriate markup language required by the request, e.g. HTML. If you use Microsoft Visual Studio .NET, you will also get the familiar drag-and-drop interface used to create your UI for your Web application. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;How does VB.NET/C# achieve polymorphism?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;By using Abstract classes/functions.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Can you explain what inheritance is and an example of when you might use it? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Inheritance is a fundamental feature of an object oriented system and it is simply the ability to inherit data and functionality from a parent object. Rather than developing new objects from scratch, new code can be based on the work of other programmers, adding only new features that are needed. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;How would you implement inheritance using VB.NET/C#? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;When we set out to implement a class using inheritance, we must first start with an existing class from which we will derive our new subclass. This existing class, or base class, may be part of the .NET system class library framework, it may be part of some other application or .NET assembly, or we may create it as part of our existing application. Once we have a base class, we can then implement one or more subclasses based on that base class. Each of our subclasses will automatically have all of the methods, properties, and events of that base class ? including the implementation behind each method, property, and event. Our subclass can add new methods, properties, and events of its own - extending the original interface with new functionality. Additionally, a subclass can replace the methods and properties of the base class with its own new implementation - effectively overriding the original behavior and replacing it with new behaviors. Essentially inheritance is a way of merging functionality from an existing class into our new subclass. Inheritance also defines rules for how these methods, properties, and events can be merged. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;What's an assembly?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Assemblies are the building blocks of .NET Framework applications; they form the fundamental unit of deployment, version control, reuse, activation scoping, and security permissions. An assembly is a collection of types and resources that are built to work together and form a logical unit of functionality. An assembly provides the common language runtime with the information it needs to be aware of type implementations. To the runtime, a type does not exist outside the context of an assembly. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Describe the difference between inline and code behind - which is best in a loosely coupled solution? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;ASP.NET supports two modes of page development: Page logic code that is written inside blocks within an .aspx file and dynamically compiled the first time the page is requested on the server. Page logic code that is written within an external class that is compiled prior to deployment on a server and linked "behind" the .aspx file at run time. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Explain what a diffgram is, and a good use for one? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;A DiffGram is an XML format that is used to identify current and original versions of data elements. The DataSet uses the DiffGram format to load and persist its contents, and to serialize its contents for transport across a network connection. When a DataSet is written as a DiffGram, it populates the DiffGram with all the necessary information to accurately recreate the contents, though not the schema, of the DataSet, including column values from both the Original and Current row versions, row error information, and row order. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Where would you use an iHTTPModule, and what are the limitations of anyapproach you might take in implementing one? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;One of ASP.NET’s most useful features is the extensibility of the HTTP pipeline, the path that data takes between client and server. You can use them to extend your ASP.NET applications by adding pre- and post-processing to each HTTP request coming into your application. For example, if you wanted custom authentication facilities for your application, the best technique would be to intercept the request when it comes in and process the request in a custom HTTP module. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;In what order do the events of an ASPX page execute. As a developer is it important to understand these events? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Every Page object (which your .aspx page is) has nine events, most of which you will not have to worry about in your day to day dealings with ASP.NET. The three that you will deal with the most are: Page_Init, Page_Load, Page_PreRender. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Which method do you invoke on the DataAdapter control to load your generated dataset with data?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;System.Data.Common.DataAdapter.Fill(System.Data.DataSet);&lt;br /&gt;If my DataAdapter is sqlDataAdapter and my DataSet is dsUsers then it is called this way:&lt;br /&gt;sqlDataAdapter.Fill(dsUsers);&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;; color: red;"&gt;Which template must you provide, in order to display data in a Repeater control? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;ItemTemplate &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;How can you provide an alternating color scheme in a Repeater control? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;AlternatingItemTemplate Like the ItemTemplate element, but rendered for every other row (alternating items) in the Repeater control. You can specify a different appearance for the AlternatingItemTemplate element by setting its style properties. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;You must set the DataMember property which Gets or sets the specific table in the DataSource to bind to the control and the DataBind method to bind data from a source to a server control. This method is commonly used after retrieving a data set through a database query. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;What base class do all Web Forms inherit from? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;System.Web.UI.Page &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;What method do you use to explicitly kill a user’s session?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;The Abandon method destroys all the objects stored in a Session object and releases their resources.&lt;br /&gt;If you do not call the Abandon method explicitly, the server destroys these objects when the session times out.&lt;br /&gt;Syntax: Session.Abandon &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;How do you turn off cookies for one page in your site? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Use the Cookie.Discard Property which Gets or sets the discard flag set by the server. When true, this property instructs the client application not to save the Cookie on the user’s hard disk when a session ends. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Which two properties are on every validation control? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;ControlToValidate &amp;amp; ErrorMessage properties &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;How do you create a permanent cookie?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Setting the Expires property to MinValue means that the Cookie never expires. &lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal" style="line-height: normal;"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;Which method do you use to redirect the user to another page without performing a round trip to the client?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt; &lt;/span&gt;&lt;/b&gt;&lt;span style="font-size: 12pt; font-family: &amp;quot;Times New Roman&amp;quot;,&amp;quot;serif&amp;quot;;"&gt;&lt;br /&gt;Server.transfer()&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span class="forquestionsblue"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What is the transport protocol you use to call a Web service?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;SOAP. Transport Protocols: It is essential for the acceptance of Web Services that they are based on established Internet infrastructure. This in fact imposes the usage of of the HTTP, SMTP and FTP protocols based on the TCP/IP family of transports. Messaging Protocol: The format of messages exchanged between Web Services clients and Web Services should be vendor neutral and should not carry details about the technology used to implement the service. Also, the message format should allow for extensions and different bindings to specific transport protocols. SOAP and ebXML Transport are specifications which fulfill these requirements. We expect that the W3C XML Protocol Working Group defines a successor standard. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;SOAP is not the transport protocol. SOAP is the data encapsulation protocol that is used but the transport protocol is fairly unlimited. Generally HTTP is the most common transport protocol used though you could conceivanly use things like SMTP or any others. SOAP is not dependant on any single transport protocol or OS, it is a syntactical and logical definition, not a transport protocol. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;True or False: A Web service can only be written in .NET.? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;False. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What does WSDL stand for? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Web Services Description Language &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;Where on the Internet would you look for Web services? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;UDDI repositaries like uddi.microsoft.com, IBM UDDI node, UDDI Registries in Google Directory, enthusiast sites like XMethods.net. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What tags do you need to add within the asp:datagrid tags to bind columns manually? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Column tag and an ASP:databound tag. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span class="forquestionsblue"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;How is a property designated as read-only?&lt;/span&gt;&lt;/u&gt; &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;In VB.NET:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Public ReadOnly Property PropertyName As ReturnType&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Get ‘Your Property Implementation goes in here&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;End Get&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;End Property&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;in C#&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;public returntype PropertyName&lt;/span&gt;&lt;br /&gt;{&lt;br /&gt;&lt;span class="answers"&gt;get{&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;//property implementation goes here&lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;span class="answers"&gt;// Do not write the set implementation&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;} &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;Which control would you use if you needed to make sure the values in two different controls matched? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Use the CompareValidator control to compare the values of 2 different controls.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;True or False: To test a Web service you must create a windows application or Web application to consume this service? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;False. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;How many classes can a single .NET DLL contain?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Unlimited. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;Describe session handling in a webfarm, how does it work and what are the limits? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Set the sessionState mode in the web.config file to “StateServer”.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;StateServer mode uses an out-of-process Windows NT Server to store state information.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;It solves the session state loss problem in InProc mode.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Allows a webfarm to store session on a central server.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;It provides a Single point of failure at the State Server.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Follow these simple steps:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;- In a web farm, make sure you have the same in all your web servers.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;- Also, make sure your objects are serializable.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;- For session state to be maintained across different web servers in the web farm, the Application Path of the website in the IIS Metabase should be identical in all the web servers in the web farm.&lt;/span&gt; &lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What are the disadvantages of viewstate/what are the benefits? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Disadvantage of viewstate is that additional data is sent to the browser. The benefits are that you do not have to manually manage refreshing the page fields after a submit, (when re-displaying the same page). &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Automatic view-state management is a feature of server controls that enables them to repopulate their property values on a round trip (without you having to write any code). This feature does impact performance, however, since a server control’s view state is passed to and from the server in a hidden form field. You should be aware of when view state helps you and when it hinders your page’s performance. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What tags do you need to add within the asp:datagrid tags to bind columns manually? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Set AutoGenerateColumns Property to false on the datagrid tag &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;tag and either or tags (with appropriate attributes of course) &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What is State Management in .Net and how many ways are there to maintain a state in .Net? What is view state? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Web pages are recreated each time the page is posted to the server. In traditional Web programming, this would ordinarily mean that all information associated with the page and the controls on the page would be lost with each round trip.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;To overcome this inherent limitation of traditional Web programming, the ASP.NET page framework includes various options to help you preserve changes — that is, for managing state. The page framework includes a facility called view state that automatically preserves property values of the page and all the controls on it between round trips.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;However, you will probably also have application-specific values that you want to preserve. To do so, you can use one of the state management options.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Client-Based State Management Options:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;View State&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Hidden Form Fields&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Cookies&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Query Strings&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Server-Based State Management Options&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Application State&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Session State&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Database Support&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What tag do you use to add a hyperlink column to the DataGrid? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Depends on who’s definition of hyperlink your using. Manually a std html anchor tag (a) will work or you can use the micro-magical tag &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What is the standard you use to wrap up a call to a Web service? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Several possible answers depending on your interpretation of the quesiton, but I think you were aiming for SOAP (with the caveat that this is MS’s version of SOAP) &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What is the difference between boxing and unboxing ? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Boxing allows us to convert value types to reference types. Basically, the runtime creates a temporary reference-type box for the object on heap.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Eg:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;int i=20;&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;object o=i; &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;Describe the difference between a Thread and a Process? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Thread - is used to execute more than one program at a time. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;process - executes single program &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;A thread is a path of execution that run on CPU, a proccess is a collection of threads that share the same virtual memory. A process have at least one thread of execution, and a thread always run in a process context. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer3:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;The operating system creates a process for the purpose of running a program. Each process executes a single program. Processes own resources allocated by the operating system. Resources include memory, file handles, sockets, device handles, and windows. Processes do not share address spaces or file resources except through explicit methods such as inheriting file handles or shared memory segments, or mapping the same file in a shared way. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Threads allow a program to do multiple things concurrently. At least one thread exists within each process. If multiple threads can exist within a process, then they share the same memory and file resources. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer4:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Thread is a light weight process, which is initialized itself by a process. Light weigt processes does not loads resources required by it itself, these are loaded by its parent process which has generated it. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What is a Windows Service and how does its lifecycle differ from a “standard” EXE? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Windows Service applications are long-running applications that are ideal for use in server environments. The applications do not have a user interface or produce any visual output; it is instead used by other programs or the system to perform operations. Any user messages are typically written to the Windows Event Log. Services can be automatically started when the computer is booted. This makes services ideal for use on a server or whenever you need long-running functionality that does not interfere with other users who are working on the same computer. They do not require a logged in user in order to execute and can run under the context of any user including the system. Windows Services are controlled through the Service Control Manager where they can be stopped, paused, and started as needed.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span class="forquestionsblue"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: red;"&gt;What is the difference between an EXE and a DLL?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span class="answers"&gt;An EXE can run independently, whereas DLL will run within an EXE. DLL is an in-process file and EXE is an out-process file &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;What is strong-typing versus weak-typing? Which is preferred? Why?&lt;/u&gt; &lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Strong type is checking the types of variables as soon as possible, usually at compile time. While weak typing is delaying checking the types of the system as late as possible, usually to run-time. Which is preferred depends on what you want. For scripts &amp;amp; quick stuff you’ll usually want weak typing, because you want to write as much less code as possible. In big programs, strong typing can reduce errors at compile time. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;What are PDBs? Where must they be located for debugging to work? &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;To debug precompiled components such as business objects and code-behind modules, you need to generate debug symbols. To do this, compile the components with the debug flags by using either Visual Studio .NET or a command line compiler such as Csc.exe (for Microsoft Visual C# .NET) or Vbc.exe (for Microsoft Visual Basic .NET). &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Using Visual Studio .NET &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;1. Open the ASP.NET Web Application project in Visual Studio .NET. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;2. Right-click the project in the Solution Explorer and click Properties. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;3. In the Properties dialog box, click the Configuration Properties folder. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;4. In the left pane, select Build. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;5. Set Generate Debugging Information to true. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;6. Close the Properties dialog box. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;7. Right-click the project and click Build to compile the project and generate symbols (.pdb files). &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;A program database (PDB) file holds debugging and project state information that allows incremental linking of a Debug configuration of your program. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;The linker creates project.PDB, which contains debug information for the project’s EXE file. The project.PDB contains full debug information, including function prototypes, not just the type information found in VCx0.PDB. Both PDB files allow incremental updates. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;They should be located at bin\Debug directory &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;What is cyclomatic complexity and why is it important? &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Cyclomatic complexity is a computer science metric (measurement) developed by Thomas McCabe used to generally measure the complexity of a program. It directly measures the number of linearly independent paths through a program’s source code. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;The concept, although not the method, is somewhat similar to that of general text complexity measured by the Flesch-Kincaid Readability Test. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Cyclomatic complexity is computed using a graph that describes the control flow of the program. The nodes of the graph correspond to the commands of a program. A directed edge connects two nodes, if the second command might be executed immediately after the first command. By definition, &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;CC = E - N + P &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;where &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;CC = cyclomatic complexity &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;E = the number of edges of the graph &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;N = the number of nodes of the graph &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;P = the number of connected components. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;What is FullTrust? Do GAC’ed assemblies have FullTrust?&lt;/u&gt; &lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Your code is allowed to do anything in the framework, meaning that all (.Net) permissions are granted. The GAC has FullTrust because it’s on the local HD, and that has FullTrust by default, you can change that using caspol&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;What does this do? gacutil /l | find /i “about” &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;This command is used to install strong typed assembly in GAC &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;gacutil.exe is used to install strong typed assembly in GAC. gacutil.exe /l is used to lists the contents of the global assembly cache. |(pipe) symbol is used to filter the output with another command. find /i “about” is to find the text “about” on gacutil output. If any lines contains the text “about” then that line will get displayed on console window. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span class="forquestionsblue"&gt;&lt;b&gt;&lt;u&gt;Contrast OOP and SOA. What are tenets of each &lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Service Oriented Architecture. In SOA you create an abstract layer that your applications use to access various “services” and can aggregate the services. These services could be databases, web services, message queues or other sources. The Service Layer provides a way to access these services that the applications do not need to know how the access is done. For example, to get a full customer record, I might need to get data from a SGL Server database, a web service and a message queue. The Service layer hides this from the calling application. All the application knows is that it asked for a full customer record. It doesn’t know what system or systems it came from or how it was retrieved. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;How does the XmlSerializer work? What ACL permissions does a process using it require? &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;XmlSerializer requires write permission to the system’s TEMP directory. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;Why is catch(Exception) almost always a bad idea?&lt;/u&gt; &lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;What is the difference between Debug. Write and Trace. Write? When should each be used? &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;The Debug. Write call won’t be compiled when the DEBUG symbol is not defined (when doing a release build). Trace. Write calls will be compiled. Debug. Write is for information you want only in debug builds, Trace. Write is for when you want it in release build as well. And in any case, you should use something like log4net because that is both faster and better &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Debug. Write &amp;amp; Trace. write - both works in Debug mode, while in Release Mode,Trace.write only will work .Try changing the Active Config property of Solution in Property page nd find the difference. Debug.write is used while debugging a project and Trace.write is used in Released version of Applications. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not? &lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Debug build contain debug symbols and can be debugged while release build doesn’t contain debug symbols, doesn’t have [Conational(”DEBUG”)] methods calls compiled, can’t be debugged (easily, that is), less checking, etc. There should be a speed difference, because of disabling debug methods, reducing code size etc but that is not a guarantee (at least not a significant one)&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span class="forquestionsblue"&gt;&lt;b&gt;&lt;u&gt;Contrast the use of an abstract base class against an interface? &lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;In the interface all methods must be abstract, in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Whether to Choose VB.NET/C#.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Both the languages are using same classes and namespaces. Once it compile and generates MSIL, there is no meaning of which language it was written. If you are Java/C++ programmer better to choose C# for same coding style otherwise you can choose VB.net.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span class="forquestionsblue"&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What is the difference between a.Equals(b) and a == b?&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a=b is used for assigning the values (rather then comparison) and a==b is for comparison. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a == b is used to compare the references of two objects &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a.Equals(b) is used to compare two objects &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer3:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;A equals b -&gt; copies contents of b to a&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a == b -&gt; checks if a is equal to b &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer4:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Equals method compares both type and value of the variable, while == compares value. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;int a = 0;&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;bool b = 0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;if(a.Equals(b)) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer5:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a.Equals(b) checks whether the Type of a is equal to b or not! Put it in another way,&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Dim a As Integer = 1&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Dim b As Single = 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;a.Equals(b) returns false. The Equals method returns a boolean value. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a == b is a simple assignment statement. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer6:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a.equals(b) will check whether the “b” has same type as “a” has and also has the same data as “a” has. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a==b will do the same thing. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;if you have done this in c++ under “operator overloading” than you guys must be aware of this sytaxts. they are doing the same thing there is only sytaxtical difference. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;let me explain it in different manner.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a==b : means compare “b” with “a”. always left hand side expression evaluated first so here in this case “a” (considered an object) will call the overloaded operator “=” which defines “Equals(object)” method in it’s class. thus, ultimately a.equals(b) goanna called. &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;so the answer is: both will perform the same task. they are different by syntaxt &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer7:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Difference b/w a==b,a.Equals(b)&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;a.Equals(b):&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;The default implementation of Equals supports reference equality only, but derived classes can override this method to support value equality. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;For reference types, equality is defined as object equality; that is, whether the references refer to the same object. For value types, equality is defined as bitwise equality&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;== :&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;For predefined value types, the equality operator (==) returns true if the values of its operands are equal, false otherwise. For reference types other than string, == returns true if its two operands refer to the same object. For the string type, == compares the values of the strings.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;How would one do a deep copy in .NET?&lt;/span&gt;&lt;/u&gt; &lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;System.Array.CopyTo() - Deep copies an Array &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;How would one do a deep copy in .NET?&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;The First Approach.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;1.Create a new instance.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;2.Copy the properties from source instance to newly created instance.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;[Use reflection if you want to write a common method to achive this]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;The Second Approach.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;1. Serialize the object and deserialize the output.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;: Use binary serialization if you want private variables to be copied.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;: Use xml Serialization if you dont want private variable to be copied.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What is boxing? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Boxing is an implicit conversion of a value type to the type object &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;int i = 123; // A value type &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Object box = i // Boxing &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Unboxing is an explicit conversion from the type object to a value type &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;int i = 123; // A value type object box = i; // Boxing &lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;int j = (int)box; // Unboxing &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;Is string a value type or a reference type? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer1:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;String is Reference Type.&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short,strut, uint, ulong, ushort&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Value types are stored in the Stack&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Reference type - class, delegate, interface, object, string&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Reference types are stored in the Heap&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;Answer2:&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;Yes String is reference type. C# gives two types of variable reference and value type. string and object are reference type. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;How does the lifecycle of Windows services differ from Standard EXE? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Windows services lifecycle is managed by “Service Control Manager” which is responsible for starting and stopping the service and the applications do not have a user interface or produce any visual output, but “Standard executable” doesn’t require Control Manager and is directly related to the visual output &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What’s wrong with a line like this? DateTime.Parse(myString) &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;the result returned by this function is not assigned to anything, should be something like varx = DateTime.Parse(myString) &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;NET is Compile Time OR RunTime Environment? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;.Net’s framework has CLS,CTS and CLR.CTS checks declartion of types at the time when u write code and CLS defines some rules and restrictions.and CLR comile everything at runtime with following benefits: Vastly simplified development Seamless integration of code written in various languages Evidence-based security with code identity Assembly-based deployment that eliminates DLL Hell Side-by-side versioning of reusable components Code reuse through implementation inheritance Automatic object lifetime management Self describing objects &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.&lt;/span&gt;&lt;/u&gt; &lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll takes care of it by passing the request tothe actual worker process aspnet_wp.exe.&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What’s the difference between Response.Write() andResponse.Output.Write()? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;The latter one allows you to write formattedoutput. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What methods are fired during the page load? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Init() - when the pageis&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;instantiated, Load() - when the page is loaded into server memory,PreRender()&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;- the brief moment before the page is displayed to the user asHTML, Unload()&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;- when page finishes loading. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;Where does the Web page belong in the .NET Framework class hierarchy? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;System.Web.UI.Page &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;Where do you store the information about the user’s locale? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;System.Web.UI.Page.Culture &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;CodeBehind is relevant to Visual Studio.NET only. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What’s a bubbled event? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;When you have a complex control,  like DataGrid, writing an event processing routine for each object (cell, button, row, etc.) is quite tedious. The controls can bubble up their event handlers, allowing the main DataGrid event handler to take care of its constituents. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;Suppose you want a certain ASP.NET function executed on MouseOver overa certain button. Where do you add an event handler? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;It’s the Attributesproperty,&lt;/span&gt;&lt;br /&gt;&lt;span class="answers"&gt;the Add function inside that property. So&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;btnSubmit.Attributes.Add("onMouseOver","someClientCode();") &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="answers"&gt;A simple”Javascript:ClientCode();” in the button control of the .aspx page will attach the handler (javascript function)to the onmouseover event. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;b&gt;&lt;u&gt;&lt;span style="color: blue;"&gt;What data type does the RangeValidator control support? &lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="answers"&gt;Integer, String and Date.&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-6253115603947311036?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/6253115603947311036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=6253115603947311036' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/6253115603947311036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/6253115603947311036'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/04/aspnet-20-interview-qa.html' title='Asp.net 2.0 Interview QA'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-7038398627103922916</id><published>2008-03-24T02:00:00.001+05:30</published><updated>2008-05-02T10:28:57.611+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Interview Question and Answer'/><title type='text'>Interview Question and Answer</title><content type='html'>&lt;ul&gt;&lt;li&gt;ASP.Net 2.0&lt;/li&gt;&lt;li&gt;C#&lt;/li&gt;&lt;li&gt;MS SQL Server 2005&lt;/li&gt;&lt;li&gt;Java&lt;/li&gt;&lt;li&gt;Adv Java&lt;br /&gt;&lt;/li&gt;&lt;li&gt;.Net Basic&lt;/li&gt;&lt;li&gt;VB.Net&lt;/li&gt;&lt;li&gt;ADO.Net&lt;/li&gt;&lt;li&gt;C/C++&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-7038398627103922916?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/7038398627103922916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=7038398627103922916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/7038398627103922916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/7038398627103922916'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/03/interview-question-and-answer.html' title='Interview Question and Answer'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1609588823802027374.post-1969053263245190612</id><published>2008-03-24T01:07:00.000+05:30</published><updated>2008-11-13T09:37:05.907+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Student Online Help'/><title type='text'>Intro</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_5QrYgrht6Y8/R-bBR_L6DbI/AAAAAAAAAAY/dovjHeKzTV8/s1600-h/mtech-cs-engg_S.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://2.bp.blogspot.com/_5QrYgrht6Y8/R-bBR_L6DbI/AAAAAAAAAAY/dovjHeKzTV8/s320/mtech-cs-engg_S.jpg" alt="" id="BLOGGER_PHOTO_ID_5181040936099646898" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;For Student Online Help.......&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1609588823802027374-1969053263245190612?l=studentonlinehelp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://studentonlinehelp.blogspot.com/feeds/1969053263245190612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1609588823802027374&amp;postID=1969053263245190612' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/1969053263245190612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1609588823802027374/posts/default/1969053263245190612'/><link rel='alternate' type='text/html' href='http://studentonlinehelp.blogspot.com/2008/03/intro.html' title='Intro'/><author><name>Ramakant Singh</name><uri>http://www.blogger.com/profile/09886854052851708460</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_5QrYgrht6Y8/SBqjNM4c0ZI/AAAAAAAAAAw/-A3QnGNRqC4/S220/1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_5QrYgrht6Y8/R-bBR_L6DbI/AAAAAAAAAAY/dovjHeKzTV8/s72-c/mtech-cs-engg_S.jpg' height='72' width='72'/><thr:total>1</thr:total></entry></feed>
