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 211:
You have one Web application that contains several SharePoint site collections.
You need to add a custom button to the Documents tab on the Ribbon of one site collection only.
What should you do?
A. Create a new Feature. In a new node, specify the location of Ribbon.Tabs._children. B. Create a new Feature. In a new node, specify the location of Ribbon.Documents.Manage.Controls._children. C. Modify the CMDUI.xml file. In a new node, specify the location of Ribbon.Tabs._children. D. Modify the CMDUI.xml file. In a new node, specify the location of Ribbon. Documents.Manage.Controls._children.
B. Create a new Feature. In a new node, specify the location of Ribbon.Documents.Manage.Controls._children.
Question 212:
You have a Web Part that causes an error. You need to ensure that you can view the trace history in the Trace.axd file. What should you configure in the web.config file?
A. In the element, add the following line of code. B. In the element, configure the following attributes. CallStack="true" AllowPageLevelTrace="true" C. In the element, configure the following attributes. CallStack="false" AllowPageLevelTrace="true" D. In the element, configure the following element. In the element, configure the following attribute. AllowPageLevelTrace="true"
A. In the element, add the following line of code.
You are creating a Web Part that will be deployed as a sandboxed solution. You need to ensure that the Web Part can write debugging information to the SharePoint trace logs. Which class should the logging component inherit?
A. SPDelegate B. SPLog C. SPPersistedObject D. SPProxyOperation
D. SPProxyOperation
MNEMONIC RULE: "sandboxed solution needs SPProxyOperation" You can implement your full-trust functionality in classes that derive from the SPProxyOperation abstract classand deploy the assembly to the global assembly cache. These classes expose a full-trust proxy that you cancall from within the sandbox environment. Full-trust proxies can provide a useful way to expose logging and configuration functionality to sandboxedapplications. Hybrid Approaches http://msdn.microsoft.com/en-us/library/ff798433.aspx
Question 214:
You create a custom workflow by using Microsoft Visual Studio 2010.
You need to specify a custom InfoPath workflow initiation form in the workflow element manifest file.
Which attribute should you configure?
A. Association_FormURN B. Instantiation_FieldML C. Instantiation_FormURN D. InstantiationUrl
C. Instantiation_FormURN
MNEMONIC RULE: "initiation form = Instantiation_FormURN" Specifies the URN of the Microsoft InfoPath 2010 form to use to initiate the workflow. Instantiation_FormURN Element (Workflow) - ECM http://msdn.microsoft.com/en-us/library/aa672715.aspx
Question 215:
You create a modal dialog that displays a list of items. You need to capture the items selected by a user. Which code segment should you use?
A. SPItem item = SPContext.Current.Item; B. var items = SP.ListOperation.Current.Item(); C. var items = SP.ListOperation.Selection.getSelectedItems(); D. var item = SPContext.Current.Item["Selected"];
C. var items = SP.ListOperation.Selection.getSelectedItems();
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 reference only.)
01 RunWithElevatedPrivileges(EvelateSub)
02 Private Sub ElevatedSub()
03 Dim currSite As SPSite = SPContext.Current.Site
04 Dim currWeb As SPWeb = SPContext.Current.Web
05 Using eSite As New SPSite(currSite.ID)
06 Using eWeb As SPWeb = eSite.OpenWeb(currWeb.ID)
07 eWeb.AllowUnsafeUpdates = True
08 currWeb.Description = "Test"
09 currWeb.Update()
10 eWeb.AllowUnsafeUpdates = False
11 End Using
12 End Using
Users report that they receive an Access Denied error message when they use the Web Part. You need to ensure that all users can use the Web Part to update the description of the current site.
What should you do?
A. Remove lines 07 and 10. B. Remove lines 08 and 09. C. Change lines 08 and 09 to use the eWeb variable. D. Change lines 07 and 10 to use the currWeb variable.
C. Change lines 08 and 09 to use the eWeb variable.
Question 217:
You are developing a custom Feature by using Microsoft Visual Studio 2010. You need to ensure that when you deploy the Feature, a file named Form1.xsn is deployed to the Feature folder. You must achieve this goal by using the minimum amount of development effort. What should you do?
A. Add a new module to the Visual Studio project. B. Add a Feature receiver to the Visual Studio project. C. Configure the Properties element in the Feature definition file. D. Configure the ActivationDependencies element in the Feature definition file.
A. Add a new module to the Visual Studio project.
MNEMONIC RULE: "deploy file = module" A module is a collection of file instances, which are instances of files that are provisioned in a site. To provisiona file into Microsoft SharePoint Foundation Web sites, you must use the Module element within a Feature orsite definition. The Module element allows you to add one or more files to a SharePoint Foundation Web site ordocument library. Module http://msdn.microsoft.com/en-us/library/ms462994.aspx How to: Provision a File http://msdn.microsoft.com/en-us/library/ms441170.aspx
Question 218:
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.ascx. What should you do?
A. Modify the SmallSearchInputBox control tag in the master page, and then configure the ControlId property. B. Modify the SmallSearchInputBox control tag in the master page, and then configure the ControlSrc property. C. Create a Web Part that uses MySearch.ascx. In the master page, add a control tag that references the .webpart file. D. Create a Visual Web Part that uses MySearch.ascx. In the master page, add a control tag that references the .webpart file.
B. Modify the SmallSearchInputBox control tag in the master page, and then configure the ControlSrc property.
You have a custom site definition. You create a custom site Feature. You need to ensure that the Feature is activated for all new sites that are created by using the custom site definition. What should you do?
A. Modify the Onet.xml file. B. Modify the web.config file. C. Add a Feature receiver to the custom site Feature. D. Add a Feature dependency to the custom site Feature.
A. Modify the Onet.xml file.
MNEMONIC RULE: "custom site definition = Onet.xml" You can perform the following kinds of tasks in a custom Onet.xml file that is used for either a custom sitedefinition or a custom web template:
Specify an alternative cascading style sheet (CSS) file, JavaScript file, or ASPX header file for a sitedefinition.
Modify navigation areas for the home page and list pages. Add a new list definition as an option in the UI. Define one configuration for the site definition or web template, specifying the lists, modules, files, and WebParts that are included
when the configuration is instantiated. Specify Features to be included automatically with websites that are created from the site definition or webtemplate.
You have the following event receiver. (Line numbers are included for reference only.)
01Public Overloads Overrides Sub FieldDeleting
(ByVal properties As SPListEventProperties)
02 MyBase.FieldDeleting(properties)
03 If properties.FieldName = "Status" Then
06 End If
07End Sub
You need to cancel the operation and redirect the user to a custom error page if the name of the deleted field is Status. Which code segments should you add at lines 04 and 05?
A. 04properties.ReceiverData = "/_layouts/customErrorPage.aspx" 05properties.Cancel = True B. 04properties.RedirectUrl = "/_layouts/customErrorPage.aspx" 05properties.Cancel = True C. 04properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl 05properties.ReceiverData = "/_layouts/customErrorPage.aspx" D. 04properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl 05properties.RedirectUrl = "/_layouts/customErrorPage.aspx"
D. 04properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl 05properties.RedirectUrl = "/_layouts/customErrorPage.aspx"
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.