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 221:
You plan to create a workflow that has the following three activities:
You need to ensure that each time the workflow starts, the three activities are linked to a single task.
What should you do?
A. Create an SPWorkflowEventReceiver event receiver for the SharePoint Tasks list. B. Configure all activities to use the same Taskld. C. Configure all activities to use the same correlation token. D. Create an SPItemEventReceiver event receiver for the SharePoint Tasks list.
C. Configure all activities to use the same correlation token.
MNEMONIC RULE: "Correlation token (to correlate one task with three activities)" Each specific task within the workflow should have its own correlation token, which each related activity canuse to access the same, task-specific information. For example, if in your workflow you want to reference thesame task in CreateTask, CompleteTask, and OnTaskChanged activities, you would bind the CorrelationTokenproperty of each of these activities to the same correlation token variable. Correlation Tokens in Workflows http://msdn.microsoft.com/en-us/library/ms475438.aspx
Question 222:
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 use?
A. Dim profile As String = SPContext.Current.Web.Properties("CurrentUser/MyProperty") B. Dim profile As String = SPContext.Current.Web.Users("MyProperty").ToString() C. Dim profileManager As New UserProfileManager(SPServiceContext.Current) Dim userProfile As UserProfile = profileManager.GetUserProfile (SPContext.Current.Web.CurrentUser.LoginName) Dim profile As String = userProfile("MyProperty").ToString() D. Dim profileManager As New UserProfileManager(SPServiceContext.Current) Dim userProfile As UserProfile = profileManager.GetUserProfile (SPContext.Current.Web.CurrentUser.LoginName) Dim profile As String = userProfile.Properties.GetPropertyByName ("MyProperty").ToString()
C. Dim profileManager As New UserProfileManager(SPServiceContext.Current) Dim userProfile As UserProfile = profileManager.GetUserProfile (SPContext.Current.Web.CurrentUser.LoginName) Dim profile As String = userProfile("MyProperty").ToString()
Question 223:
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 numbers are included for reference only.)
01 Public Overloads Overrides Sub ItemUpdating(ByVal prop As SPItemEventProperties)
02 MyBase.ItemUpdating(prop)
06 End Sub
You need to ensure that when the Title field is changed to include the word IMPORTANT, the Priority field is set to URGENT. Which code segments should you add at lines 03, 04 and 05?
A. 03If prop.AfterProperties("vti_title").ToString().Contains("IMPORTANT") Then 04 prop.AfterProperties("Priority") = "URGENT" 05 End If B. 03If prop.AfterProperties("vti_title").ToString().Contains("IMPORTANT") Then 04 prop.ListItem("Priority") = "URGENT" 05 End If C. 03 If prop.BeforeProperties("vti_title").ToString().Contains("IMPORTANT") Then 04 prop.AfterProperties("Priority") = "URGENT" 05 End If D. 03 If prop.ListItem("Title").ToString().Contains("IMPORTANT") Then 04 prop.AfterProperties("Priority") = "URGENT" 05 End If
A. 03If prop.AfterProperties("vti_title").ToString().Contains("IMPORTANT") Then 04 prop.AfterProperties("Priority") = "URGENT" 05 End If
Question 224:
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 upgraded, additional configuration data is added to the property bag of the site. What should you do?
A. Add a element and increase the Version number of the Feature. B. Add a element and increase the UIVersion number of the Feature. C. Add an element and increase the Version number of the Feature. D. Add an element and increase the UIVersion number of the Feature.
A. Add a element and increase the Version number of the Feature.
MNEMONIC RULE: "CustomUpgradeAction Version"
-- Allows you to execute custom code when a Feature instance is being upgraded.
You need to create a Web Part that will store and retrieve information for the current subsite. Which object should you use?
A. SPContext.Current.Site.RootWeb.AllProperties B. SPContext.Current.Site.RootWeb.Configuration C. SPContext.Current.Web.Configuration D. SPContext.Current.Web.Properties
D. SPContext.Current.Web.Properties
MNEMONIC RULE: "information is in Web.Properties" SPContext.Current.Web is SPWeb object.
Properties is the SPPropertyBag object with the metadata for the website.
You plan to change the native search control in SharePoint to MySearch.ascx.
You need to provide the site administrator with the ability to change the out-of- the-box search control to MySearch.ascx.
What should you do?
A. Override the search delegate control by using a Feature. B. Modify the element in the web.config file. C. Configure the SearchBox.dwp in the Web Part gallery, D. Modify \14\TEMPLATE\FEATURES\SearchWebParts\SearchBox.dwp.
C. Configure the SearchBox.dwp in the Web Part gallery,
Question 227:
You need to add a modal dialog box to a SharePoint application. What should you use?
A. the Core.js JavaScript B. the Microsoft.SharePoint assembly C. the Microsoft.SharePoint.Client assembly D. the SP.js JavaScript
D. the SP.js JavaScript
MNEMONIC RULE: "SP.js"
SP.UI namespace is defined in SP.Core.js, SP.js, SP.UI.Dialog.js files. ModalDialog is a part of SP.UInamespace.
You 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 control B. a Delegate control C. a PlaceHolder control D. an HTML Div element
A. a ContentPlaceHolder control
MNEMONIC RULE: "master page = ContentPlaceHolder" Defines a region for content in an ASP.NET master page. ContentPlaceHolder Class http://msdn.microsoft.com/enus/library/system.web.ui.webcontrols.contentplaceholder.aspx
Question 229:
You create a SharePoint solution that contains two Features named Feature1 and Feature2.
You need to ensure that Feature1 is always activated before Feature2. You must achieve this goal by using the minimum amount of development effort.
What should you do?
A. From Feature1.feature explorer, add Feature2 to the Feature Activation Dependencies list. B. Create a custom Feature receiver for Feature2. C. From Feature2.feature explorer, add Feature1 to the Feature Activation Dependencies list. D. Create a custom Feature receiver for Feature1.
C. From Feature2.feature explorer, add Feature1 to the Feature Activation Dependencies list.
MNEMONIC RULE: "add Feature1 to Feature2.feature explorer" Activation Dependencies and Scope http://msdn.microsoft.com/en-us/library/aa543162.aspx
Question 230:
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. foreach (SPCheckedOutFile file in ((SPDocumentLibrary)SPContext.Current.Web. Lists["MyDocs"]).CheckedOutFiles) { file.Delete(); } B. foreach (SPItem file in SPContext.Current.Web.Lists["MyDocs"].Items) { if ((file("CheckOutStatus") == "CheckOut")) { file.Delete(); } } C. foreach (SPListItem file in ((SPDocumentLibrary)SPContext.Current.Web.Lists ["MyDocs"]).Items) { if ((file("CheckOutStatus") == "CheckOut")) { file.Delete(); } } D. foreach (SPCheckedOutFile file in ((SPDocumentLibrary)SPContext.Current.Web. Lists["MyDocs"]).CheckedOutFiles) { file.TakeOverCheckOut(); }
A. foreach (SPCheckedOutFile file in ((SPDocumentLibrary)SPContext.Current.Web. Lists["MyDocs"]).CheckedOutFiles) { file.Delete(); }
MNEMONIC RULE: "SPCheckedOutFile, file.Delete()" Represents a checked-out file in a document library or workspace. SPCheckedOutFile Class http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spcheckedoutfile.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.