PrepAway - Latest Free Exam Questions & Answers

Category: 70-542

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

What are two possible ways to achieve this goal?

You are modifying a Microsoft Office SharePoint Server 2007 Search Center site. You create a customized XSLT style sheet to change the appearance of ten Search Core results Web Parts on separate site tabs. You need to ensure that the Web Parts use the new style sheet. What are two possible ways to achieve this goal? (Each correct answer presents a complete solution. Choose two.)

Which two actions should you perform?

You create a Microsoft Office SharePoint Server 2007 site that contains a document library named Reports. You create a Web Part that displays an audit trail for each document in the Reports library. You need to audit the dates and types of each document that was printed by a specific user. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Which code segment should you use at line 6?

You create an application that contains the following code segment:

01: Private Sub ModifyCellPhonePrivacy(Byval currentProfile As String)
02: Dim userProfile As New UserProfile.UserProfileServices()
03: Dim cellData as userProfile.PropertyData() = New
userProfile.PropertyData(0)~~
04: cellData(0) = New userProfile.PropertyData()
05: cellData(0).Name = “Cell Phone”
06:
07: userProfile.ModifyUserPropertyByAccountName(currentProfile, cellData)
08: End Sub

You need to set the privacy of the cell phone value to only me for all user profiles. Which code segment should you use at line 6?

Which code segment should you add at line 06?

You plan to import SharePoint user profiles from a LDAP directory. You create a custom application that contains the following code segment:

01: Using site as new SPSite(“http://localhost”)
02: Dim context as ServerContext = ServerContext.GetContextc(site)
03: Dim userProfileManager as New UserProfileManager(context)
04: Dim userProfileConfigManager as New UserProfileConfigManager(context)
05: userProfileConfigManager.ActivateImport(True)
06:
07: End Using

You run the code segment. You notice the user profiles are not imported. You need to ensure that when the code segment runs, the SharePoint profiles are imported from the LDAP directory.

Which code segment should you add at line 06?

Which code segment would you put a line 3?

You have a custom windows form application. You plan to create a feature that will perform a key word search of a SharePoint site. You create a feature that contains the following code:

01: Dim keyWordString as String = “Microsoft”
02: dim queryXMLString as String = (“<QueryPacket xmlns =
‘urn:Microsoft.Certs.Query’>”&
03: …
04: QuerySearch
05: Dim queryService as New QueryWebServiceProxy.QueryService()
06: queryService.Credentials = System.Net.CredentialsClass.DefaultCredentials
07: Dim queryResults as System.Data.DataSet =
queryService.QueryEx(queryXMLString)
08 ResultsGridView.DataSource = queryResults.Tables(0)

You need to ensure that the search returns valid results.

Which code segment would you put a line 3?


Page 12 of 15« First...1011121314...Last »