70-573 Exam Questions
233 real 70-573 exam questions with expert-verified answers and explanations. Page 3 of 5.
- Question #102Developing for Data Access
You create a Microsoft .NET Framework console application that uses a Representational State Transfer (REST) API to query a custom list named Products. The application contains the...
REST APIListData.svcLINQ to SharePointdata context - Question #103Developing SharePoint Solutions
You have a helper method named CreateSiteColumn that contains the following code segment. static void CreateSiteColumn ( SPWeb web, string columnName ) { } You need to add a new si...
site columnsSPFieldSPFieldType.Choiceweb.Fields.Add - Question #104Developing for User Experience
You have a custom user profile property named MyProperty. You need to create a Web Part that displays the value of MyProperty for the current user. Which code segment should you us...
user profilesUserProfileManagercustom profile propertyWeb Part - Question #105
You are creating a Microsoft .NET Framework application that will display the title of the SharePoint site and will execute outside of the SharePoint server. You create a textbox n...
- Question #107
You create a Web Part. You need to display the number of visits to a SharePoint site collection in a label named LblVisits. You write the following code segment. (Line numbers are...
- Question #108Developing for Data Access
You plan to create a custom Web Part that displays items from a custom SharePoint list named Project. You need to ensure that you can access the list by using strongly-typed object...
SPMetalstrongly-typed objectsLINQ to SharePointcode generation - Question #109
You need to create a Web Part that displays all of the content created by a specific user. You write the following code segment. (Line numbers are included for reference only.) 01D...
- Question #110Developing for Data Access
You create two custom lists named Offices and Rooms. Rooms has the following columns: Offices thas the following columns: You need to perform a Representational State Transfer (RES...
REST APIListData.svc$expand$filter - Question #111
You create a Web Part that programmatically updates the description of the current SharePoint site. The Web Part contains the following code segment. (Line numbers are included for...
- Question #112
You create a Web Part that queries a list. The Web Part contains the following code segment. (Line numbers are included for reference only.) 01Protected Overloads Overrides Sub Ren...
- Question #113Developing SharePoint Solutions
You need to create a custom content type and specify the content type ID. What should you do?
content typescontent type IDFeatureSharePoint solutions - Question #114Developing for Data Access
You need to delete the previous versions of all documents in a document library. The deleted versions of the documents must be retained in the SharePoint Recycle Bin. What should y...
document versioningRecycle BinRecycleAllSPFileVersionCollection - Question #115Developing SharePoint Solutions
You have a SharePoint solution that contains a custom site column and a custom content type. You need to add the custom site column as a lookup field for the custom content type. W...
content typessite columnslookup fieldsFeature event receiver - Question #116
You are creating a Microsoft .NET Framework console application that will use the SharePoint client object model to create a site in the site collection. The application contains t...
- Question #117
You need to create a Web Part that adds a term set to the current SharePoint site collection's term store. You write the following code segment. (Line numbers are included for refe...
- Question #119
You have a SharePoint site. The current master page of the site is v4.master. You create a custom master page named MyMasterPage.master and deploy it to /_catalogs/masterpage/. You...
- Question #120Developing Business Logic
You plan to develop a Web Part that displays a SharePoint list. The Web Part will verify the list permissions when users access it by using the web.CurrentUser.DoesUserHavePermissi...
RunWithElevatedPrivilegespermissionsWeb Part securityaccess control - Question #121Developing SharePoint Solutions
You are developing a Feature that will be used in multiple languages. You need to ensure that users view the Feature's title and description in the display language of their choice...
localizationresource filesFeaturemultilingual support - Question #123
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?
- Question #125
You plan to create one provider Web Part and two consumer Web Parts. You need to ensure that the consumer Web Parts can receive data from the provider Web Part. You create an inter...
- Question #126
You create a Web Part that contains the following code segment. (Line numbers are included for reference only.) 01 Public Class WebPart1 02 Inherits WebPart 03 04 Public Sub New()...
- Question #127Developing Business Logic
You have a timer job that has the following constructors. (Line numbers are included for reference only.) 01 public TimerJob1 () : base() { } 02 public TimerJob1(SPWebApplication w...
timer jobsSPJobLockTypeSPWebApplicationserver affinity - Question #128
You need to programmatically add a user named User1 to a group named Group1. You write the following code segment. (Line numbers are included for reference only.) 01 Dim login As S...
- Question #129
You are running a default installation of Microsoft Visual Studio 2010. You have a Web Part named WebPart1. WebPart1 runs on a Microsoft Office SharePoint Server 2007 server. You n...
- Question #131Developing for User Experience
You need to send a single value from a consumer Web Part to a provider Web Part. Which interface should you use?
Web Part connectionsIWebPartFieldconsumer provider patternWeb Part interfaces - Question #133Developing SharePoint Sites
You create a user control named MySearch.ascx. You plan to change the native search control in SharePoint to MySearch.ascx. You need to provide the site administrator with the abil...
delegate controlssearch control overrideFeatureuser controls - Question #134
You plan to activate the Developer Dashboard. You create a command line application that contains the following code segment. (Line numbers are included for reference only.) 01Dim...
- Question #136
You plan to create two Web Parts named Products and ProductDetails. You create an interface that contains the following code segment. Public Interface Interface1 Property Productid...
- Question #138
You create a Web Part that contains the following logging code. (Line numbers are included for reference only.) 01Try 02 ... 03Catch ex As Exception 04 05System.Diagnostics.EventLo...
- Question #139
You have a custom Web Part that is deployed as a sandboxed solution. You need to ensure that the Web Part can access the local file system on a SharePoint server. You must minimize...
- Question #140Developing SharePoint Sites
You have a SharePoint site that uses a master page named Master1.master. You create a custom user control named MySearch.ascx. You need to change the default search box to MySearch...
master pageSmallSearchInputBoxdelegate controlssearch customization - Question #144Developing SharePoint Solutions
You create a console application to manage Personal Sites. The application contains the following code segment. (Line numbers are included for reference only.) 02 Dim profileManage...
SPSite disposalmemory managementUserProfileManagerPersonal Sites - Question #145Developing for Data Access
You need to create a Web Part that will store and retrieve information for the current subsite. Which object should you use?
SPContextWeb property bagsubsite propertiesAllProperties - Question #147
You have a SharePoint site collection. You plan to create a user solution that will contain a Web Part. The Web Part will display the title of the root Web. You write the following...
- Question #148Developing SharePoint Solutions
You have a Feature named Feature1. You plan to create a new version of Feature1 that will upgrade the existing version of Feature1. You need to ensure that when Feature1 is upgrade...
Feature upgradeCustomUpgradeActionFeature versioningproperty bag - Question #150Developing SharePoint Solutions
You create a SharePoint solution. You deploy the SharePoint solution by using Microsoft Visual Studio 2010. You need to prevent the Feature that is contained in the solution from b...
Feature activationdeployment configurationVisual Studio 2010solution deployment - Question #152
You create a Web Part that takes three values from three text boxes and creates a new SharePoint site when you click a button named CreateNewSite. The Web Part contains the followi...
- Question #153Developing SharePoint Sites
You have a custom theme named MyTheme. The theme is defined in a file named MyTheme.thmx. You have a console application that contains the following code segment. (Line numbers are...
themesThmxThemeSPWebsite customization - Question #155
You are creating an application page that will open a dialog box. The application page uses a custom master page. You write the following code segment. (Line numbers are included f...
- Question #156
You need to create a Web Part that hides the out-of-the-box Ribbon on the current page. Which code segment should you include in the Web Part?
- Question #158Developing SharePoint Sites
You created a custom ASPX page that updates a list. The page is deployed to the Jayouts folder. The page contains the following code segment. 01 < form id=" Forml" runat =" Server"...
FormDigestsecurity validationapplication pagesform controls - Question #163Developing Business Logic
You need to create a Web Part that displays all of the permission levels of the current subsite. Which collection should you use?
permission levelsRoleDefinitionsSPWebsecurity - Question #172
You create a Web Part that calls a function named long Call. You discover that long Call takes a long time to execute. You need to display in the Developer Dashboard how long it ta...
- Question #173Developing for User Experience
You have several SharePoint sites. You plan to load a custom script in all pages of the sites. You need to ensure that you can activate or deactivate the script at the site level....
delegate controlscustom scriptsFeature activationsite-level customization - Question #174Developing SharePoint Solutions
You create a sandboxed solution that contains a Web Part. You need to debug the Web Part by using Microsoft Visual Studio 2010. To which process should you attach the debugger?
sandboxed solutionsdebuggingspucworkerprocessVisual Studio - Question #177
You are creating an event receiver. The event receiver will have a field named Title and a field named Priority. You write the following code segment for the event receiver. (Line...
- Question #180
You have the following event receiver. (Line numbers are included for reference only.) 01Public Overloads Overrides Sub FieldDeleting (ByVal properties As SPListEventProperties) 02...
- Question #185
You need to disable the CriticalExceptionCount measure for all user solutions. You write the following code segment. (Line numbers are included for reference only.) 01 Dim userCode...
- Question #189
You are creating a Web Part for SharePoint Server 2010. The Web Part contains the following code segment. (Line numbers are included for reference only.) 01 Protected Overloads Ove...
- Question #192
You create a Microsoft .NET Framework console application that uses a Representational State Transfer (REST) API to query a custom list named Products. The application contains the...