.NET Funda.Com – Sharepoint Interview Questions

What is SharePoint?

SharePoint 2010 is a platform where user can share Data, Collaborate and people can also take this platform and customized platform as per their requirements.

What are the two different products in SharePoint 2010?

SharePoint 2010 has basically two different products namely SharePoint Foundation 2010 and SharePoint Server 2010.

SharePoint Foundation 2010 is basically a free version.

SharePoint Server 2010 is basically a paid version.

How to create a simple Website in SharePoint 2010?

In order to create a Website in SharePoint 2010, we need to use SharePoint 2010 Central Administration tool. As soon as you click on SharePoint 2010 Central Administration tool it will ask for credential do put your
credential and you will directed to the SharePoint 2010 Central Administration screen. Now from the Application Management screen click on Manage web applications, as soon as you click on Manage web applications a new window will open, now from the top most left of the screen click on New menu, again a new window will pop-up of Create New Web Application which enables you to create new web application.

How to create Users and Allocates permissions to the Users?

Permission management is a three steps process as follows.

Step1: -Create Users.

Step2: – Create Permissions.

Step3: – Link the Users with the Permissions.

In order to create a User’s and Allocate permissions Click on Site Actions located on the top link bar and then click on Site Permissions. Now, under the Edit tab, click on Grant Permissions. Later, In the Users/group field, enter the
user’s name, choose the permissions you wish the user to have under Give Permission, and then click on OK.

How to create or deploy Web parts in SharePoint 2010?

Web part: – It is a reusable functionality, which can be inserted on the web pages and can be configured by the end users. In order to create a web part, go to Visual Studio and create a new project > select SharePoint tab > select Visual Web Part > select on which local web site you want to deploy the web part > click on Validate and Click finish.

Now, in order to deploy the project just go to > Solution Explorer > select your project > Right click on it > just select deploy.

 What is a web part?

Web parts consist of xml queries to full SharePoint lists or document libraries. You can also develop your own web parts and web part pages.

 What are the advantages of SharePoint Portal Services (SPS) over SharePoint Team Services (STS)?
SharePoint Portal Services (SPS) has MUCH better document management. It has check-in, check-out, versioning, approval, publishing, subscriptions, categories, etc. STS does not have these features, or they are very scaled back. SharePoint Portal Services (SPS) has a better search engine, and can crawl multiple content sources. STS cannot. STS is easier to manage and much better for a team environment where there is not much Document Management going on. SPS is better for an organization, or where Document Management is crucial.
 What is CAML?

CALM stands for Collaborative Application Markup Language and is an XML-based language that is used in Microsoft Windows SharePoint Services to define sites and lists, including, for example, fields, views, or forms, but CAML is also used to define tables in the Windows SharePoint Services database during site provisioning.

 What are the types of input forms that can be created for a workflow?
You can create four different types of input forms including
1. An association form
2. An initiation form
3. A modification form
4. A task edit form.
 What are ways to create input forms for workflow?
1. You can create your forms by using custom application pages, which are standard .aspx pages deployed to run out of the _layouts directory.
2. Using Microsoft Office InfoPath 2007
 What is MOSS?
Microsoft Office SharePoint Server (MOSS) is the full version of a portal-based platform for collaboratively creating, managing and sharing documents and Web services. In MOSS additional feature add that cannot in WSS 3.0.
 what is web part?
Web Parts are the fundamental building blocks for Share Point user interface, and with them we can build and integrate many different types of applications. In share point also be create custom web part using .ocx control
steps create custom web part

1.create web part project copied .oscx control and build application.place .dll file in GAC .reset IIS.
2.go 12 hive _layout folder create folder past your .oscx control
3.go inetpub ->wwwroot->wss->open Your site ->web con fig->create safe control write assembly information of web part application
4.open sharepoint site ->site action-site editing->Galleries ->web part->new Add your web part.
follow  few web part in WSS 3.0
Content Editor Web Part

