Wednesday, December 7, 2011

SharePoint 2010 Interview Questions and Answers

Before reading this, you can check SharePoint 2010 interview question and answers
Part-1  Part 2  Part 3
Q1. What is feature activation?
This is a mechanism for adding elements to a site or site collection. The elements can be menu commands, link commands, page templates, page instances, list definitions, list instances, event handlers, and workflows.
Q2. What is the difference between feature defination and feature instance?
The feature definition is the set of source files in your Visual Studio 2010 project that gets deployed using a solution package.Once deployed, a feature definition is a set of template files
and components that reside on each front-end Web server. A feature instance is what gets created when a user activates the feature definition.
Q3. What is the menimum files required for a feature?
Every feature directory should contain at lease one file namely feature.xml and should be placed in the root of
the directory. But a feature directory can contain one or more xml files as well as resource files such as image files, css files or js files.

Q4. What are the values feature.xml file contains?
A feature.xml file contains attributes like Id, Title, Description, Version, Scope, Hidden, ImageURL.

Q5. What are the scope of a feature?
A feature scope can be Web, Site, WebApplication, Farm.

Q6. What is hidden attribute in a feature?
Hidden attribute will take the value of True or False. If it is set to False, after installation the feature definition can be seen by administrators only.

Q7. What is Elements.xml file in Feature in SharePoint 2010?
Elements.xml file contains the actual feature element. It can contain elements like ListInstance, Field, ContentType,ListTemplate, Workflow, WorkflowActions etc.

Q8. What is Feature Receiver in SharePoint 2010?
A Feature Receiver allows you to write event handlers in a managed programming language such as C# or Visual Basic. These event handlers are executed during feature specific events such as feature activation and feature deactivation.

Q9. What is the base class for Feature Receiver class?
The base class is: SPFeatureReceiver

Q10. What are the methods to override while writting Feature receiver class?
The methods are: FeatureActivating, FeatureActivated, FeatureDeactivating, FeatureDeactivated etc.

Q11. Where the feature receiver file needs to be deployed?
The feature receiver file needs to be deployed in Global Assembly cache (GAC).

Q12. What is a solution package?
A solution package is a compressed CAB file with a .wsp extension that contains the set of template files and components to be deployed on one or more front-end Web servers.

Q13. What is a Manifest.xml File in SharePoint 2010?
Manifest.xml file contains the meta data of a solution package. At the time of deployment, SharePoint inspects manifest.xml file to determine which template files it needs to copy into the SharePoint root directory.

Q14. What is the path of powershell?
%WINDIR%\SysNative\WindowsPowerShell\v1.0\powershell.exe.

Q15. What is the path of SharePoint Root directory?
SharePoint 2010 root directory path is - C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14