Monday, 9 April 2012

WCF Latest Interview Questions


what is mean by duplex contracts in WCF?


How can we host a service on two different protocols on a single server?


How to use MSMQ bindings in WCF?


Explain transactions in WCF?


What different transaction isolation levels provided in WCF?


Can we do transactions using MSMQ?


Can we have two-way communications in MSMQ?


What are Volatile queues?


What are Dead letter queues?


What is a poison message?




What is mean by service contract, operation contract and Data Contract?


what many ways are there for hosting a WCF service?


How can we host a WCF service in the IIS 7.0 and IIS6.0?




Advantages of hosting WCF Services in IIS as compared to self-hosting?


Differences between services and Web services?


Explain in how many ways bindings will support by WCF?


program approach for WCF service?


What is one-way and two way operation?


what is mean by duplex contracts in WCF?


How can we host a service on two different protocols on a single server?


How to use MSMQ bindings in WCF?


Explain transactions in WCF?


What different transaction isolation levels provided in WCF?


Can we do transactions using MSMQ?


Can we have two-way communications in MSMQ?


What are Volatile queues?


What are Dead letter queues?


What is a poison message?

Monday, 2 April 2012

What is the basic functionality of Garbage Collector in Microsft.Net?


The Common Language Runtime (CLR) requires that you create objects in the managed heap, but you do not have to bother with cleaning up the memory once the object goes out of the scope or is no longer needed. The Microsoft .NET Framework Garbage Collector provides memory management capabilities formanaged resources. The Garbage Collector frees objects that are not referenced and reclaims their memory. You should set your references to Nothing(null) as soon as you are done with them to ensure your objects are eligible for collection as soon as possible.
Here are the list of some tasks performed by the Garbage collector:
  • Garbage collector reserves a piece of memory as the application starts for the managed heap.
  • Garbage collector controls the managed heap memory currently used and available to an application.
  • Garbage collector allocates memory for new objects within the application.
  • The Garbage Collector attempts to reclaim the memory of objects that are not referenced.

Difference between DataList and Repeater controls

The DataList control is similar to the Repeater control. 
However, it has some additional properties and templates that you can use to display its data in a diverse fashion. The Repeater control does not have any built-in layout or style. We are forced to specify all formatting-related HTML elements and style tags. On the other hand, a DataList control provides more flexibility to display data in a desired layout. It also provides data selection and editing capabilities. How does it do it? Well, in addition to the five templates (Item Template, AlternatingItem Template, Separator Template, Header Template, Footer Template that a repeater has, the DataList control has two more templates: SelectedItemTemplate, and EditItemTemplate. These templates are useful for allowing data selection and data editing functionalities. 

Furthermore, the RepeatDirection and RepeatColumns 



properties of a DataList control can be exploited to lay out the


 data in horizontal or vertical fashions.

ASP.NET 3.5 with VS 2008


I found a good presentation on new features in Asp.NET 3.5 with VS 2008 and journey from Asp, Asp.NET 1.1 to Asp.NET 3.5 with Visual studio 2008. 


Visual studio 2008 completely replaces VS 2005. It provides new features like JavaScript intellisense, JavaScript debugging and new CSS editor, and also Unit test automation tools


.NET 3.5 built on top of 2.0 and 3.0. In it, Membership, Role, and Personalization framework exposed as web services.


Language Integrated Querying (LINQ), Native support for latest web protocols (RSS, JSON, etc) are some exciting features. Here is complete presentation. 

Types Of Assemblies

There is shared assemblies which is used for diffrenent language interpotability. 

Two types of assemblys: Shared assembly and private assembly. 

How to validate the given input in asp.net and also windows application?

In ASP.Net validation an be done thru the validation controls In windows thru the events 

what is c#?

If you know an approximate answer (or an opinion), please write it.
ans.c# means itis a combination of c++ and java.
 

C# basically belongs to a C++ family.It is also a framework and a module of .net framework.