Microsoft 70-573 Online Practice
Questions and Exam Preparation
70-573 Exam Details
Exam Code
:70-573
Exam Name
:TS: Office SharePoint Server, Application Development (available in 2010)
Certification
:Microsoft Certifications
Vendor
:Microsoft
Total Questions
:280 Q&As
Last Updated
:Feb 06, 2022
Microsoft 70-573 Online Questions &
Answers
Question 21:
You have a SharePoint Web application that has the URL http;//intranet.
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 named textBoxTitle.
You write the following code segment. (Line numbers are included for reference only.)
01 ClientContext context = new ClientContext("http://intranet"); 03 Web site = context.Web;
04 context.Load(site) ;
06 textBoxTitle.Text = site.Title;
You discover that line 0 6 generates an error.
You need to ensure that the .NET application displays the title of the SharePoint site in textBoxTitle.
What should you do?
A. Add the following line of code at line 02. context.ExecuteQuery() ; B. Add the following line of code at line 05. context.ExecuteQuery(); C. Add the following line of code at line 05. context.ValidateOnClient = true; D. Add the following line of code at line 02. context-ValidateOnClient = true;
B. Add the following line of code at line 05. context.ExecuteQuery();
Question 22:
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 need to ensure that WebPart1 can run as a sandboxed solution in Microsoft SharePoint Server 2010.
What should you do?
A. Create a new Visual Web Part by using the code from WebPart1. B. Create a new Web Part by using the code from WebPart1. C. Create an ASCXfile for WebPart1, and then copy the file to the ISAPI folder. D. Create an ASCXfile for WebPart1, and then copy the file to the CONTROLSTEMPLATES folder.
A. Create a new Visual Web Part by using the code from WebPart1.
Question 23:
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?
A. SPRoleDefinition myRole = new SPRoleDefinition(); myRole.Name = "Contribute"; SPContext.Current.Web.RoleDefinitions.Add(myRole); B. SPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web. RoleDefinitions["Contribute"]); myRole.Name = "MyContribute"; SPContext.Current.Web.RoleDefinitions.Add(myRole); C. SPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web. RoleDefinitions["MyContribute"]); myRole.Description = "Contribute"; SPContext.Current.Web.RoleDefinitions.Add(myRole); D. SPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web. RoleDefinitions["MyContribute"]); myRole.Name = "Contribute"; SPContext.Current.Web.RoleDefinitions.Add(myRole);
B. SPRoleDefinition myRole = new SPRoleDefinition(SPContext.Current.Web. RoleDefinitions["Contribute"]); myRole.Name = "MyContribute"; SPContext.Current.Web.RoleDefinitions.Add(myRole);
MNEMONIC RULE: "RoleDefinitions("Contribute")"
Question 24:
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.
What should you do?
A. Create a site definition and modify the element in the web.config file. B. Create a user control that contains the script. Create a Feature that overrides the AdditionalPageHead delegate control. C. Create a site definition and modify the CustomJSUrl attribute in the Onet.xml file. D. Create a user control that contains the script. Create a Feature that overrides the ControlArea delegate control.
B. Create a user control that contains the script. Create a Feature that overrides the AdditionalPageHead delegate control.
MNEMONIC RULE: AdditionalPageHead The delegate control resides in the AdditionalPageHead control on the page. It registers some ECMAScript(JavaScript, JScript) on the page. How to: Customize a Delegate Control http://msdn.microsoft.com/en-us/library/ms470880.aspx
Question 25:
You 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. B. Configure SPDisposeCheck.exe as an external tool. C. Change the configuration from Active (Debug) to Release. D. Change the active deployment configuration to No Activation.
A. Configure a pre-deployment command line.
MNEMONIC RULE: "before deployed = pre-deployment" How to: Set SharePoint Deployment Commands http://msdn.microsoft.com/en-us/library/ee231534.aspx
Question 26:
You create a Feature. You need remove the link to the Site Content Type page from the Site Settings page by using the Feature. Which element should you use in the Feature?
A. ContentType B. ContentTypeBinding C. HideCustomAction D. Module
C. HideCustomAction
MNEMONIC RULE: "remove = HideCustomAction"
Use the HideCustomAction element to hide an existing action that is implemented by default within theinfrastructure of Microsoft SharePoint Foundation Features, or within another custom action.
You need to hide the Quick Launch navigation bar of a SharePoint site. What should you use?
A. the Hidden property of each list B. the OnQuickLaunch property of each list C. the QuickLaunchEnabled property D. the Navigation.QuickLaunch.Parent.IsVisible property
You create a custom page layout that has a field control named Field1.
You need to ensure that Field1 is only visible when users modify the contents of the page.
Which parent control should you use for Field1?
A. PublishingContext B. PageLayoutValidator C. EditModePanel D. ValidatorAggregator
C. EditModePanel
MNEMONIC RULE: "visible when modify = EditModePanel" Provides a container that shows or hides its child controls based on the mode of the page. EditModePanel Class http://msdn.microsoft.com/enus/library/microsoft.sharepoint.publishing.webcontrols.editmodepanel.aspx
Question 29:
You need to connect two Web Parts by using the IWebPartRow interface. Which method should you use?
A. GetFieldValue B. Dataltem C. GetRowData D. GetTableData
C. GetRowData
MNEMONIC RULE: "iWebPartRow = GetRowData" Returns the data for the row that is being used by the interface as the basis of a connection between twoWebPart controls. IWebPartRow.GetRowData Method http://msdn.microsoft.com/enus/library/system.web.ui.webcontrols.webparts.iwebpartrow.getrowdata.aspx
Question 30:
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 (REST) query that returns a list of all the offices that have rooms with a capacity of 10. The query results must include the room titles and the equipment in each room. Which URL should
you choose?
A. /_vti_bin/ListData.svc/Offices $expand=Roomsand$filter=Rooms/Capacity eq 10 B. /_vti_bin/ListData.svc/Offices and$filter=Rooms/Capacity eq 10 C. /_vti_bin/ListData.svc/Rooms $expand=Officesand$filter=Rooms/Capacity eq 10 D. /_vti_bin/ListData.svc/Rooms and$filter=Offices/Capacity eq 10
A. /_vti_bin/ListData.svc/Offices $expand=Roomsand$filter=Rooms/Capacity eq 10
Explanation: Section: (none)
MNEMONIC RULE: "Offices - Rooms - Rooms/Capacity" You can use the Expand method to navigate from one entity to a related entity. You can append query strings to the URLs in order to specify filter criteria or query logic.
Nowadays, 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.