Which code segment should you use?
You create a custom web part that displays the audience that the user belongs to.
Which code segment should you use?
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 XML fragment should you use?
You are creating a Business Data Catalog (BDC) definition for a bookstore application.
The application stores information about books in a Microsoft SQL Server 2005 database table named Books.
You need to retrieve all the book names from the Books table.
Which XML fragment should you use?
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?
What should you do?
You have a SharePoint web page named page1.aspx that displays a Microsoft Office InfoPath form. The InfoPath form contains XMLFormView control. You need to pass data from the XMLFormView control to page1.aspx.
What should you do?
Which two actions should you perform?
You are designing a Microsoft SharePoint 2007 solution. You create a workbook that will access data from a custom Microsoft Office InfoPath task form.
Which two actions should you perform? (Each action represents part of the solution, select two)
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?
Which method should you use?
You add a new profile property to a property in an LDAP store. You need to ensure that the profile properties update as PropProfileUsers.
Which method should you use?