PrepAway - Latest Free Exam Questions & Answers

Tag: 70-542

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

What should you do?

You are creating two user-defined functions (UDFs) of Excel Services in Microsoft Office SharePoint Server 2007.

You write the following code segment.

public class Class1
{
public double MyDouble (double d)
{
return d * 9;
}
public DateTime ReturnDateTimeToday ()
{
return ( DateTime.Today );
}
}

You need to ensure that the MyDouble method and the ReturnDateTimeToday method are recognized as UDFs of Excel Services. What should you do?

Which code segment should you add at line 05?

You need to activate a Microsoft Office 2007 form template named SalesTemplate in a site collection. You write the following code segment:

01: Dim siteColl As New SPSite(“http://companysite”)
02: Dim services As SPServiceCollection = SPFarm.Local.Services
03: For Each service As SPService in services
04: Dim formService As FormService = DirectCast(service, formService)
05:
06: Next

Which code segment should you add at line 05?

Which line of code should you insert at line 6?

You have a web part that contains the following code segment:

01: Using site as New SPSite(“http://internet”)
02: Dim context as ServerContext = ServerContext.GetContext(site)
03: Dim profileManager as New UserProfileManager(context)
04: Dim changeQuery as New UserProfileChangeQuery()
05: changeQuery.ChangeTokenStart = New
UserProfileChangeToken(DateTimeStamp.UTCNow.Subtract(TimeSpan.FromDays(10)))
06: …
07: End Using

You need to retrieve all of the department changes for your colleagues’ profiles for the last 10 days.

Which line of code should you insert at line 6?

Which authentication method should you specify?

You have a Microsoft Office SharePoint 2007 Server farm. You have a security policy in your companies programs that uses Single SignOn. You are creating a BDC application definition for an external business application on a SharePoint 2007 server. The external business application is accessed through a web service. The server and the business application are on different computers. Kerbrose delegation is not enabled on the domain. You need to define a line of business (LOB) systems for the external business application in the BDC application file.

Which authentication method should you specify?


Page 3 of 1512345...10...Last »