Latest MCTS 70-573 Dumps Real Exam Download 101-110

Ensurepass

QUESTION 101

You add a delegate control to the <head> section of a custom master page. You reference a default script file by using the delegate control.

You need to ensure that the delegate control meets the following requirements:

Prevents other developers from deleting the default script reference

Provides developers with the ability to add additional script references

Provides developers with the ability to change the order of the script references

Which property should you use?

 

A. AllowMultipleControls

B. BindingContainer

C. Scope

D. Template_Controls

 

Correct Answer: A

Explanation/Reference:

MNEMONIC RULE: “additional script references = AllowMultipleControls”

DelegateControl.AllowMultipleControls Property

http://msdn.microsoft.com/en-us/library/

microsoft.sharepoint.webcontrols.delegatecontrol.allowmultiplecontrols.aspx

 

 

clip_image002[4]

A. Add a Replicator activity to WF2.

B. Add a SendActivity activity to WF2.

C. Create a SPWebEventReceiver event receiver.

D. Create a SPWorkflowEventReceiver event receiver.

 

Correct Answer: D

 

Explanation/Reference:

MNEMONIC RULE: “Workflow = SPWorkflowEventReceiver”

The SPWorkflowEventReceiverclass handles workflow events throughout the lifetime of a workflow.

Starting: Occurs when a workflow is starting

Started: Occurs when a workflow is started

Postponed: Occurs when a workflow is postponed

Completed: Occurs when a workflow is completed

You can register the SPWorkflowEventReceiverwith any site, list, or content type.

Apress – SharePoint 2010 as a Development Platform (book)

 

 

QUESTION 103

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 onTaskChanged1_Invoked method of the workflow retrieves the value of the employee number.

Which object should you use?

 

A. SPWorkflowActivationProperties.Item

B. SPWorkflowActivationProperties.TaskListId

C. SPWorkflowTaskProperties.ExtendedProperties

D. SPWorkflowTaskProperties.Properties

 

Correct Answer: C

 

Explanation/Reference:

MNEMONIC RULE: “onTaskChanged1 = SPWorkflowTaskProperties.ExtendedProperties”

There is no Properties member in SPWorkflowTaskProperties class.

Gets a hash table that represents the collection of extended task properties as name/value pairs.

SPWorkflowTaskProperties Properties

http://msdn.microsoft.com/en-us/library/ microsoft.sharepoint.workflow.spworkflowtaskproperties_properties.aspx

 

 

QUESTION 104

You plan to create a workflow that has the following three activities:

CreateTask

OnTaskChanged

CompleteTask

You need to ensure that each time the workflow starts, the three activities are linked to a single task.

What should you do?

 

A. Configure all activities to use the same TaskId.

B. Configure all activities to use the same correlation token.

C. Create an SPItemEventReceiver event receiver for the SharePoint Tasks list.

D. Create an SPWorkflowEventReceiver event receiver for the SharePoint Tasks list.

 

Correct Answer: B

Explanation/Reference:

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 can use to access the same, task-specific information. For example, if in your workflow you want to reference the same task in CreateTask, CompleteTask, and OnTaskChanged activities, you would bind the CorrelationToken property 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 105

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

 

Correct Answer: C

 

Explanation/Reference:

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 106

You are creating a custom workflow action to be used in Microsoft SharePoint Designer reusable workflows.

The action programmatically creates a SharePoint site named Site1 at a specific URL. The workflow actions schema file contains the following code segment.

<WorkflowInfo> <Actions Sequential=”then” Parallel=”and”>

 <Action Name=”Create Site” ClassName=”SPDActivityDemo.CreateSite”Assembly=”SPDActivityDemo, Version=1.0.0.0, Culture=neutral,

PublicKeyToken=1a4a7a2c3215a71b”AppliesTo=”all”Category=”Test”>

<Parameters> <Parameter Name=”Url” Type=”System.String, mscorlib” Direction=”In” /><Parameters> </Action></Actions></WorkflowInfo>

You need to ensure that users can specify the URL property of the action in SharePoint Designer.

What should you add to the schema of the action?

 

A. <xml version=”1.0″ encoding=”utf-8″>

B. <Option Name=”equals” Value=”Equal”/>

C. <Parameter Name=”Url” Type=”System.String, mscorlib” Direction=”Out” />

D. <RuleDesigner Sentence=”Create site at Url %1.”>

<FieldBind Field=”Url” Text=”Url of site” Id=”1″ DesignerType=”TextArea” /> </RuleDesigner>

 

Correct Answer: D

 

Explanation/Reference:

MNEMONIC RULE: “SharePoint Designer = RuleDesigner”

RuleDesigner Element (WorkflowInfo) http://msdn.microsoft.com/en-us/library/bb897951.aspx

 

 

QUESTION 107

You are creating a custom workflow action that will be used in Microsoft SharePoint Designer reusable workflows.

The action will programmatically create a SharePoint site named Site1 at a specific URL.

You need to ensure that users can specify the URL of Site1 in the action.

What should you use?

 

A. the DependencyProperty class

B. the OnWorkflowActivated.WorkflowProperties property

C. the SPPersistedObject class

D. the SPWorkflowActivationProperties.InitiationData property

 

Correct Answer: A

 

Explanation/Reference:

MNEMONIC RULE: “specify DependencyProperty”

Using Dependency Properties http://msdn.microsoft.com/en-us/library/ms734499(v=vs.90).aspx

 

 

QUESTION 108

You create a custom workflow action named WF1 that copies the content of a document library to another document library.

WF1 is used in a Microsoft SharePoint Designer reusable workflow. You need to ensure that the workflow action is deployed as a sandboxed solution.

Where should you define the workflow action?

 

A. the Elements.xml file

B. the ReplicatorActivity activity

C. the SPPersistedObject object

D. the WF1.actions file

Correct Answer: A

Explanation/Reference:

MNEMONIC RULE: “Elements.xml”

Sandboxed workflow activities in SharePoint 2010 http://www.wictorwilen.se/Post/Sandboxed-workflow-activities-in-SharePoint-2010.aspx

 

 

QUESTION 109

You have a SharePoint list named Projects and a site column named PrivateColumn.

You need to prevent users from adding PrivateColumn to the Projects list. Users must be able to add any

other site column to the Projects list.

What should you do?

 

A. Create an event receiver that inherits SPListEventReceiver and override FieldAdded.

B. Create an event receiver that inherits SPListEventReceiver and override FieldAdding.

C. Create an event receiver that inherits SPItemEventReceiver and override ItemAdded.

D. Create an event receiver that inherits SPItemEventReceiver and override ItemAdding.

 

Correct Answer: B

 

Explanation/Reference:

MNEMONIC RULE: “FieldAdding to a List”

 

 

clip_image004[4]

Explanation/Reference:

MNEMONIC RULE: “Workflow = SPWorkflowEventReceiver”

The SPWorkflowEventReceiverclass handles workflow events throughout the lifetime of a workflow.

Starting: Occurs when a workflow is starting

Started: Occurs when a workflow is started

Postponed: Occurs when a workflow is postponed

Completed: Occurs when a workflow is completed

You can register the SPWorkflowEventReceiverwith any site, list, or content type.

Apress – SharePoint 2010 as a Development Platform (book)

 

 

Download Lates MCTS 70-573 Real Free Tests , help you to pass exam 100%.