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 10:49:47 2024 / +0000 GMT ___________________________________________________ Title: [Pass Ensure VCE Dumps] 100% Valid 70-573 Exam Questions and Answers Everyone Want To Download (141-160) --------------------------------------------------- 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 141You need to connect two Web Parts by using the IWebPartRow interface. Which method should you use? A.    GetFieldValueB.    DataltemC.    GetRowDataD.    GetTableData Answer: CExplanation:Explanation:MNEMONIC RULE: "iWebPartRow = GetRowData"Returns the data for the row that is being used by the interface as the basis of a connection between twoWebPart controls.IWebPartRow.GetRowData Methodhttp://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.webparts.iwebpartrow.getrowdata.aspx QUESTION 142You create a Web Part by using Microsoft Visual Studio 2010. You need to execute SPDisposeCheck.exe before the Web Part is deployed. What should you do? A.    Configure a pre-deployment command line.B.    Configure SPDisposeCheck.exe as an external tool.C.    Change the configuration from Active (Debug) to Release.D.    Change the active deployment configuration to No Activation. Answer: AExplanation:MNEMONIC RULE: "before deployed = pre-deployment" How to: Set SharePoint Deployment Commandshttp://msdn.microsoft.com/en-us/library/ee231534.aspx QUESTION 143You create a SharePoint solution by using Microsoft Visual Studio 2010. The SharePoint solution contains a third-party assembly. You need to deploy the third-party assembly to the Global Assembly Cache (GAC). What should you use? A.    a SharePoint mapped folderB.    the active deployment configurationC.    the Feature DesignerD.    the Package Designer Answer: DExplanation:MNEMONIC RULE: "Package Designer for GAC"How to add assemblies into GAC/web application's bin folder using WSPs created using Visual studio 2010'sSharePoint projects.http://girishm.blog.com/2010/10/19/how-to-add-assemblies-into-gac-web-applications-bin-folder-using-wspscreated-using-visual-studio-2010s-sharepoint-projects-2/The package contains features and other assets and is used when you deploy solutions to SharePoint. The package is also where the assembly deployment location is determined. Visual Studio 2010 introduces a package designer, which makes viewing and managing packages mucheasier.Visual Studio 2010 Tools for SharePoint Developmenthttp://msdn.microsoft.com/en-us/magazine/ee309510.aspx QUESTION 144You create a console application to manage Personal Sites. The application contains the following code segment. (Line numbers are included for reference only.)01 Dim siteCollection As New SPSite("http://moss");02 Dim profileManager As New serProfileManager(ServerContext.GetContext(siteCollection));03 Dim profile As UserProfile = profileManager.GetUserProfile("domainusername");04 Dim personalSite As SPSite = profile.PersonalSite;0506 siteCollection.Dispose();You deploy the application to a SharePoint site.After deploying the application, users report that the site loads slowly. You need to modify the application to prevent the site from loading slowly. What should you do? A.    Remove line 06.B.    Add the following line of code at line 05.personalSite.close();C.    Add the following line of code at line 05.personalSite.Dispose();D.    Change line 06 to the following code segment.siteCollection.close(); Answer: CExplanation:MNEMONIC RULE: "Dispose"Disposing Objectshttp://msdn.microsoft.com/en-us/library/ee557362.aspx QUESTION 145You 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.AllPropertiesB.    SPContext.Current.Site.RootWeb.ConfigurationC.    SPContext.Current.Web.ConfigurationD.    SPContext.Current.Web.Properties Answer: DExplanation:MNEMONIC RULE: "information is in Web.Properties" SPContext.Current.Web is SPWeb object. Properties is the SPPropertyBag object with the metadata for the website.SPWeb.Properties Propertyhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.properties.aspx QUESTION 146You are creating a Web Part that will be deployed as a sandboxed solution. You need to ensure that the Web Part can write debugging information to the SharePoint trace logs. Which class should the logging component inherit? A.    SPDelegateB.    SPLogC.    SPPersistedObjectD.    SPProxyOperation Answer: DExplanation:MNEMONIC RULE: "sandboxed solution needs SPProxyOperation"You can implement your full-trust functionality in classes that derive from the SPProxyOperation abstract classand deploy the assembly to the global assembly cache. These classes expose a full-trust proxy that you cancall from within the sandbox environment. Full-trust proxies can provide a useful way to expose logging and configuration functionality to sandboxedapplications.Hybrid Approacheshttp://msdn.microsoft.com/en-us/library/ff798433.aspx QUESTION 147You have a SharePoint site collection. The root Web of the site collection has the URL http://intranet. You plan to create a user solution that will contain a Web Part. The Web Part will display the title of the root Web. You write the following code segment for the Web Part. (Line numbers are included for reference only.)01 Dim currentSite As New SPSite("http://intranet")0203 Dim currentTitle As New Label()04 currentTitle.Text = currentSite.RootWeb.TitleYou add the Web Part to a page in the root Web and receive the following error message:"Web Part Error: Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred." You need to prevent the error from occurring. What should you do? A.    Add the following line of code at line 02.currentSite.OpenWeb()B.    Add the following line of code at line 02.currentSite.OpenWeb("http://intranet")C.    Change line 01 to the following code segment.Dim currentSite As SPSite = SPContext.Current.SiteD.    Change line 04 to the following code segment.currentTitle.Text = currentSite.OpenWeb().Title Answer: C QUESTION 148You 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 <CustomUpgradeAction> element and increase the Version number of the Feature.B.    Add a <CustomUpgradeAction> element and increase the UIVersion number of the Feature.C.    Add an <ActivationDependencies> element and increase the Version number of the Feature.D.    Add an <ActivationDependencies> element and increase the UIVersion number of the Feature. Answer: AExplanation:MNEMONIC RULE: "CustomUpgradeAction Version"<CustomUpgradeAction>-Allows you to execute custom code when a Feature instance is being upgraded.Feature.xml Changeshttp://msdn.microsoft.com/en-us/library/ee537575.aspx QUESTION 149You have a custom site definition. You create a custom site Feature. You need to ensure that the Feature is activated for all new sites that are created by using the custom site definition. What should you do? A.    Modify the Onet.xml file.B.    Modify the web.config file.C.    Add a Feature receiver to the custom site Feature.D.    Add a Feature dependency to the custom site Feature. Answer: AExplanation:MNEMONIC RULE: "custom 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 150You create a SharePoint solution. You deploy the SharePoint solution by using Microsoft Visual Studio 2010. You need to prevent the Feature that is contained in the solution from being automatically activated when you deploy the solution. What should you configure in Visual Studio 2010? A.    the active deployment configurationB.    the build configurationC.    the pre-deployment command lineD.    the startup item Answer: AExplanation:MNEMONIC RULE: "deploy the solution = active deployment configuration" How to: Edit a SharePoint Deployment Configurationhttp://msdn.microsoft.com/en-us/library/ee231587.aspxWalkthrough: Creating a Custom Deployment Step for SharePoint Projectshttp://msdn.microsoft.com/en-us/library/ee256698.aspx http://www.passleader.com/70-573.html QUESTION 151You are developing a custom Feature by using Microsoft Visual Studio 2010. You need to ensure that when you deploy the Feature, a file named Form1.xsn is deployed to the Feature folder. You must achieve this goal by using the minimum amount of development effort. What should you do? A.    Add a new module to the Visual Studio project.B.    Add a Feature receiver to the Visual Studio project.C.    Configure the Properties element in the Feature definition file.D.    Configure the ActivationDependencies element in the Feature definition file. Answer: AExplanation:MNEMONIC RULE: "deploy file = module"A module is a collection of file instances, which are instances of files that are provisioned in a site. To provisiona file into Microsoft SharePoint Foundation Web sites, you must use the Module element within a Feature orsite definition. The Module element allows you to add one or more files to a SharePoint Foundation Web site ordocument library.Modulehttp://msdn.microsoft.com/en-us/library/ms462994.aspxHow to: Provision a Filehttp://msdn.microsoft.com/en-us/library/ms441170.aspx QUESTION 152You create a Web Part that takes three values from three text boxes and creates a new SharePoint site when you click a button named CreateNewSite. The Web Part contains the following code segment.Protected Sub CreateNewSite_Click(ByVal sender As Object, ByVal e As EventArgs)Dim site As SPSite = SPContext.Current.SiteDim web As SPWeb = site.AllWebs.Add(SiteNameTextBox.Text, SiteTitleTextBox.Text,SiteDescriptionTextBox.Text, 0, SPWebTemplate.WebTemplateSTS, False, _False)End SubYou test the Web Part and it works properly. When another user attempts to use the Web Part to create a new site, he receives the following error message: "Error: Access Denied." You need to ensure that users can use the Web Part to create new sites. What should you do? A.    Add web.Update() after the code segment.B.    Add web.ValidatesFormDigest() after the code segment.C.    Run the code segment inside a SPSecurity.RunWithElevatedPrivileges delegate.D.    Add the following code after the code segment.Dim currentUser As SPUser = web.CurrentUserweb.Users.Add(currentUser.LoginName, currentUser.Email, currentUser.Name, "") Answer: C QUESTION 153You have a custom theme named MyTheme. The theme is defined in a file named MyTheme.thmx. You have 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 web As SPWeb = site.OpenWeb()03 ...04 End UsingYou need to programmatically apply the theme to a SharePoint site. Which code segment should you add to the console application? A.    ThmxTheme.SetThemeUrlForWeb(web, "/_catalogs/theme/MyTheme.thmx", False)B.    web.AlternateCssUrl = "/_themes/MyTheme"C.    web.ApplyWebTemplate("MyTheme.thmx")D.    web.ThemedCssFolderUrl = "/_themes/MyTheme" Answer: AExplanation:MNEMONIC RULE: ThmxThemeThmxTheme.SetThemeUrlForWeb Method (SPWeb, String, Boolean)http://msdn.microsoft.com/en-us/library/ee658324.aspx QUESTION 154You have a Microsoft Office SharePoint Server 2007 site. You upgrade the site to SharePoint Server 2010. You need to create a Feature that prevents site collection administrators from upgrading the user interface of the site to SharePoint Server 2010. Which property should you use? A.    UIVersionConfigurationEnabledB.    AdministrationSiteTypeC.    AllowMasterPageEditingD.    AllowDesigner Answer: AExplanation:MNEMONIC RULE: "upgrading = UIVersionConfigurationEnabled" Gets or sets a value that indicates whether to enable the user interface (UI) for changing the version of the UI.SPWeb.UIVersionConfigurationEnabled Propertyhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.uiversionconfigurationenabled.aspx QUESTION 155You are creating an application page that will open a dialog box. The application page uses a custom master page. You write the following code segment. (Line numbers are included for reference only.)01 < script type="text/javascript" >02 function DialogCallback ( dialogResult, retumValue ){>03 function OpenEditDialog (id){04 var options = {url:" http://intranet/Jayouts /MsgToShow.aspx, width: 300,05 height: 300,06 dialogReturnValueCallback : DialogCallback07 };08 SP.UI.ModalDialog.showModalDialog (options);09 }10 < /script >You need to ensure that the code opens the dialog box. What should you do? A.    Add a script link that references SP.js.B.    At line 08, change showModalDialog to commonModalDialogOpen.C.    At line 08, change showModalDialog to openDialog.D.    Add a script link that references SharePoint.Dialog.js. Answer: A QUESTION 156You need to create a Web Part that hides the out-of-the-box Ribbon on the current page. Which code segment should you include in the Web Part? A.    me.Page.FindControl(*'SPRibbon") .Dispose*)B.    SPRibbon.GetCurrent (me.Page) .CommandUIVisible = falseC.    me.Page.FindControlC'SPRibbon") .Visible - falseD.    SPRibbon.GetCucrenttme.Page).Dispose() Answer: B QUESTION 157You create a custom site definition. You need to modify the contents of the Quick Launch area. Which file should you modify? A.    Schema.xmlB.    WebTemp.xmlC.    vwstyles.xmlD.    Onet.xml Answer: DExplanation:MNEMONIC RULE: "custom 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 158You created a custom ASPX page that updates a list. The page is deployed to the Jayouts folder. The page contains the following code segment.01 < form id=" Forml" runat =" Server" >02 < asp: Button id=" btnUpdate " runat =" server" Text=" Update" ></asp : Button >03 </form >A user attempts to update the list by using the page and receives the following error message:"The security validation for this page is invalid".You need to prevent the error from occurring. Which control should you include in Form1? A.    inputFormCustomValidatorB.    EncodedLiteralC.    UlVersionedContentD.    FormDigest Answer: DExplanation:MNEMONIC RULE: "Digest your security"FormDigest Classhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.formdigest.aspx QUESTION 159You create a modal dialog that displays a list of items. You need to capture the items selected by a user. Which code segment should you use? A.    SPItem item = SPContext.Current.Item;B.    var items = SP.ListOperation.Current.Item();C.    var items = SP.ListOperation.Selection.getSelectedItems();D.    var item = SPContext.Current.Item["Selected"]; Answer: CExplanation:MNEMONIC RULE: "getSelectedItems"SP.ListOperation.Selection.getSelectedItems() Methodhttp://msdn.microsoft.com/en-us/library/ff409526.aspx QUESTION 160You create a Feature receiver. You need to hide the Quick Launch navigation bar of a SharePoint site. What should you use? A.    the Hidden property of each listB.    the OnQuickLaunch property of each listC.    the QuickLaunchEnabled propertyD.    the Navigation.QuickLaunch.Parent.IsVisible property Answer: CExplanation:MNEMONIC RULE: "hide Quick Launch = QuickLaunchEnabled" SPWeb.QuickLaunchEnabled Propertyhttp://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.quicklaunchenabled.aspx http://www.passleader.com/70-573.html --------------------------------------------------- Images: --------------------------------------------------- --------------------------------------------------- Post date: 2015-11-17 02:29:33 Post date GMT: 2015-11-17 02:29:33 Post modified date: 2015-11-17 02:29:33 Post modified date GMT: 2015-11-17 02:29:33 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com