Client Object Model in Sharepoint 2010 Interview Questions

Client Object Model in Sharepoint 2010 Interview Questions

 
Question
Which is best to work with in COM, .net, SL or JS?
Answer
It depends on requirement all three methods are equally useful : 1. .net Managed codes – These are used when we have to create console applications or window applications, web applications which are not running inside SharePoint Contex. 2. Silverlight: It should be used while developing silverlight application. 3. ECMAScript – It should be used when you want to query sharepoint list using javascript
 
Question
 
What are the differences between server object and client object model?
 
Answer
1. Client object model can be used to work with sharepoint even outside sharepoint environment while we can’t use server object model outside sharepoint farm.
2. Client object model runs on client while server object model runs on server
 
Question
What are the advantages of Client Object Model w.r.t to share point perspective?
Answer
Advantages of COM:
1) It is easier to deploy.
2) It provides us language flexiblity.(c#,javascript,Silverlight)
3) We can work with Client object model even outside SharePoint farm
Question
Limitations of COM in BCS?
 
Answer
 
Client Object model can only use the Subset of Sharepoint Object Model.So, we can’t explore complete functionality of sharepoint using Client object model.
 
Question
What is client object model in share point? How to implement it in sharepoint?
Answer
Client object model is new feature in SharePoint 2010 which runs on client and can be used even outside sharepoint farm This can be implemented using:
1) .net managed code
2) Javascript
3) Silverlight
 
Question
What is your views on that its a common issue with Silverlight as its keep failing to load! Can you throw some light on it, and do you recommend SL?
Answer
Silverlight application has to download XAP in Client before it starts functioning. SO it will be a bit slow on first time load.
 
Question
Is it possible to provide build solution in Sharepoint using Team Foundation Server? if so what are the major steps to be configured.
Answer
 
This question is not related to Client Object Model.But, yes we can automate sharepoint deployment using TFSyou can find steps on MSDN for the same.