You have a SharePoint site collection that contains 100 sites. Each site contains 100 lists.
You need to retrieve all item titles from all lists. The data must be retrieved in the minimum amount of time.
Which access method should you use?
A. SPList.ItemsYou have a SharePoint site collection that has the URL http://contoso/sites/finance.
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 the following code segment. (Line numbers are included for reference only.)
01 ClientContext cCtx = new ClientContext("http://contoso/sites/finance");
02 Web root = cCtx.Site.RootWeb;
03 cCtx.Load(root);
04 WebCreationInformation webInfo = new WebCreationInformation(); 05 webInfo.Title = "site1";
06 webInfo.Url = "site1";
07 webInfo.WebTemplate = "MPS#2";
08 root.Webs.Add(webInfo);
10 cCtx.Dispose();
You need to ensure that the application creates the site.
Which code segment should you add at line 09?
A. cCtx.Site.RootWeb.Update ();You develop a custom approval workflow. The workflow uses the CreateTask class to assign tasks to a user named User1. A list called Tasks stores the tasks. Other workflows and users use the Tasks list. You need to ensure that the tasks assigned to User1 can only be viewed by User1.
What should you do?
A. Set the CreateTask.SpecialPermissions property.You create a custom field type and a CustomFieldControl.ascx user control. You need to write the code-behind of the CustomFieldControl.acsx user control.
Which object should you override?
A. SPFieldTextYou create a Web Part by using Microsoft Visual Studio 2010. You need to execute SPDisposeCheck.exe before the Web Part is deployed. What should you do?
A. Configure a pre-deployment command line.You have a document library named MyDocs. MyDocs has a column named Column1. Column1 is a required column. You discover that many documents are checked out because users fail to enter a value for Column1. You need to create a Web Part to delete the documents. Which code segment should you include in the Web Part?
A. For Each file As SPCheckedOutFile In CType(SPContext.Current.Web.Lists("MyDocs"),SPDocumentLibrary).CheckedOutFiles file.Delete NextYou need to create a Web Part that verifies whether a user who accesses the Web Part page is a member of a group named Group1.
Which code condition should you use?
A. SPContext.Current.Web.Groups("Group1").ContainsCurrentUserYou 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 need to apply the custom master page to the site and ensure that future pages added to the site, including system and application pages, automatically use the custom master page. You must also ensure that future SharePoint updates
do not remove or modify the changes you have made.
What should you do?
A. Set the MasterUrl property and CustomMasterUrl property of the site to /_catalogs/masterpage/MyMasterPage.master,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 following code segment.
Dim codc As New AdventureWorksDataContext(New
Uri("http://contoso/_vti_bin/listdata.svc"))
codc.Credentials = CredentialCache.DefaultCredentials
You need to read all items in Products into an object. Which method should you use?
A. codc.Products.AllYou develop a custom master page.
You need to ensure that all pages that use the master page contain a specific image. Page developers must be able to change the image on individual pages. The master page must be compatible with the default content page.
What should you add to the master page?
A. a ContentPlaceHolder controlNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-573 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.