You create a custom list named Products. You need to perform a Representational State Transfer (REST) query that returns the first product in the list. Which URL should you use?
A. http://intranet/_vti_bin/ListData.svc/Products(1)You deploy a custom Web Part named WebPart1 to a SharePoint site.
WebPart1 contains the following code segment. (Line numbers are included for reference only.)
01 protected void Page_Load(object sender, EventArgs e)
02 {
03 SPSite site = null;
04 try
05 {
06 SPSite site = new SPSite("http://www.contoso.com/default.aspx");
07 SPWeb web = site.OpenWeb();
09 ...
10 }
11 catch
12 {
14 }
15 finally
16 {
18 }
19 }
After you deploy WebPart1, users report that the pages on the site load slowly.
You retract WebPart1 from the site.
Users report that the pages on the site load without delay. You need to modify the code in WebPart1 to prevent the pages from loading slowly.
What should you do?
A. Add the following line of code at line 08: site.ReadOnly = true;You create a console application to manage Personal Sites. The application contains the following code segment. (Line numbers are included for reference only.)
01 Dim siteCollection As New SPSite("http://moss");
02 Dim profileManager As New serProfileManager(ServerContext.GetContext(siteCollection));
03 Dim profile As UserProfile = profileManager.GetUserProfile("domain\username");
04 Dim personalSite As SPSite = profile.PersonalSite; 06 siteCollection.Dispose();
You deploy the application to a SharePoint site.After deploying the application, users report that the site loads slowly. You need to modify the application to prevent the site from loading slowly.
What should you do?
A. Remove line 06.You create a Web Part that contains the following code segment. (Line numbers are included for reference only.)
01 public class HebPart1: WebPart
02 {
03 public VebPart1() {}
05 protected override void CreateChildControlst)
06 {
07 Button clickButton = new Button(); 08
09 base.CreateChildControls();
10 ]
12 protected override void BenderContents(HtrolTextWriter writer)
13 {
15 base.RenderContents(writer);
16 }
17 }
You discover that the clickButton button does not appear. You need to ensure that the clickButton button appears.
What should you do?
A. Delete line 09.You have a custom master page named MyApplication.master.
You need to apply MyApplication.master to only a custom application page in a SharePoint site. You must achieve the goal by using the minimum amount of effort.
What should you do?
A. Add a custom HTTP module to the Web application that modifies the master page.You need to create a timer job that queries a list.
What should you do?
A. Create a class that inherits SPJobDefinition and override the Execute method.You create a Feature.
You need to add an item to the context menu of a list.
Which type of element should you use?
A. a ListlnstanceYou create a Feature named Feature1. Feature1 is activated in a SharePoint site.
You create a Web Part that contains the following code.
SPSite site = new SPSite("http://intranet/site1");
SPWeb web = site.OpenWeb();
SPFeatureDefinition feature = 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?
A. site.Features.Add(feature.Id);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?
A. Create a new Web Part and reuse the code from the existing MyControl.ascx file.You plan to create a custom approval workflow. The workflow approvers will enter their employee number in the edit task form. You need to ensure that the onTaskChangedl_Invoked method of the workflow retrieves the value of the employee number.
Which object should you use?
A. SPWorkflowTaskProperties.ExtendedPropertiesNowadays, 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.