Data View Web Part

List View Web Part

Image Web Part

Members Web Part .

Page Viewer Web Part

 How can debugging share point application and timer jobs ? with steps?
Steps 1:build application place .dll into gac and reset iis
steps 2:On the Debug menu, select Attach to Process
steps 3:select the Show processes from all users check box.
steps 4:select W3W.exe and OSWTIMER.exe can attach
steps 5:refresh sharepoint site point break point
 What is Sandbox solution?
When user writing custom code then it is not trusted, its failure causes on entire site. So the sandbox solution concept is used. In that case program is only written for particular site & solution is uploaded in the same site. The solution size limit is decided at the time of site creation & if size increases or code showing bad performance then it is easy to administrator to stop the working of solution.
 What is the difference between Sandbox solution & farm solution?
We can create sandbox solution for particular site but not for the entire site collection or farm. It is not applicable for farm solution. There are some restriction while creating the sandbox solution.
 Why we use the properties.current.web instead of SPContext.Current.web in event receiver?
When we deploy project from Visual studio then we can use the SPContext.Current.web but when we use the powershell to activate or deactive the feature then we have to use properties.current.web beacuse there is no access of browser here.
 Which are default master pages in Sharepoint 2010?
1. v4.master – This is default master page.
2. default.master – this is used to support the 2007 user interface
3. minimal.master
4. simple.master- it is used for accessdenied.aspx, confirmation.aspx, error.aspx, login.aspx, reqacc.aspx, signout.aspx & webdeleted.aspx pages.
 What is the difference between CustomMasterUrl & MasterUrl?
MasterUrl is used to change the layout of all use end pages but CustomMasterUrl is for changing the layout of admin side pages.
 What is SharePoint Delegate Control?

a. With the help of delegate control, we can take any OOB control of SharePoint and replace with our custom control without any modification in the SharePoint page. So that new custom control overrides the existing one.

b. So the delegate control provide one of the option to add control (either server control or user control) on a SharePoint page.

c. This is one of the important features of SharePoint, introduced in WSS v3 and so in MOSS 2007.

d. For example : In master page SearchBox control is included as

<SharePoint:DelegateControl runat=”server” ControlId=”SmallSearchInputBox” />

e. The above lines instantiate the delegate control object.

f. This delegate control object uses features to locate the control which is specified in ControlId. So there must be the features (it includes feature at any scope) which creates and deploys the SmallSearchInputBox control.

 What are the zones in SharePoint?

1. Zones provides the separate logical paths of authentication for the same web application.

2. We can create 5 zones for each web application as follows :
a. Default
b. Intranet
c. Extranet
d. Internet and
e. Custom

3. Each zone represented by different web sites in IIS.

 What is the Farm in SharePoint?

1. Farm is a collection of SharePoint servers having the same configuration database.

2. Configuration DB stores all the required information to run the farm.

3. Each farm is administered through a central administration

4. There is only one configuration database per farm.

 What is Web Application in SharePoint?
1. In SharePoint Web Application is a IIS website.

2. From Central Admin we can create the web application. Each web application is associated with one IIS web site.

3. Once the web application is created, we can extend the web application in different zones.

4. For each web application, content database is created.

 What is a Site Collection in SharePoint?
1. A site collection is a set of web sites.

2. Every site collection has top-level site, created when the site collection is created.

3. There might be multiple site collections in web application and each site collection may have a multiple child sites.

 How the WSS3.0 basic installation differs from the advanced installation?
1. When we choose the basic installation, Windows Internal Database(WID), a relational database based on SQL server technology, is installed for the WSS3.0 databases. This WID has only 4 GB limitations. While if we go for advanced search, WSS 3.0 uses installed SQL server for the databases.

2. When we use basic installation, application pool uses the LocalSystem account.

3. Also once we go for Basic installation, we are unable to add more servers to the farm.

 How many web applications we can create on WSS server?
As Many As Possible
 How WSS 3.0 differes from MOSS 2007?

