PrepAway - Latest Free Exam Questions & Answers

Category: 70-542

Exam 70-542: TS: Microsoft Office SharePoint Server 2007 – Application Development

Which code segment should you use on line 5?

You plan to create a custom application that automatically creates key word best bets.

You write the following code:

01: Dim site As New SPSite(“http://internet”)
02: Dim searchContext_1 as SearchContext = SearchContext.getContext(site)
03: Dim keyWords as new KeyWord(searchContext_1, newURI(“http://internet”))
04: Dim currentKeyWord as keyWords = KeyWords.AllKeywords.Create(“AKeyWord”, DateTime.Now)
05:

You need to add a best bet to the current keyword. Which code segment should you use on line 5?

What should you do?

You have an audience for the Marketing Department. You plan to target all web parts on the default.aspx web page to the Marketing Department. You write the following code segment.

01: Using wpm as SPLimitedWebPartManager = objSite.GetLimitedWebPartManager (“default.aspx”, System.Web.UI.WebControls.WebPart.PersonalizationScope.[Shared])
02: Dim AM as New AudienceManager(ServerContext.Current)
03: For Each currentWP as WebPart in wpm.WebParts
04: currentWP.AuthorizationFilter = String.Format
(“~0~”,AM.GetAudiences(“Marketing”).AudienceID)
05:
06: Next
07:
08: End Using

You notice that all users still have access to the web parts on the default.aspx web page. You need to ensure that only users in the Marketing Audience can see the web part on default.aspx.

What should you do?

Which two action should you perform?

Your company uses an older application management system that stores information on a Microsoft SQLServer 2005 database. You are creating a Business Data Catalog definition on a Microsoft Office SharePoint Server 2007 server. You need to ensure that the SharePoint server can index order information.

Which two action should you perform? (Each answer represents part of the solution, choose two.)

A. Define a Finder method in the BDC definition
B. Define an IDEnumerator method in the BDC definition
C. Define a ViewAccessors method in the BDC definition
D. Define a SpecificFinder method in the BDC definition

What should you do?

You are deploying a Microsoft Office SharePoint Server 2007 hierarch of sites from a development environment to a staging environment on the same server farm. The development site hierarchy contains a corporate intranet site and a departmental site. Each departmental site contains subsites. You need to re-create the hierarchy of the development sites in the staging environment.

What should you do?


Page 9 of 15« First...7891011...Last »