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 insert at line 13?

You are creating a Microsoft Office SharePoint Server 2007 Web Part.

You write the following code segment. (Line numbers are included for reference only.)

01 public Button cmdCrawl;
02 protected override void CreateChildControls()
03 {
04 cmdCrawl = new Button();
05 cmdCrawl.Click += new EventHandler(cmdCrawl_Click);
06 cmdCrawl.Text = “Update Index”;
07 }

08 public void cmdCrawl_Click(object sender, EventArgs e)
09 {
10 Microsoft.Office.Server.Search.Administration.Content sspContent =
11 new Microsoft.Office.Server.Search.Administration.Content
12 (SearchContext.Current);
13 …

14 }

You need to ensure that the Web Part initiates a search crawl of a scope named Patents.

Which code segment should you insert at line 13?

What should you do?

You create an application for a Microsoft Office SharePoint Server 2007 server. You create a call center dashboard. You create a Key Performance Indicator (KPI) list that contains KPIs. You add a KPI Web Part to the dashboard to view KPIs. You need to permit users to view details that make up each KPI. What should you do?

Which code segment should you add?

User Profiles in your SharePoint farm contain the job title property. The job title property contains the user job title. You have an audience defined for the Sales department. The audience contains a rule. You create a custom application that contains the following code segment:

01: Using site as New SPSite.Open(“http://intranet”)
02: Dim context as ServerContext = ServerContext.GetContext(site)
03: Dim audienceMgr as New AudienceManager(context)
04: Dim audienceColl as AudienceCollection = audienceMgr.Audiences
05: Dim salesDepartmentAudience as Audience =
audienceColl.Open(“SalesDepartment”)
06: Dim salesDepartmentRules as ArrayList = salesDepartmentAudience.AudienceRules
07:
08:
09:
10:
11: salesDepartmentAudience.AudienceRules = salesDepartmentRules
12: salesDepartmentAudience.Commit()
13: End Using

You need to change the audience to include only the users that have the job title set to Manager.

Which code segment should you add?


Page 10 of 15« First...89101112...Last »