Other 70-542 Exams :
70-542 Exam
MS Office SharePoint Server 2007.Application Development
- Exam Number/Code : 70-542
- Exam Name : MS Office SharePoint Server 2007.Application Development
- Questions and Answers : 241 Q&As
- Update Time: 2011-03-30
- Price:
$ 114.00$ 99.00
Free 70-542 Demo Download
pass999.info offers free demo for Microsoft Licensing 70-542 exam (MS Office SharePoint Server 2007.Application Development). You can check out the interface, question quality and usability of our practice exams before you decide to buy it. We are the only one site can offer demo for almost all products.
Download 70-542 Exam Testing Engine
70-542 Exam Description
It is well known that latest 70-542 exam test is the hot exam of Microsoft certification. pass999.info offer you all the Q&A of the 70-542 real test . It is the examination of the perfect combination and it will help you pass 70-542 exam at the first time!
Exam : Microsoft 70-542
Title : MS Office SharePoint Server 2007.Application Development
1. You are creating a Microsoft Office SharePoint Server 2007 site.
You create a Microsoft WinForms application to enter information about a user.
You write the following code segment. (Line numbers are included for reference only.)
01 Shared Sub AddUser(ByVal user_name As String())
02 ' Using
03 Dim site As SPSite = New SPSite("http://sitename")
04 Try
05 Dim context As ServerContext = _
06 ServerContext.GetContext(site)
07 Dim profileManager As UserProfileManager = New _
08 UserProfileManager(context)
09 ...
10 Finally
11 CType(site, IDisposable).Dispose()
12 End Try 13 End Sub
You need to add a user profile to the profile store.
Which code segment should you insert at line 09?
A. Private u As UserProfile = _
profileManager.GetUserProfile(user_name)
...
B. Private profileManager As UserProfileManager = New _
UserProfileManager(context)
Private u As UserProfile = profileManager.GetUserProfile(user_name)
...
u.Commit
C. Private user_name As String = "<UserProfile>"
...
user_name += userProfile + user_name
...
user_name += "</UserProfile>"
profileManager.CreateUserProfile(user_name)
D. Private u As UserProfile = _
profileManager.CreateUserProfile(user_name)
...
u.Commit
Answer: D
2. You create a Microsoft Office SharePoint Server 2007 application. The application has a user named UserA.
You need to retrieve a list of colleagues for UserA.
Which code segment should you use?
A. Private Sub RetrieveColleagues(ByVal Cntxtobj As ServerContext)
...
Dim site As SPSite = New SPSite("http: //servername/sites/site1")
Dim profileManager As UserProfileManager = New _
UserProfileManager(Cntxtobj) Dim profile As UserProfile = _
profileManager.GetUserProfile("abcUserA")
Dim colleagues As Colleague() = profile.Colleagues.GetItems
Site.Dispose
...
End Sub
B. Private Sub RetrieveColleagues(ByVal Cntxtobj As ServerContext)
...
Dim site As SPSite = New SPSite("http: //servername/sites/site1")
Dim context As ServerContext = ServerContext.GetContext(site)
Dim profileManager As UserProfileManager = New _
UserProfileManager(context) Dim profile As UserProfile = _
profileManager.GetUserProfile("abcUserA")
Dim colleagues As UserProfile() = _
profile.Colleagues.GetCommonColleagues
Site.Dispose
...
End Sub
C. Private Sub RetrieveColleagues(ByVal Cntxtobj As ServerContext)
...
Dim site As SPSite = New SPSite("http: //servername/sites/site1")
Dim context As ServerContext = ServerContext.GetContext(site)
Dim profileManager As UserProfileManager = New _
UserProfileManager(context) Dim profile As UserProfile = _
profileManager.GetUserProfile("abcUserA")
Dim manager As ColleagueManager = _
New ColleagueManager(profile)
Dim profiles As UserProfile() = _
manager.GetColleaguesOfColleagues
Site.Dispose
...
End Sub
D. Private Sub RetrieveColleagues(ByVal Cntxtobj As ServerContext)
...
Dim site As SPSite = New SPSite("http: //servername//sites/site1")
Dim context As ServerContext = ServerContext.GetContext(site)
Dim audMgr As AudienceManager = New AudienceManager(context)
Dim web As SPWeb = site.AllWebs("mainpage")
Dim audienceIDNames As ArrayList = _
audMgr.GetUserAudienceIDs("domainuserA", True, web)
Site.Dispose
...
End Sub
Answer: A
3. You create a Microsoft Office SharePoint Server 2007 site. A document library named CompanyWorkbooks on the site contains Microsoft Office Excel workbooks. You need to ensure that users can access the workbooks in the CompanyWorkbooks document library by using Excel Services in Microsoft Office SharePoint Server 2007. What should you do?
A. Define the site as a managed path within SharePoint.
B. Add the CompanyWorkbooks URL to the trusted location list.
C. Edit the permissions of the CompanyWorkbooks document library to grant full control to the SharePoint application pool identity account.
D. Create a custom security policy file for the CompanyWorkbooks document library. Add the file to the securityPolicy section of the Web.config file for the site.
Answer: B
4. Your organization has a department named product testing. You are creating a new membership named Product Testing. You are adding a distribution list to the new membership. You need to ensure that the membership is displayed only to managers. What should you do?
A. Call the MemberGroupData method of the UserProfiles object.
B. Call the GetPrivacyPolicy method of the UserProfileManager object.
C. Pass Privacy.Manager as the privacy setting to the Membership.Create method.
D. Pass PrivacyPolicyIdConstants.MembershipsFromDistributionLists to the CreateMemberGroup method of the user profile.
Answer: C
5. You create a Microsoft Office SharePoint Server 2007 site. The site is configured to use a Shared Services Provider (SSP) that manages user profiles. The user profiles contain user contact information. You need to retrieve the telephone number of a user. What should you do?
A. Perform a keyword search by using the WorkPhone: prefix.
B. Obtain the value of the WorkPhone node from the SPUser.Xml property of the user.
C. Obtain the value of the UserProfile[PropertyConstants.WorkPhone] property of the user.
D. Obtain the value of the PropertyInformation.Description property where the value of the PropertyInformation.Name property is WorkPhone.
Answer: C
What's pass999.info and what pass999.info can do?
pass999.info provides high quality IT exam practice questions and answers. Especially, Cisco CCNA CCDA CCNP CCIE, Checkpoint CCSE, CompTIA A+ Network+ certification practice exams and so on. We promise that you can pass any IT exam at the first try using pass999.info Testing Engine, or else give you a FULL REFUND. In pass999.info, you also can find latest exam releases about real certification exam resources from most famous IT companies, and we recommend some hot exams for you.
About Microsoft 70-542 exam
There are many ways to prepare for your 70-542 Certification Exam. pass999.info provides the most reliable training tools to prepare for your next 70-542 Certification Exam. Our 70-542 Certification Study Material includes 70-542 test questions, 70-542 practice exam, 70-542 Practice Testing Software, 70-542 Audio Learning and Preparation Labs. We will meet the needs of all about IT certification in pass999.info.
The 70-542 test questions give you possibility to work in any country of the world because they are acknowledged in all countries equally. This pass999.info 70-542 torrent certificate helps not only to improve your knowledge and skills, but it also helps your career, gives a possibility for qualified usage of pass999.info 70-542 exam products under different conditions.
Once you purchase our 70-542 PDF,we will offer you the best service.After you purchase we will offer free update in time for 90 days.No matter any questions you have we will help you solve it. And in 3 weeks we will offer you free updates,so please pay attention our site at all times.
