Online Training On SharePoint
                      
Take this test on Microsoft Office SharePoint Development. There are 20 Questions which covers various perspective on SharePoint Development. This test can act as mock test for 70-541 and 70-542 certification in SharePoint. You should be able to finish this test in 30 min and if you get a score above 16 consider yourself having good knowledge in SharePoint 2007.
Question 1: Which XML files define the Solution Package:

Onet.XML
Manifest.XML
Feature.XML
Elements.XML

Question 2: Select the correct statements with respect to SharePoint Object Model and Web Services:

 SharePoint Object model works only on the server where SharePoint is installed
 SharePoint Web Services can be used to access SharePoint data from other Server where SharePoint is not installed
 SharePoint Object model works irrespective of the server where SharePoint is installed
 SharePoint Web Services can not be use to access SharePoint data from other Server where SharePoint is not installed

Question 3:Which one of the following reference is added to use SharePoint object model in .NET Applications:

Microsoft.Sharepoint
Microsoft.MOSS.Sharepoint
Microsoft.WSS.Sharepoint
Microsoft.SharepointObjectModel

Question 4: What are the two base classes you are going to use for a WebPart in SharePoint 2007, to inherit from :

Microsoft.SharePoint.WebPartPages.WebPart
Microsoft.WSS.WebPartPages.WebPart
System.Web.UI.WebControls.WebPart
System.Web.UI.WebControls.WebParts.WebPart

Question 5: In SharePoint terminology what is hive folder:

%SystemDrive%\Program Files\Common Files\web server extensions\12
%SystemDrive%\Program Files\Common Files\Microsoft Shared\web server extensions\10
%SystemDrive%\Program Files\Common Files\Microsoft Shared\web server extensions\12
%SystemDrive%\Program Files\Common Files\web server extensions\10

Question 6: How many instances of WebPartManager classes are possible on a web part page in SharePoint:

Zero
One
Two
Any Number is possible

Question 7: What are the correct values for the Scopes for a feature in SharePoint 2007 (Multiple Selection)

Web
Site
Web Application
Farm

Question 8: Choose the Correct steps required to deploy a feature in SharePoint (Multiple Selection)

Create a Folder in drive:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\FEATURES
Create a Folder in drive:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\bin\FEATURES
Create a Feature.xml file in the Feature Folder Created
Use Central Administration to Install the Feature

Question 9: We need to stop a user from deleting a document from a document library. In this scenario what would be the correct statements:

Use ItemDeleted Event
Use ItemDeleting Event
Use properties.Cancel = true;
Use properties.Cancel = false;

Question 10: What are the correct statements for Custom Field Types in SharePoint 2007 (Multiple Selection)

A Custom field type definition file (XML file) is required to create a Custom Field Type
A field class whose instances represents particular fields is required.
This field class can inherit from SPCustomField or one of the classes in Windows SharePoint Services that derive from it.
This field class can inherit from SPField or one of the classes in Windows SharePoint Services that derive from it.

Question 11: Which are the two XML files used to create a feature in SharePoint 2007 (Multiple Selection):

Feature.xml
Schema.xml
Manifest.xml
Elements.xml

Question 12: Select the correct statements about the Application Pages in SharePoint 2007(Multiple Selection)
Application Pages are available within any site in any web application in the Farm
Application pages runs under safe mode processing
Application pages needs to be placed under \$Local Directory$\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS
Application Pages only accessible within the scope of the site they are created

Question 13: To modify the settings in a Web.Config file with SharePoint Object Model which class needs to be used:

SPWebConfig
There are no class for this purpose and we need to do manually
SPWebConfigModify
SPWebConfigModification

Question 14:To implement SiteDeleted and SiteDeleting events from which class we need to inherit from:

SPSiteEventReceiver
SPWebEventReceiver
SPWebSiteEventReceiver
SPListEventReceiver


Question 15: Select the correct mapping with respect to Items and Object representing them in SharePoint Object Model (Multiple Selection):

Site Collection = SPSite
Site Collection = SPWeb
Sub Site = SPWeb
Sub Site = SPSite

Question 16: Choose the correct mapping for Synchornous and Asynchornous events:

ItemDeleted = Asynchornous Event
ItemDeleting = Asynchornous Event
ItemUpdated = Synchornous Event
ItemUpdating = Synchornous Event

Question 17: To fetch all the data from a SharePoint list to a DataTable the correct code snippet would be:

SPSite site = new SPSite("http://servername:12345/");
SPWeb web = new SPWeb();
web = site.OpenWeb();
SPList list = web.Lists[“ListName”];
DataTable tblItems = list.GetDataTable();

SPSite site = new SPSite("http://servername:12345/");
SPWeb web = new SPWeb();
SPList list = web.Lists[“ListName”];
DataTable tblItems = list.Items.GetDataTable();

SPSite site = new SPSite("http://servername:12345/");
SPWeb web = new SPWeb();
web = site.OpenWeb();
SPList list = web.Lists[“ListName”];
DataTable tblItems = list.Items.GetDataTable();

SPSite site = new SPSite("http://servername:12345/");
SPWeb web = new SPWeb();
web = site.OpenWeb();
SPList list = web.Lists[“ListName”];
DataTable tblItems = list.Items.GetTable()

Question 18: With SharePoint Designer what are the files/data which can be modified:

Only the files/data which is stored in the file system can be modified
Only the files/data which is stored in the Content DB can be modified
SharePoint Designer can modify data in FileSystem or content DB.

Question 19: When we execute the code with SPSecurity.RunWithElevatedPrivileges what credentials are being used:

The App Pool Identity for the web application running SharePoint.
The account for running the SSP in the Server.
The Owner account of the server running SharePoint.
Runs under Anonymous account.

Question 20: Which web service will fetch SharePoint List items in SharePoint 2007:

splist.asmx
list.asmx
Listdata.asmx
There is no web service available for this purpose.