You need to convert the user control to a Web Part that will be hosted in a Microsoft SharePoint Server 2010 f
You are running a default installation of Microsoft Visual Studio 2010. You have a user control
named Control.ascx. You need to convert the user control to a Web Part that will be hosted in a
Microsoft SharePoint Server 2010 farm. The Web Part must be packaged as a sandboxed
solution. What should you do?
What should you use in the Web Part?
You create a Web Part that updates a list. You need to ensure that users can use the Web Part to
update the list, regardless of the users’ permissions to the list. What should you use in the Web
Part?
What should you implement in WPMaster?
You are creating two Web Parts named WPMaster and WPDetails. You need to ensure that when
an item is selected from WPMaster, the details of the item are displayed in WPDetails. This must
occur without requiring WPDetails to retrieve the existing item from the data source. What should
you implement in WPMaster?
You need to hide the navigation bar on only the custom content page
You have a SharePoint site collection. The default master page for the site collection displays a
navigation bar on the left side of the page. You create a custom content page. You need to hide
the navigation bar on only the custom content page. What should you do?
You need to apply the custom master page to only the content pages of the site
You have a SharePoint site. The current master page of the site is v4.master. You create a
custom master page named MyMasterPage.master. You deploy the master page to
/_catalogs/masterpage/. You need to apply the custom master page to only the content pages of
the site. What should you do?
Which code segment should you add to the Web Part?
You create a Feature named Feature1. Feature1 is activated in a SharePoint site. You create a
Web Part that contains the following code. Dim site As New SPSite(“http://intranet/site1”) Dim web
As SPWeb = site.OpenWeb() Dim feature As SPFeatureDefinition =
SPFarm.Local.FeatureDefinitions(“Feature1”) You need to modify the Web Part to activate
Feature1 in Site1 only. Which code segment should you add to the Web Part?
Where should you define the workflow action?
Using Microsoft Visual Studio 2010, you create a custom workflow action named WF1 that copies
the content of a document library to another document library. WF1 is used in a Microsoft
SharePoint Designer reusable workflow. You need to ensure that the workflow action can be
deployed to multiple sites. Where should you define the workflow action?
You need to retrieve all of the items in the list that have a value of True in their Urgent column
You have a SharePoint list named Assets that contains 1,000,000 items. The list contains a
column named Urgent. Approximately 100 items have a value of True in their Urgent column. You
use the following line of code to retrieve the Assets list. SPList assetsList = currentUeb.Lists
[“assets”]; You need to retrieve all of the items in the list that have a value of True in their Urgent
column. You must retrieve the items in the minimum amount of time. What should you do?
Which code segment should you implement in the Web Part?
You need to create a Web Part that creates a copy of the out-of-the-box Contribute permission
level. Which code segment should you implement in the Web Part?
Which code segment should you add to the Web Part?
You plan to develop a Web Part that displays a SharePoint list. The Web Part will verify the list
permissions when users access by using the web.CurrentUser. DoesUserHavePermissions
method. You need to ensure that when users do not have permissions to the list, the Web Part
displays the company’s logo. Which code segment should you add to the Web Part?