This page was exported from All The Latest MCTS Exam Questions And Answers For Free Share [ https://www.mctsdump.com ] Export date:Thu Nov 21 11:35:45 2024 / +0000 GMT ___________________________________________________ Title: [Pass Ensure VCE Dumps] Pass 70-573 Exam By Training PassLeader Free 70-573 Braindump (181-200) --------------------------------------------------- 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 181You create a list named List1. You create two workflows named WF1 and WF2 for List1. You need to ensure that when a new item is created in List1, WF1 starts automatically. WF2 must start automatically after WF1 completes. What should you do? A.    Add a SendActivity activity to WF2.B.    Add a Replicator activity to WF2.C.    Create a SPWebEventReceiver event receiver.D.    Create a SPWorkflowEventReceiver event receiver. Answer: DExplanation: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 182You develop a custom approval workflow. The workflow uses the CreateTask class to assign tasks to a user named User1. A list called Tasks stores the tasks. Other workflows and users use the Tasks list. You need to ensure that the tasks assigned to User1 can only be viewed by User1. What should you do? A.    Set the CreateTask.SpecialPermissions property.B.    Set the CreateTask.TaskProperties property.C.    Break the permission inheritance for the Tasks list.D.    Assign a custom permission level to a group that contains User1. Answer: AExplanation:MNEMONIC RULE: "SpecialPermissions"CreateTask.SpecialPermissions Propertyhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.workflowactions.createtask.specialpermissions.aspx QUESTION 183You 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. Answer: CExplanation: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 Workflowshttp://msdn.microsoft.com/en-us/library/ms475438.aspx QUESTION 185You need to disable the CriticalExceptionCount measure for all user solutions. You write the following code segment. (Line numbers are included for reference only.)01 Dim userCode As SPUserCodeService = SPUserCodeService.Local02 Dim measures As SPResourceMeasureCollection = userCode.ResourceMeasures03 Dim measure As SPResourceMeasure = measures("CriticalExceptionCount") 0405 measure.Update()Which code segment should you add at line 04? A.    measure.AbsoluteLimit = 0B.    measure.AbsoluteLimit = 1C.    measure.ResourcesPerPoint = 0D.    measure.ResourcesPerPoint = 1 Answer: C QUESTION 186You create a Visual Web Part. You need to add an image to the Web Part. The image must be deployed to the 14TEMPLATEIMAGES folder. What should you do in Microsoft Visual Studio? A.    Add a SharePoint Layouts mapped folder and create a subfolder named Images.B.    Create a folder named Images.C.    Add a SharePoint Images mapped folder.D.    Create a folder named_Layouts and a subfolder named Images. Answer: CExplanation:MNEMONIC RULE: Images mapped folderDeploying files using Mapped Foldershttp://blogs.msdn.com/b/vssharepointtoolsblog/archive/2010/03/12/deploying-files-using-mapped-folders.aspx QUESTION 187You use a custom site definition to create SharePoint sites. You need to add a Web Part to the home page of the site definition. Which file should you modify? A.    Onet.xmlB.    default.masterC.    web.conflgD.    Sp.xml Answer: AExplanation:MNEMONIC RULE: "third-party 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.Understanding Onet.xml Fileshttp://msdn.microsoft.com/en-us/library/ms474369.aspx QUESTION 188You have a Web application named WebApp1. You have a Feature receiver named FeatureReceiver1. FeatureReceiver1 stores a connection string in the web.config file of WebApp1. You need to ensure that when FeatureReceiver1 makes configuration changes to web.config, the changes are automatically replicated to all Web servers in the farm. Which class should you use in FeatureReceiver1? A.    SPPersistedObjectB.    SPWebConfigModificationC.    SPDiagnosticsServiceD.    WebConfigurationManager Answer: CExplanation:MNEMONIC RULE: "web.config modification = SPWebConfigModification" To apply modifications that you define through the SPWebConfigModification class to the web.config files inthe server farm, call the ApplyWebConfigModifications method on the current content Web service object, as follows:SPWebService.ContentService.ApplyWebConfigModifications SPWebConfigModification Classhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spwebconfigmodification.aspx QUESTION 189You are creating a Web Part for SharePoint Server 2010. The Web Part contains the following code segment. (Line numbers are included for reference only.)01 Protected Overloads Overrides Sub CreateChildControls()02 MyBase.CreateChildControls()03 SPSecurity.RunWithElevatedPrivileges(ElevatedCode)04 05 End Sub06 Private Sub ElevatedCode()07 Dim ListCount As New Label()08 ListCount.Text = [String].Format("There are {0} Lists", SPContext.Current.Web.Lists.Count)09 Controls.Add(ListCount)10 End SubYou need to identify which line of code prevents the Web Part from being deployed as a sandboxed solution. Which line of code should you identify? A.    02B.    03C.    08D.    09 Answer: B QUESTION 190You need to add a new field to a provisioned content type. You must propagate the field to child lists and child content types. What should you use? A.    <MapFile>B.    <FieldRefs>C.    <AddContentTypeField>D.    <ApplyElementManifests> Answer: CExplanation:MNEMONIC RULE: "field for content type = AddContentTypeField" AddContentTypeField Element (Feature)http://msdn.microsoft.com/en-us/library/ff595314.aspx http://www.passleader.com/70-573.html QUESTION 191You have a SharePoint site that uses the default search settings. You create a new Search Center. You need to ensure that the new Search Center is the default Search Center for the site. What should you modify? A.    the AllWebs collection of the site collectionB.    the Cache property of the current HttpContextC.    the AllProperties collection of the siteD.    the Session property of the current HttpContext Answer: CExplanation:MNEMONIC RULE: "AllProperties of the site"SPWeb.AllProperties Propertyhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.allproperties.aspxBloody Stupid SPWeb propertieshttp://www.novolocus.com/2010/12/22/stupid-spweb-properties/ QUESTION 192You create a Microsoft .NET Framework console application that uses a Representational State Transfer (REST) API to query a custom list named Products. The application contains the following code segment.Dim codc As New AdventureWorksDataContext(NewUrl("http://contoso/_vti_bin/listdata.svc"))codc.Credentials = CredentialCache.DefaultCredentialsYou need to read all items in Products into an object. Which method should you use? A.    codc.Products.AllB.    codc.Products.AsQueryableC.    codc.Products.ElementAtD.    codc.Products.ToList Answer: D QUESTION 193You have a document library named Documents. Minor and major version management is enabled for the document library. You plan to add a document named MyFile.docx to Documents. You create a console application that contains the following code segment. (Line numbers are included for reference only.)01 Using site As New SPSite("http://intranet")02 Dim documents As SPList = site.RootWeb.Lists("Documents")03 Dim fstream As FileStream = File.OpenRead("MyFile.docx")04 Dim content As Byte() = New Byte(fstream.Length - 1) {}05 fstream.Read(content, 0, CInt(fstream.Length))06 fstream.Close()07 site.RootWeb.Files.Add(documents.RootFolder.Url & "/MyFile.docx", content, True)08 Dim file As SPFile = site.RootWeb.GetFile(documents.RootFolder.Url & "/ MyFile.docx")09 file.CheckIn(String.Empty)1011 End UsingYou need to ensure that all users can see the document. Which code segment should you add at line 10? A.    file.CanOpenFile(true)B.    file.Publish(string.Empty)C.    file.ReleaseLock(string.Empty)D.    file.Update() Answer: B QUESTION 194You are creating a custom content type named CT1. You need to use a Feature to add an existing site column named SiteCol1 to CT1. Which code segment should you include in the Feature? A.    <Field ID="SiteCol1"/>B.    <Field ID="{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX}" Name="SiteCol1"/>C.    <FieldRef ID="SiteCol1" Name="{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX}"/>D.    <FieldRef ID="{XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXX}" Name="SiteCol1"/> Answer: DExplanation:MNEMONIC RULE: "existing Field needs to be Referenced" FieldRef Element (ContentType)http://msdn.microsoft.com/en-us/library/aa543225.aspx QUESTION 195You have a helper method named CreateSiteColumn that contains the following code segment.Private Shared Sub CreateSiteColumn(ByVal web As SPWeb, ByVal columnName As String)web.Lists(0).Views(0).ViewFields.Add(columnName)End SubYou need to add a new site column of type Choice to a SharePoint site by using the helper method. Which code segment should you include in the helper method? A.    Dim field As SPField = New SPFieldChoice(web.Lists(0).Fields, columnName)B.    web.Fields.Add(columnName, SPFieldType.Choice, True)C.    web.Lists(0).Fields.Add(columnName, SPFieldType.Choice, True)D.    web.Lists(0).Views(0).ViewFields.Add(columnName) Answer: B QUESTION 196You 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() Answer: C QUESTION 197You need to create a custom application that provides users with the ability to create a managed property. The managed property name must be specified in the args[1] parameter. You write the following code segment for the application. (Line numbers are included for reference only.)01 Dim currentSite As New SPSite("http://intranet")02 Dim context As SearchContext = SearchContext.GetContext(currentSite)03 Dim schema As New Schema(context)Which code segment should you add to the application? A.    context.SearchApplication.CrawlStores.Create(args(1))B.    Dim properties As ManagedPropertyCollection = schema.AllManagedProperties Dim newMng As ManagedProperty = properties.Create(args(1), ManagedDataType.Text)C.    Dim properties As ManagedPropertyCollection = schema.AllManagedProperties Dim newMng As ManagedProperty = properties.CreateCrawlMonProperty() newMng.Name = args(1)D.    schema.AllCategories.Create(args(1), Guid.NewGuid()) Answer: B QUESTION 198You create a Web Part. You need to display the number of visits to a SharePoint site collection in a label named LblVisits. You write the following code segment. (Line numbers are included for reference only.)01 RunWithElevatedPrivileges(ElevateSub)02 Private Sub ElevatedSub()03 Try0405 LblVisits.Text = site.Usage.Visits.ToString()06 Finally07 ...08 End Try09 End SubWhich code segment should you add at line 04? A.    Dim esite As New SPSite(SPContext.Current.Site.ID)B.    Dim esite As SPSite = SPContext.Current.SiteC.    Dim esite As SPSite = SPContext.GetContext(HttpContext.Current).SiteD.    Dim esite As SPSite = SPControl.GetContextSite(HttpContext.Current) Answer: A QUESTION 199You 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 <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.B.    Create a new Feature. In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children.C.    Modify the CMDUI.xml file. In a new <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.D.    Modify the CMDUI.xml file. In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children. Answer: B QUESTION 200You have a SharePoint site that contains 10 lists. You need to prevent a list named List1 from appearing on the Quick Launch navigation bar. What should you configure? A.    the QuickLaunchEnabled property of the siteB.    the Hidden property of List1C.    the OnQuickLaunch property of List1D.    the Navigation.QuickLaunch.Parent.IsVisible property of the site Answer: CExplanation:MNEMONIC RULE: "Do you want to see the list on Quick Launch?" Gets or sets a Boolean value that specifies whether the list appears on the Quick Launch area of the homepage.SPList.OnQuickLaunch Propertyhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.onquicklaunch.aspx http://www.passleader.com/70-573.html --------------------------------------------------- Images: --------------------------------------------------- --------------------------------------------------- Post date: 2015-11-17 06:13:17 Post date GMT: 2015-11-17 06:13:17 Post modified date: 2015-11-17 06:13:17 Post modified date GMT: 2015-11-17 06:13:17 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com