This page was exported from All The Latest MCTS Exam Questions And Answers For Free Share [ https://www.mctsdump.com ] Export date:Fri Apr 19 7:10:25 2024 / +0000 GMT ___________________________________________________ Title: [Pass Ensure VCE Dumps] PassLeader 285q 70-573 VCE Braindumps For Free Download (161-180) --------------------------------------------------- Valid Tips For 100% Pass Exam 70-573: PassLeader now is providing the best 285q 70-573 VCE dumps and PDF dumps for your 70-573 certification exam. We offer the latest 285q 70-573 exam questions to ensure that you can 100 percent pass 70-573 exam, and what's more, we will offer you the new updated 70-573 exam dumps for one year free and free new version VCE Player. Welcome to visit our site -- passleader.com and get the valid 285q 70-573 braindumps to pass exam as soon as possible. keywords: 70-573 exam,285q 70-573 exam dumps,285q 70-573 exam questions,70-573 pdf dumps,70-573 vce dumps,70-573 study guide,70-573 practice test,TS: Microsoft SharePoint 2010, Application Development Exam QUESTION 161You create a Business Connectivity Services (BCS) object model in Microsoft Visual Studio 2010. The model connects to an XML file. You create an external list that displays the BCS entity. You need to ensure that users can delete items from the external list. What should you do? A.    Create a custom method and specify the method as a Deleter method instance.B.    Call the SPListItem.Delete() method.C.    Call the SPList.Delete() method.D.    Create a custom method and specify the method as a Disassociator method instance. Answer: AExplanation:MNEMONIC RULE: "Deleter method"XML Snippet: Modeling a Deleter Methodhttp://msdn.microsoft.com/en-us/library/ff464327.aspxCode Snippet: Execute the Deleter Method Instance of an External Content Typehttp://msdn.microsoft.com/en-us/library/ff464351.aspx QUESTION 162You 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. Answer: BExplanation:MNEMONIC RULE: "FieldAdding to a List" QUESTION 163You need to create a Web Part that displays all of the permission levels of the current subsite. Which collection should you use? A.    SPContext.Current.Web.PermissionsB.    SPContext.Current.Web.PropertiesC.    SPContext.Current.Web.RoleAssignmentsD.    SPContext.Current.Web.RoleDefinitions Answer: DExplanation:MNEMONIC RULE: "permission levels = RoleDefinitions"The role definition, or permission level, is the list of rights associated with the role. Role Assignments, Role Definitions, and Inheritancehttp://msdn.microsoft.com/en-us/library/ms414036.aspx QUESTION 164You 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_FormURNB.    Instantiation_FieldMLC.    Instantiation_FormURND.    InstantiationUrl Answer: CExplanation: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)-ECMhttp://msdn.microsoft.com/en-us/library/aa672715.aspx QUESTION 165You 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.B.    Create a class that inherits SPServiceApplicationand override the Provision method.C.    Create a class that inherits SPServiceApplicationand override the Provisionlnstances method.D.    Create a class that inherits SPJobDefinition and override the Provision method. Answer: AExplanation:MNEMONIC RULE: "Execute timer job"Next, and the most important thing, is to override Execute() method. This method is called each time when thejob is fired, so it should contain all the logic to accomplish what You expect from the job.SPJobDefinition as the way to create scheduled taskshttp://tomaszrabinski.pl/wordpress/2010/05/27/spjobdefinition-as-the-way-to-create-scheduled-tasks/ QUESTION 166You create a workflow named WF1. WF1 is attached to a list named List1. You need to receive an e-mail notification if WF1 is postponed. What should you do? A.    Use a HandleExternalEvent activity in WF1.B.    Attach an SPWorkflowEventReceiver event receiver to List1.C.    Attach an SPItemEventReceiver event receiver to List1.D.    Use a ReceiveActivity activity in WF1. Answer: BExplanation:MNEMONIC RULE: "Workflow = SPWorkflowEventReceiver"The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a workflow.Starting: Occurs when a workflow is startingStarted: Occurs when a workflow is startedPostponed: Occurs when a workflow is postponedCompleted: Occurs when a workflow is completedYou can register the SPWorkflowEventReceiver with any site, list, or content type. QUESTION 167You need to create a Web Part that verifies whether a user who accesses the Web Part page is a member of a group named Group1. Which code condition should you use? A.    SPContext.Current.Web.Groups("Group1").ContainsCurrentUserB.    SPContext.Current.Web.SiteUsers(SPContext.Current.Web.CurrentUser.ID).Groups ("Group1") <> nullC.    SPContext.Current.Web.SiteUsers(SPContext.Current.Web.CurrentUser.ID).Groups ("Group1") = nullD.    SPContext.Current.Web.Users("Group1").IsDomainGroup Answer: AExplanation:MNEMONIC RULE: ContainsCurrentUserGets a Boolean value that indicates whether the group contains the current user, included either through director indirect membership.SPGroup.ContainsCurrentUser Propertyhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spgroup.containscurrentuser.aspx QUESTION 168You create a custom field type and a CustomFieldControl.ascx user control. You need to write the code-behind of the CustomFieldControl.acsx user control. Which object should you override? A.    SPFieldTextB.    BaseFieldControlC.    SPFieldCalculatedD.    WebPart Answer: BExplanation:MNEMONIC RULE: "CustomFieldControl = BaseFieldControl"Renders a field on a form page (not a list view page) by using one or more child controls such as a label, link,or text box control.BaseFieldControl Classhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.basefieldcontrol.aspx QUESTION 169You 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.ExtendedPropertiesB.    SPWorkflowTaskProperties.PropertiesC.    SPWorkflowActivationProperttes.ItemD.    SPWorkflowActivationProperties.TaskUstld Answer: AExplanation: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 Propertieshttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflow.spworkflowtaskproperties_properties.aspx QUESTION 170You 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 classB.    the SPPersistedObject classC.    the SPWorkflowActivationProperties.InitiationData propertyD.    the OnWorkflowActivated.WorkflowProperties property Answer: AExplanation:MNEMONIC RULE: "specify DependencyProperty"Using Dependency Propertieshttp://msdn.microsoft.com/en-us/library/ms734499(v=vs.90).aspx http://www.passleader.com/70-573.html QUESTION 171You create a Web Part named WP1. You need to ensure that the name of the Web Part displays as Corporate in SharePoint. What should you do? A.    Rename WP1.webpart as Corporate.webpart.B.    In WP1.webpart, change the Title property to Corporate.C.    In the constructor of WP1.cs, add the following line of code: Page.Title="Corporate";D.    In the Elements.xml file, change the Name property of the <File> element to Corporate. Answer: BExplanation:MNEMONIC RULE: "Title property to Corporate"Web Parts Control Description Fileshttp://msdn.microsoft.com/en-us/library/ms227561.aspx QUESTION 172You create a Web Part that calls a function named long Call. You discover that long Call takes a long time to execute. You need to display in the Developer Dashboard how long it takes to execute long Call. Which code segment should you use? A.    Dim startTime As DateTime = DateTime.NowlongCall()Trace.Write("Long Call " & DateTime.Now.Subtract(startTime).Seconds)B.    Dim startTime As DateTime = DateTime.NowlongCall()Trace.TraceWarning("Long Call " & DateTime.Now.Subtract(startTime).Seconds)C.    Monitor.Enter("Long Call")If True ThenlongCall()End IfMonitor.[Exit]("Long Call")D.    Using monitoredScope As New SPMonitoredScope("Long Call") longCall()End Using Answer: D QUESTION 173You 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 <system.web> 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. Answer: BExplanation:MNEMONIC RULE: AdditionalPageHeadThe delegate control resides in the AdditionalPageHead control on the page. It registers some ECMAScript(JavaScript, JScript) on the page.How to: Customize a Delegate Controlhttp://msdn.microsoft.com/en-us/library/ms470880.aspx QUESTION 174You create a sandboxed solution that contains a Web Part. You need to debug the Web Part by using Microsoft Visual Studio 2010. To which process should you attach the debugger? A.    owstimer.exeB.    spucworkerprocess.exeC.    w3wp.exeD.    spucworkerprocessproxy.exe Answer: BExplanation:MNEMONIC RULE: "Sandbox worker needs no proxy"To provide additional protection, the solution's assembly is not loaded into the main IIS process (w3wp.exe). Instead, it is loaded into a separate process (SPUCWorkerProcess.exe).Sandboxed Solution Considerationshttp://msdn.microsoft.com/en-us/library/ee231562.aspxIf the project type lets you change the Sandboxed Solution property and its value is set to true, then thedebugger attaches to a different process (SPUCWorkerProcess.exe).Debugging SharePoint Solutionshttp://msdn.microsoft.com/en-us/library/ee231550.aspx QUESTION 175You 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. Which property should you use? A.    Template_ControlsB.    ScopeC.    BindingContainerD.    AllowMultipleControls Answer: DExplanation:MNEMONIC RULE: "additional script references = AllowMultipleControls" DelegateControl.AllowMultipleControls Propertyhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.delegatecontrol.allowmultiplecontrols.aspx QUESTION 176You are creating a Web Part in SharePoint Server 2010. You need to ensure that the Web Part can send data to another Web Part. Which interface should you implement? A.    IWebPartFieldB.    IQueryableC.    ISerializableD.    IWebEditable Answer: AExplanation:MNEMONIC RULE: "Web Part send data = IWebPartField" Defines a provider interface for connecting two server controls using a single field of data. This interface is designed to be used with Web Parts connections. In a Web Parts connection, two servercontrols that reside in a WebPartZoneBase zone establish a connection and share data, with one control actingas the consumer and the other control acting as a provider.IWebPartField Interfacehttp://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.iwebpartfield.aspx QUESTION 177You 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)03040506 End SubYou 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.    03 If prop.AfterProperties("vti_title").ToString().Contains("IMPORTANT") Then 04 prop.AfterProperties("Priority") = "URGENT"05 End IfB.    03 If prop.AfterProperties("vti_title").ToString().Contains("IMPORTANT") Then 04 prop.ListItem("Priority") = "URGENT"05 End IfC.    03 If prop.BeforeProperties("vti_title").ToString().Contains("IMPORTANT") Then 04 prop.AfterProperties("Priority") = "URGENT"05 End IfD.    03 If prop.ListItem("Title").ToString().Contains("IMPORTANT") Then04 prop.AfterProperties("Priority") = "URGENT"05 End If Answer: A QUESTION 178You create an entity named Customer in a Business Connectivity Services (BCS) object mode. You need to ensure that Customer data can be displayed in a Business Data List Web Part. Which method type should you use? A.    GenehclnvokerB.    SpecificFinderC.    FinderD.    IDEnumerator Answer: CExplanation:MNEMONIC RULE: "Finder for all Customer data"The first method created is ReadItem, which allows you to retrieve a specific record from the external storebased on an identifier. This is mapped to the XML metadata as a method instance of type "SpecificFinder." The second method that is created is ReadList, which retrieves all records from the external store. This ismapped in the XML metadata as a "Finder" method instance. These are the minimum two methods that your entity needs to implement in order to serve as a connector forBCS.Using Business Connectivity Services in SharePoint 2010http://msdn.microsoft.com/en-us/magazine/ee819133.aspx QUESTION 179You 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.    PublishingContextB.    PageLayoutValidatorC.    EditModePanelD.    ValidatorAggregator Answer: CExplanation:MNEMONIC RULE: "visible when modify = EditModePanel" Provides a container that shows or hides its child controls based on the mode of the page. EditModePanel Classhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.webcontrols.editmodepanel.aspx QUESTION 180You have the following event receiver. (Line numbers are included for reference only.)01 Public Overloads Overrides Sub FieldDeleting(ByVal properties As SPListEventProperties)02 MyBase.FieldDeleting(properties)03 If properties.FieldName = "Status" Then040506 End If07 End SubYou 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.    04 properties.ReceiverData = "/_layouts/customErrorPage.aspx" 05 properties.Cancel = TrueB.    04 properties.RedirectUrl = "/_layouts/customErrorPage.aspx" 05 properties.Cancel = TrueC.    04 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl 05 properties.ReceiverData = "/_layouts/customErrorPage.aspx"D.    04 properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl 05 properties.RedirectUrl = "/_layouts/customErrorPage.aspx" Answer: D http://www.passleader.com/70-573.html --------------------------------------------------- Images: --------------------------------------------------- --------------------------------------------------- Post date: 2015-11-17 04:14:54 Post date GMT: 2015-11-17 04:14:54 Post modified date: 2015-11-17 04:14:54 Post modified date GMT: 2015-11-17 04:14:54 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com