Tuesday, July 21, 2009

Silverlight and WCF Interview Questions

Silverlight:

1) What is Silverlight?
2) What are the container controls in Silverlight? Give me the brief explanation.
3) How to load the Flash control in Silverlight?
4) What is Silverlight.js file?
5) How to communicate flash into silverlight?
6) Does Silverlight support ADO.NET? and How to load the data to Silverlight from database?
7) How to use the styles in Silverlight? Can we load the external CSS file into Silverlight?
8) What is the difference between Data Form and Data Pager?
9) Video streaming in Silverlight?
10) How to embed the Silverlight xap file in html page?
11) what is xap file?
12) what is xaml?
13) can we use more than one xaml file in same project? explain?
14) what is StoryBoard?
15) How to use charts and Reports in Silverlight?
16) what is 3D animation in Silverlight?


WCF:

1) What is the difference between WCF and ASMX?
2) What is binding in WCF?
3) What binding is supported in Silverlight?
4) WCF security
5) Dead Letter Queues
6) Poison Message
7) Fault Contracts
8) What is it the Reliable session?
9) What is it the Transmission queue and the Target queue? What is the difference?
10) Could the two-way service operations be used with queued binding?
11) What is it a correlation?
12) How can we create a singleton service?
13) How to set the timeout property for the WCF Service client call?
14) What is Transaction?

Wednesday, July 1, 2009

Types of Serialization

serialization is the process of converting an object into a sequence of bits so that it can be persisted on a storage medium (such as a file, or a memory buffer) or transmitted across a network connection link.

Emp emp = new Emp();
emp.Id = 1;
emp.Name = "S.Bala";
MemoryStream ms = new MemoryStream();

//Binary
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter binaryFormatter = new System.Runtime.Serialization.Formatters.Binary.BinaryFormatter();
binaryFormatter.Serialize(ms, emp);
ms.Position = 0;
Emp empGet = binaryFormatter.Deserialize(ms) as Emp;
ms.Close();

//SOAP
ms = new MemoryStream();
System.Runtime.Serialization.Formatters.Soap.SoapFormatter soapFormatter = new System.Runtime.Serialization.Formatters.Soap.SoapFormatter();
soapFormatter.Serialize(ms, emp);
ms.Position = 0;
empGet = new Emp();
empGet = soapFormatter.Deserialize(ms) as Emp;
ms.Close();

//XML
ms = new MemoryStream();
System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(typeof(Emp));
xs.Serialize(ms, emp);
ms.Position = 0;
empGet = new Emp();
empGet = xs.Deserialize(ms) as Emp;
ms.Close();


[Serializable]
public class Emp
{
public int Id;
public string Name;
}