PrepAway - Latest Free Exam Questions & Answers

Category: 70-573 (v.1)

Exam 70-573: TS: Microsoft SharePoint 2010, Application Development (update October 30th, 2015)

You need to prevent the error from occurring

You have a SharePoint site collection. The root Web of the site collection has the URL
http://intranet. You plan to create a sandboxed 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 SPSite currentSite = new SPSite(“http://intranet”); 02
03 Label currentTitle = new Label(); 04 currentTitle.Text = currentSite.RootWeb.Title; You 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?

You need to ensure that when you deploy the Feature, a file named Form1.xsn is deployed to the Feature folder

You 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?

You need to modify the application to prevent the site from loading slowly

You create a console application to manage Personal Sites. The application contains the following
code segment. (Line numbers are included for reference only.) 01 SPSite siceCollection = new
SPSite (“http://rcoss”); 02 UserProfileManager profileManager = new UserProfileManager (
Server-Context.GetContext (siteCollection)) ; 03 UserProf ile profile = prof ileManager. GetUser
Prof ile (“domainWusername”) ; 04 SPSite personalSite = profile.PersonalSite ; 05 06
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?


Page 1 of 2412345...1020...Last »