1. Windows SharePoint Services (3.0) are free available with Windows Server. Microsoft Office sharePoint Server (MOSS) 2007 is licensed version. WSS 3.0 can be freely downloaded from Microsoft site.

2. MOSS 2007 is based on WSS3.0 with some additional features like Enterprise Search, Business Data Catalog(BDC), User Profile, Excel Services, Single-Sign on, additional Workflows, My site feature etc.

 What is CAML?
CAML is the collaborative application markup language. This is the XML-based language used to customize and to develop the sharepoint based sites and features.
 What is the difference between Site Definition and Site template?

1. To create or use site definition you need server admin access, but site template can install from web UI by site owners.
2. Site definition supports feature stapling, but for site template additional features must be activated in gallery.
3. Site definitions are stored in hard disk, but site templates are stored in content DB.
4. Site definition can provision multiple webs, but site templates for single web only.
5. Creating site definition is relatively complex then site template creation.

 What is BDC and how it is differ from BCS?
BDC (Business Data Catalogue) is use to connect an external database and view it in share point.
BCS (Business connectivity Services) is new in SharePoint2010. Using BDC one can only read from external Database, but using BCS one can read and write into the external Database.
 What is Web part life cycle?
Web Part Life Cycle starts with :-
OnInit- to configure the web part.
OnLoad- to load add controls.
CreateChildControls- It is use to create controls and set its property.
LoadViewState- The view state of the web part is populated over here.
OnPreRender- it is use to change the web part properties.
RenterContents- it generate the output in html.
OnUnLoad- to unload the web part.
Dispose- to free the memory.
 How to Create a custom feature?

To create custom feature :-
Create xml file named feature.xml and its manifest file. Save it in a folder and save that folder in 12- hive \template\feature.
To install :-
Go to command prompt, navigate 12- hive bin folder & run the command.
Stsadm -0 installfeature –filename <filelocation+name>
To Activate :-
Go to command prompt, navigate 12- hive bin folder & run the command.
Stsadm -0 activefeature –name <name> -url <url>
To Deactivate :-
Go to command prompt, navigate 12- hive bin folder & run the command.
Stsadm -0 deactivefeature –name <name> -url <url>
To uninstall :-
Go to command prompt, navigate 12- hive bin folder & run the command.
Stsadm -0 uninstallfeature –filename <filelocation+name>

 Explain the Share Point Architecture.
Having 3 layers, like 3 tire architecture

1. WFE <Front End Web Server>
2. Application Layer
3. Data base Layer

1. WFE: –
Here we have share point Installed.
We have 12-hive structure & virtual drives.
Here IIS web sites are hosted.
Here servers are clustered on & are in synch.

2. Application Layer: –
Share Point provides different services.
This layer provides those services, like my site hosting, user profile & searching etc.
One server can be dedicated to particular service depend upon the scalability.

3. Data Base Layer: –
Here we have SQL server installed.
Here content DB is hosted.
For moss 2007, it is SQL server 2005. For Share Point 2010, it is SQL server 2008.
Here servers are clustered on & are in synch.

* Every layer has load balancer for control the traffic.

 How to deploy wsp ?

In Command prompt, navigate to the 12-hive bin folder, then write the command to add the solution i.e.
Stsadm -o addsolution -filename filelocation

Then go to “central administration -> operations” under “global configuration” there is “solution management” click on that.

Then click on “wsp file name”, and then click on “deploy solution” for deploy it, for retrieve click on “retrieve solution”, for remove it click on “remove solution” after retrieve it.

 How do you configure outgoing E-mail?
It is recommended that you set up a Local SMTP Virtual Server on your share point box and configure it to relay to your normal domain.

This will not only provide a natural queuing mechanism which would be highly preferred, but it will also provide you with what you need to set up incoming email as well as outgoing.


About sharepointsriram

9+ Yrs of IT experience
This entry was posted in SharePoint 2010 FAQ. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s