Question No: 121 DRAG DROP – (Topic 12)

You develop a .NET application named SPUserProfiles for a company called Contoso, Ltd.

SPUserProfiles communicates with a SharePoint app by using SharePoint Web Services. The SharePoint web service reference name is ProfileService. SPUserProfiles includes the following code segment: (Line numbers are included for reference only.)

You need to implement the UpdatePhoneNumber method.

How should you complete the relevant code? (To answer, drag the appropriate code segments to the correct target locations in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

Answer:

Explanation:

C:\Users\Kamran\Desktop\Untitled.jpg

Question No: 122 HOTSPOT – (Topic 12)

You work for a company named Contoso, Ltd. that sells computer parts. You tag inventory lists by using a term set named Computer Parts Classification. The term set is structured as follows.

You must create a console application that accesses the SharePoint site and you must add a ClientContext object named ctx. You need to create a term named i7-2600K that is a child of the CPU node and add a shared property to the i7-2600K term.

How should you complete the relevant code? (To answer, select the appropriate code segment from each drop-down list in the answer area.)

Answer:

Explanation:

C:\Users\Kamran\Desktop\Untitled.jpg

Question No: 123 DRAG DROP – (Topic 12)

You develop a SharePoint app that uses the client-side object model (CSOM) to retrieve items from the search index.

You need to implement the client-side query code.

Which four code segments should you use in sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)

Answer:

Question No: 124 DRAG DROP – (Topic 12)

You develop a provider-hosted SharePoint app that retrieves and displays weather information from an external site. The site contains lists of temperatures for different cities.

You need to create a Representational State Transfer (REST) endpoint URL in the app to retrieve hourly temperatures for a specific city from the site.

How should you complete the relevant code? (To answer, drag the appropriate term to the correct location or locations in the answer area. Each term may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

Answer:

Explanation:

C:\Users\Kamran\Desktop\Untitled.jpg

Question No: 125 – (Topic 12)

You develop a SharePoint app for a toy company that uses the Representational State Transfer (REST} API for search. The site collections in the app have been crawled recently and use the default search schema.

The app includes the following code segment: (Line numbers are included for reference only.)

You create the following result sources.

You need to ensure that the app only displays PDF documents. Which code segment should you insert at line 03?

Question No: 126 DRAG DROP – (Topic 12)

You connect to a front-end web server in a SharePoint farm for a company named Contoso, Ltd.

You start the SharePoint Management Shell by using an account that has administrator permissions for the user-profile store. You use Windows PowerShell to create a User Profile property. You add the profile type and sub type to the User Profile property.

You run the following Windows PowerShell cmdlets:

How should you complete the relevant Windows PowerShell cmdlets? (To answer, drag the appropriate code segment to the correct location or locations in the answer area. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.)

Answer:

Explanation:

C:\Users\Kamran\Desktop\Untitled.jpg

Question No: 127 DRAG DROP – (Topic 12)

You develop a Microsoft Office app to access external data by using Business Connectivity Services (BCS).

The app must access data from a Windows Communication Foundation (WCF) connector by using an external content type.

Which four actions should you perform in a sequence? (To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.)

Answer:

Explanation:

Box 1:

Box 2:

Box 3:

Box 4:

Note:

A BDC model is the heart of Business Data Connectivity (BDC) service. The data structures, such as Entity (external content type) and Method, that abstract out complex details about an external system are collectively named MetadataObjects and compose the BDC model. The BDC model for an external system is essentially an XML file.

Question No: 128 – (Topic 12)

You have a SharePoint farm. You create a web service that connects to an extension point in the Search service. The web service processes string content and returns the string in all capitalized letters.

The web service includes the properties in the following table.

You start the SharePoint Management Shell. You create the following Windows PowerShell cmdlet: (Line numbers are included for reference only.)

You need to complete the Windows PowerShell cmdlet to register the Content Enrichment service.

Which code segment should you insert at line 04?

Option A

Option B

Option C

Option D

Answer: D

Question No: 129 – (Topic 12)

You create a SharePoint site collection for a law firm. You create the following objects in the site collection.

A user searches for a legal case. The search results must contain only current cases. You need to create a custom result type that displays only current cases.

Which object should you use?

Cases

MPCaseID

case

ows_CaseID

CaseID

Answer: B

Question No: 130 – (Topic 12)

A legal company uses SharePoint for document and records management. You search all documents by using extractors and managed properties. FAST Query Language (FQL) is enabled for the result sources, and the content of the document is indexed as full text. All documents are named by using the following pattern: quot;AAA-Axxxx-AAquot;.

You must find documents that were created in May 2012 and contain the ordered keywords quot;liablequot;, quot;advocatequot;, and quot;adjudicationquot;. Results that are returned must include only document names that begin with quot;HCT-Qquot; and end only with quot;ABquot;.

You need to create the FQL query that returns the required results.

Which FQL statements should you use? (Each correct answer presents part of the solution. Choose all that apply.)

A. Writegt; =05/01/2012 and writelt;=05/31/2012

string(#39;liable advocate adjudicationquot;, mode=quot;onearquot;)

title:HCT-Q*

title:HCT-Q????-AB

NEAR (liable, advocate, adjudication)

F. write:range (2012-05-01, 2012-05-31)

Answer: B,D,F Explanation: B (not E):

The ordered variant of NEAR, and requires an ordered match of the terms. The ONEAR operator can be used to restrict the result set to items that have N terms within a certain distance of Returns only items that don’t match the operand. The operand may be any valid FQL expression.one another.

D (not C):

All documents are named by using the following pattern: quot;AAA-Axxxx-AAquot;.

Results that are returned must include only document names that begin with quot;HCT-Qquot; and end only with quot;ABquot;.

F (not A):

Range. Enables range matching expressions. The RANGE operator is used for numeric and date/time managed properties.

FQL provides the datetime data type for date and time.

The following ISO 8601-compatible datetime formats are supported in queries: YYYY-MM-DD