Which code segment should you use?
You are writing a program that will periodically display activity on a Microsoft Windows SharePoint Services site.
For each job, you need to display the time that the job will run next.
Which code segment should you use?
Which two actions should you perform?
You create a custom administration page for a Microsoft Windows SharePoint Services application.
The page is throwing a security exception. You verify that you have administrator rights on the Microsoft Windows SharePoint Services server.
You need to ensure that the page can be used to perform administrative functions.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which code segment should you use?
You are creating a Web Part for a Microsoft Windows SharePoint Services site named Site1. You install a feature named TimeFeature on Site1.
You write the following code segment.
Dim site As SPSite = New SPSite(“http://server/site1”)
Dim web As SPWeb = site.OpenWeb
You need to display the current time to the user only if the TimeFeature feature is activated on Site1.
Which code segment should you use?
What should you do?
You create a new site definition from an existing site definition. You copy the directory of the existing site definition to a new directory in the correct folder. You use a different name for the new directory.
You need to ensure that the new site definition is available on a Microsoft Windows SharePoint Services site.
What should you do?
Which path should you use?
You create a new feature that contains shared resources. The new feature will be used within a site definition. You are manually deploying the feature on a Microsoft Windows SharePoint Services site.
You need to create a folder for the feature.
Which path should you use?
What should you do?
You create the following two document libraries for the human resources
department of your company:
* Vacation requests for full-time employees
* Vacation requests for part-time employees
You need to enable a single workflow to serve both document libraries.
What should you do?
Which XML fragment should you use?
You create a site definition named HR Team Site and a list definition named HR Roles.
The HR Team Site definition is configured in the following manner.
< Configuration ID=”13″ Title=”HR Team Site” Type=”0″/ >
The HR Roles list definition is configured in the following manner.
< ListTemplate Path=”STS” Name=” hrteam “
DisplayName =”HR Roles” Type=”112″ BaseType =”1″ / >
You need to ensure that the HR Team Site definition is configured to use the HR Roles list definition.
Which XML fragment should you use?
Which two actions should you perform?
You create a Microsoft Windows SharePoint Services site.
You need to ensure that the Web Parts can access the object model of Windows SharePoint Services.
Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Which path should you use?
You create a new feature that contains shared resources. The new feature will be used within a site definition. You are manually deploying the feature on a Microsoft Windows SharePoint Services site.
You need to create a folder for the feature.
Which path should you use?
Which method should you use?
You create a Web Part that performs privileged operations.
The Web Part requires permissions that the user might not have.
You need to ensure that users with insufficient permissions can also run the Web Part to perform privileged operations.
Which method should you use?