This page was exported from All The Latest MCTS Exam Questions And Answers For Free Share [ https://www.mctsdump.com ] Export date:Fri Mar 29 6:33:18 2024 / +0000 GMT ___________________________________________________ Title: [Pass Ensure VCE Dumps] Download New PassLeader 285q 70-573 Exam Questions And Passing Exam Easily (121-140) --------------------------------------------------- Pass 70-573 exam easily by learning PassLeader 70-573 exam dumps! PassLeader just updated the 285q 70-573 exam questions, the new 70-573 VCE or PDF practice tests cover all the real questions, which will help you passing 70-573 exam easily. What's more, PassLeader's new 70-573 VCE dumps and PDF dumps have corrected many wrong answers, which is not available in other free 70-573 VCE dumps, it will ensure you 100 percent passing 70-573 exam! 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 121You are developing a Feature that will be used in multiple languages. You need to ensure that users view the Feature's title and description in the display language of their choice. What should you create? A.    a Feature event receiverB.    a site definitionC.    multiple Elements.xml filesD.    multiple Resource (.resx) files Answer: DExplanation:MNEMONIC RULE: "Language Resource"Using Resource Files (.resx) when developing SharePoint solutionshttp://blogs.msdn.com/b/joshuag/archive/2009/03/07/using-resource-files-resx-when-developing-sharepointsolutions.aspx QUESTION 122You create a Web Part that updates a list. You need to ensure that users can use the Web Part to update the list, regardless of the users' permissions to the list. What should you use in the Web Part? A.    the SPSecurity.AuthenticationMode propertyB.    the SPSecurity.CatchAccessDeniedException propertyC.    the SPSecurity.RunWithElevatedPrivileges methodD.    the SPSecurity.SetApplicationCredentialKey method Answer: CExplanation:MNEMONIC RULE: "regardless of permissions = RunWithElevatedPrivileges" SPSecurity.RunWithElevatedPrivileges Methodhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx QUESTION 123You need to create a Web Part that creates a copy of the out-of-the box Contribute permission level. Which code segment should you implement in the Web Part? A.    Dim myRole As New SPRoleDefinition()myRole.Name = "Contribute"SPContext.Current.Web.RoleDefinitions.Add(myRole)B.    Dim myRole As New SPRoleDefinition(SPContext.Current.Web.RoleDefinitions("Contribute")) myRole.Name = "MyContribute"SPContext.Current.Web.RoleDefinitions.Add(myRole)C.    Dim myRole As New SPRoleDefinition(SPContext.Current.Web.RoleDefinitions("MyContribute")) myRole.Description = "Contribute"SPContext.Current.Web.RoleDefinitions.Add(myRole)D.    Dim myRole As New SPRoleDefinition(SPContext.Current.Web.RoleDefinitions("MyContribute")) myRole.Name = "Contribute"SPContext.Current.Web.RoleDefinitions.Add(myRole) Answer: B QUESTION 124Using Microsoft Visual Studio 2010, 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 can be deployed to multiple sites. Where should you define the workflow action? A.    the ReplicatorActivity activityB.    the Elements.xml fileC.    the WF1.actions fileD.    the SPPersistedObject object Answer: BExplanation:MNEMONIC RULE: "Elements.xml"Sandboxed workflow activities in SharePoint 2010http://www.wictorwilen.se/Post/Sandboxed-workflow-activities-in-SharePoint-2010.aspx QUESTION 125You plan to create one provider Web Part and two consumer Web Parts. You need to ensure that the consumer Web Parts can receive data from the provider Web Part. You create an interface that contains the following code segment.PublicInterface Interface1Property Parameter1 As StringEnd InterfaceWhat should you do next? A.    Implement Interface1 in the provider Web Part.B.    Implement IWebPartField in the provider Web Part.C.    Create a set accessor for Parameter1.D.    Create a second interface and use it to communicate with the provider Web Part. Answer: D QUESTION 126You create a Web Part that contains the following code segment. (Line numbers are included for reference only.)01 Public Class WebPart102 Inherits WebPart0304 Public Sub New()05 MyBase.New0607 End Sub0809 Protected Overrides Sub CreateChildControls()10 Dim clickButton As Button = New Button1112 MyBase.CreateChildControls13 End Sub1415 Protected Overrides Sub RenderContents(ByVal writer As HtmlTextWriter)1617 MyBase.RenderContents(writer)18 End Sub19 End ClassYou discover that the clickButton button does not appear. You need to ensure that clickButton appears. What should you do? A.    Delete line 12.B.    Move line 10 to line 16.C.    Add the following line of code at line 11.Controls.Add(clickButton)D.    Add the following line of code at line 11.clickButton.Page = me.Page Answer: C QUESTION 127You have a timer job that has the following constructors. (Line numbers are included for reference only.)01 public TimerJob1():base(){ }02 public TimerJob1(SPWebApplication wApp)You need to ensure that the timer job runs on the first available timer server only. Which base class constructor should you use at line 02? A.    public TimerJob1(SPWebApplication wApp) : base (null, wApp, null, SPJobLockType.ContentDatabase) { }B.    public TimerJob1(SPWebApplication wApp): base (null, wApp, null, SPJobLockType.Job){ }C.    public TimerJob1(SPWebApplication wApp):base (null, wApp, null, SPJobLockType.None) { }D.    public TimerJob1(SPWebApplication wApp):base ("TimerJob1", wApp, null, SPJobLockType.None) { } Answer: BExplanation:MNEMONIC RULE: "SPJobLockType.Job"Job member locks the timer job so that it runs only on one machine in the farm.SPJobLockType Enumerationhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spjoblocktype.aspx QUESTION 128You need to programmatically add a user named User1 to a group named Group1. You write the following code segment. (Line numbers are included for reference only.)01 Dim login As String = "User1"02 Dim grpName As String = "Group1"03 Dim user As SPUser = SPContext.Current.Web.EnsureUser(login)04 Dim group As SPGroup = SPContext.Current.Web.Groups(grpName)0506 group.Update()Which code segment should you add at line 05? A.    group.AddUser(user)B.    group.Owner = userC.    user.AllowBrowseUserInfo = TrueD.    user.Update() Answer: A QUESTION 129You are running a default installation of Microsoft Visual Studio 2010. You have a Web Part named WebPart1. WebPart1 runs on a Microsoft Office SharePoint Server 2007 server. You need to ensure that WebPart1 can run as a sandboxed solution in Microsoft SharePoint Server 2010. What should you do? A.    Create a new Visual Web Part by using the code from WebPart1.B.    Create a new Web Part by using the code from WebPart1.C.    Create an ASCXfile for WebPart1, and then copy the file to the ISAPI folder.D.    Create an ASCXfile for WebPart1, and then copy the file to the CONTROLSTEMPLATES folder. Answer: A QUESTION 130You 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 controlB.    a Delegate controlC.    a PlaceHolder controlD.    an HTML Div element Answer: AExplanation:MNEMONIC RULE: "master page = ContentPlaceHolder" Defines a region for content in an ASP.NET master page.ContentPlaceHolder Classhttp://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.contentplaceholder.aspx http://www.passleader.com/70-573.html QUESTION 131You need to send a single value from a consumer Web Part to a provider Web Part. Which interface should you use? A.    IAlertNotifyHandlerB.    IWebPartFieldC.    IWebPartParametersD.    IWebPartRow Answer: BExplanation:MNEMONIC RULE: "single value = field"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 132You create a custom Web Part. You need to create a class to log Web Part errors to the Unified Logging Service (ULS) logs. What should you use? A.    the ILoggingProvider interfaceB.    the SPPersistedObject classC.    the SPDiagnosticsServiceBase classD.    the ILogger interface Answer: CExplanation:MNEMONIC RULE: "Unified Logging Service = SPDiagnosticsServiceBase" Logging to ULS in SharePoint 2010http://blog.mastykarz.nl/logging-uls-sharepoint-2010/ QUESTION 133You create a user control named MySearch.ascx. 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 <SafeControls> element in the web.config file.C.    Configure the SearchBox.dwp in the Web Part gallery.D.    Modify 14TEMPLATEFEATURESSearchWebPartsSearchBox.dwp. Answer: AExplanation:MNEMONIC RULE: "change the native search control = Override the search delegate"Customizing the search box using a featurehttp://sharepointschool.net/2010/10/14/customizing-the-search-box-using-a-feature/ QUESTION 134You plan to activate the Developer Dashboard. You create a command line application that contains the following code segment. (Line numbers are included for reference only.)01 Dim cs As SPWebService = SPWebService.ContentService02 cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.[On] 03You execute the application and discover that the Developer Dashboard fails to appear. You need to ensure that the application activates the Developer Dashboard. What should you do? A.    Add the following line of code at line 03.cs.Update()B.    Add the following line of code at line 03.cs.DeveloperDashboardSettings.Update()C.    Change line 02 to the following code segment.cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.OffD.    Change line 02 to the following code segment.cs.DeveloperDashboardSettings.DisplayLevel = SPDeveloperDashboardLevel.OnDemand Answer: B QUESTION 135You have a custom Web Part. You need to create a custom user interface for modifying the Web Part properties. What should you do? A.    Create a new Master Page. Implement the IControlBuilderAccessor interface.B.    Create a new tool part for the custom Web Part.C.    Modify the [ToolBox] attribute of the custom Web Part.D.    Create a new Web Part. Implement the IControlBuilderAccessor interface. Answer: BExplanation:MNEMONIC RULE: "Tool part for the Web Part"What is a custom tool part? The Custom tool part is part of the web part infrastructure, that helps us to create a custom user interface forthe web part properties that goes beyond the capabilities of the default property pane.When do we need a custom tool part? Let's say, if we need to create a web part property of type dropdown, we need to create a custom tool part.This is not supported out-of-box in the web part framework. I've the similar requirement of creating a customweb part property of type drop-down.Create Custom Tool Parts for SharePoint Web Partshttps://msmvps.com/blogs/sundar_narasiman/archive/2009/09/02/create-custom-tool-parts-for-sharepoint-webparts.aspx QUESTION 136You plan to create two Web Parts named Products and ProductDetails. You create an interface that contains the following code segment.PublicInterface Interface1Property Productid As StringEnd InterfaceYou need to ensure that the Products Web Part sends Productid to the ProductDetails Web Part. You must achieve this goal by using the ASP.NET Web Part connection framework. What should you do? A.    Implement Interface1 in the Products Web Part.B.    Implement Interface1 in the ProductDetails Web Part.C.    Add a private set-accessor-declaration to the Productid property.D.    Add a protected set-accessor-declaration to the Productid property. Answer: A QUESTION 137You create a custom Web Part. You need to ensure that a custom property is visible in Edit mode. Which attribute should you set in the Web Part? A.    WebDisplayNameB.    WebBrowsableC.    PersonalizableD.    WebCategoryName Answer: BExplanation:MNEMONIC RULE: "Web Part is visible = WebBrowsable" The WebBrowsable attribute specifies that the decorated property should appear in the editor component ofthe web part. It only allows the end user to modify the property and does nothing about persistence. WebBrowsable will make the property appear in the ToolPane or EditorPart of the WebPart.WebBrowsable vs Personalizable in Web Partshttp://stackoverflow.com/questions/4362234/webbrowsable-vs-personalizable-in-web-parts QUESTION 138You create a Web Part that contains the following logging code. (Line numbers are included for reference only.)01 Try02 ...03 Catch ex As Exception0405 System.Diagnostics.EventLog.WriteEntry("WebPart Name", ("Exception Information: " + ex.Message), EventLogEntryType.Error)06 End TryYou discover that line 05 causes an error. You need to resolve the error. What should you do? A.    Run the code segment at line 05 inside a RunWithElevatedPrivileges delegate.B.    Add the following code at line 04.If web.CurrentUser.IsSiteAuditor = False Then System.Diagnostics.EventLog.WriteEntry("WebPart Name", "Exception Information: " & ex.Message, EventLogEntryType.[Error]) End IfC.    Add the following code at line 04If web.CurrentUser.IsSiteAdmin = False Then System.Diagnostics.EventLog.WriteEntry("WebPart Name", "Exception Information: " & ex.Message, EventLogEntryType.[Error]) End IfD.    Change line 05 to the following code segment.System.Diagnostics.EventLog.WriteEntry("WebPart Name", "Exception Information", EventLogEntryType.Error) Answer: A QUESTION 139You have a custom Web Part that is deployed as a sandboxed solution. You need to ensure that the Web Part can access the local file system on a SharePoint server. You must minimize the amount of privileges assigned to the Web Part. What should you do? A.    Elevate the trust level to Full.B.    Elevate the trust level to WSS_Medium.C.    Redeploy the Web Part as a farm solution.D.    Deploy the Web Part to the Global Assembly Cache (GAC). Answer: C QUESTION 140You 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. Answer: BExplanation:MNEMONIC RULE: "ControlSrc"Delegate Control (Control Templatization)http://msdn.microsoft.com/en-us/library/ms463169.aspx http://www.passleader.com/70-573.html --------------------------------------------------- Images: --------------------------------------------------- --------------------------------------------------- Post date: 2015-11-16 06:36:03 Post date GMT: 2015-11-16 06:36:03 Post modified date: 2015-11-16 06:36:03 Post modified date GMT: 2015-11-16 06:36:03 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com