PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

Which method should you call?

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

01: Dim profileManager as new UserProfileManager(Current.Context)
02: Dim profile as UserProfile =
profileManager.GetUserProfile(SPContext.Current.Web.CurrentUser.LoginName)
03: Dim colManager as new ColleagueManager(profile)

You need to ensure that the web part displays a list of colleagues for the current user.

Which method should you call?

Which classes should you choose?

You create Web-based client applications. You create a component that displays the category of a product and the product data on a Web page. The data is stored on the Web server in an XML file.

The Web page must meet the following requirements:

Display each category of products.
List the name, description, and price of each product in a category.
Prohibit the user from modifying the data.
Load as quickly as possible.
Use the minimum amount of code.
Retrieve the data to display from the XML file.

You need to identify the specific classes of a component that can be used to meet your Web page requirements. Which classes should you choose?

Which code segment should you add at line 6?

You need to programmatically target a list item to an Audience. You write the following code segment:

01: Dim siteAudience as Audience
02: Dim context as ServerContext = ServerContext.GetContext(site)
03: Dim audManager as New AudienceManager(context)
04: siteAudience = audManager.GetAudience(“audience1”)
05: Dim id as GUID = siteAudience.AudienceID
06:
07: Item.Update()

Which code segment should you add at line 6?

What should you conclude?

You create Web-based client applications. You are evaluating the design of an e-commerce Web site. The Web site processes credit card information. The Web site has a shopping cart and expects a high volume of traffic, especially during peak shopping times.

The design specifications for the application must meet the following criteria:

The application will be hosted on a Web farm.
The application will use SSL during the checkout process.
Shopping cart information will be stored in InProc session variables.

You need to evaluate the design of the application and recommend whether it is technically feasible and complete. What should you conclude?

Which XML fragment should you insert at line 11?

Your companys sales database has two related tables named Customer and SalesOrders.

You define two entities named Customer and SalesOrders in a Business Data Catalog (BDC) definition.

The metadata for the BDC definition contains the following XML fragment. (Line numbers are included for reference only.)

01 <Associations>
02 <Association>
03 <
04 Association
05 AssociationMethodEntityName=”Customer”
06 AssociationMethodName=”GetSalesOrdersForCustomer”
07 AssociationMethodReturnParameterName=”SalesOrders”

08 Name=”CustomerToSalesOrder”
09 IsCached=”true”
10 >
11 …

12 </Association>
13 </Associations>

You need to maintain the relationship between the entities.

Which XML fragment should you insert at line 11?

What should you recommend?

You create Web-based client applications. Your client company has an existing ASP.NET Web-based application. The Web-based application uses a combination of HTML and client-side scripting to deliver online training content. Your client company has asked you to enhance the application to deliver interactive multimedia content. The enhanced application must support dial-up users. You need to recommend an appropriate multimedia delivery mechanism for the application. What should you recommend?

What should you do?

You create a Microsoft Office SharePoint Server 2007 site. The site contains a form library. A Microsoft Office InfoPath form from the form library must be converted to a Web page by using an existing InfoPath form converter. When you select the existing form converter, you receive a conversion error. You need to ensure that the document is converted without errors. What should you do?