Latest MCTS 70-573 Dumps Real Exam Download 121-130

Ensurepass

QUESTION 121

You develop a custom approval workflow. The workflow uses the CreateTask class to assign tasks to a user named User1.

A list called Tasks stores the tasks. Other workflows and users use the Tasks list.

You need to ensure that the tasks assigned to User1 can only be viewed by User1.

What should you do?

 

clip_image002

 

 

QUESTION 122

You need to create a Web Part that displays all of the permission levels of the current subsite. Which collection should you use?

 

A. SPContext.Current.Web.Permissions

B. SPContext.Current.Web.Properties

C. SPContext.Current.Web.RoleAssignments

D. SPContext.Current.Web.RoleDefinitions

Correct Answer: D

Explanation/Reference:

MNEMONIC RULE: “permission levels = RoleDefinitions”

The role definition, or permission level, is the list of rights associated with the role.

Role Assignments, Role Definitions, and Inheritance http://msdn.microsoft.com/en-us/library/ms414036.aspx

 

 

QUESTION 123

You plan to create a custom Web Part that displays items from a custom SharePoint list named Project.

You need to ensure that you can access the list by using strongly-typed objects in Microsoft Visual Studio

2010.

What should you do first?

 

A. Run spmetal.exe.

B. Run ecmangen.exe.

C. Edit the web.config file.

D. Edit the Manifest.xml file.

 

Correct Answer: A

Explanation/Reference:

MNEMONIC RULE: “strongly-typed = spmetal.exe”

The LINQ to SharePoint provider is a new feature in SharePoint 2010 that allows you to use a strongly-typed entity model and the language integrated query (LINQ) query syntax to query list data. Essentially,

LINQ to SharePoint hides the complexity of developing CAML queries from developers, which can reduce development time and make code more readable. The LINQ to SharePoint provider converts the LINQ expressions into CAML queries at run time.

Although you can manually develop your entity classes, in most cases, you will want to use the SPMetal command line tool.

Using LINQ to SharePoint http://msdn.microsoft.com/en-us/library/ff798478.aspx

 

 

QUESTION 124

You have a SharePoint site collection that contains 100 sites. Each site contains 100 lists.

You need to retrieve the data from all of the lists. The data must be retrieved in the minimum amount of time.

Which access method should you use?

 

A. ListData.svc

B. SPListItemCollection.GetDataTable

C. SPList.Items

D. SPSiteDataQuery

Correct Answer: D

Explanation/Reference:

MNEMONIC RULE: “100 sites = SPSite” The data must be retrieved in the minimum amount of time; therefore, SPSiteDataQuery SPSiteDataQuery Class

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsitedataquery.aspx

 

 

QUESTION 125

You are creating an application for SharePoint Server 2010.

The application will run on a remote computer.

You need to identify a data access method to query lists in the application.

Strongly-typed access to columns must be provided from within Microsoft Visual Studio 2010.

Which method should you use?

 

A. client object model

B. LINQ to SharePoint

C. Representational State Transfer (REST)

D. server object model

Correct Answer: A

Explanation/Reference:

MNEMONIC RULE: “remote + strongly-typed = Client Object Model”

REST is not strongly-typed, LINQ and server object model are not for remote communications.

The new client object models provide an object-oriented system for interoperating with SharePoint data from a remote computer, and they are in many respects easier to use than the already existing SharePoint Foundation Web services.

What’s New: Client Object Model http://msdn.microsoft.com/en-us/library/ee535231.aspx

 

 

QUESTION 126

You create a custom list named Products.

You need to perform a Representational State Transfer (REST) query that returns products 30 to 39.

Which URL should you use?

 

A. /ListData.svc/Products(30) $skip=10

B. /ListData.svc/Products(39) $skip=30

C. /ListData.svc/Products $skip=10&$top=30

D. /ListData.svc/Products $skip=30&$top=10

Correct Answer: D

Explanation/Reference:

MNEMONIC RULE: “skip first 30, get top 10”

Using REST to get data form SharePoint 2010 lists http://mysharepointwork.blogspot.com/2010/09/using-rest-to-get-data-form-sharepoint.html

 

 

QUESTION 127

You create a custom list named Products.

You need to perform a Representational State Transfer (REST) query that returns the first product in the list.

Which URL should you use?

 

A. http://intranet/_vti_bin/ListData.svc/Products(1)

B. http://intranet/_vti_bin/ListData.svc/Products $filter=1

C. http://intranet/Lists/Products/AllItems.aspx contents=1

D. http://intranet/Lists/Products/ListData.svc $expand=1

Correct Answer: A

Explanation/Reference:

MNEMONIC RULE: “Products(1)”

http://localhost/_vti_bin/listdata.svc/Parts(3)

The preceding URL returns the Parts list item with an ID value of 3 as an Atom feed.

Using the REST Interface

http://msdn.microsoft.com/en-us/library/ff798339.aspx

 

 

QUESTION 128

You create two custom lists named Offices and Rooms.

Rooms has the following columns:

Title

Capacity

Equipment

Offices has the following columns:

Title

Rooms (a lookup to the Title column in the Rooms list)

 Rooms:

 Capacity

 Rooms:

 Equipment

You need to perform a Representational State Transfer (REST) query that returns a list of all the offices that have rooms with a capacity of 10. The query results must include the room titles and the equipment in each room.

Which URL should you choose?

 

clip_image004

 

Explanation/Reference:

MNEMONIC RULE: “Offices – Rooms – Rooms/Capacity”

You can use the Expand method to navigate from one entity to a related entity.

You can append query strings to the URLs in order to specify filter criteria or query logic.

Using the REST Interface

http://msdn.microsoft.com/en-us/library/ff798339.aspx

 

 

QUESTION 129

You need to create a Microsoft .NET Framework console application that queries a list by using the SharePoint client object model.

Which two assemblies should you reference? (Each correct answer presents part of the solution. Choose two.)

 

A. Microsoft.Office.Sharepoint.ClientExtensions.dll

B. Microsoft.SharePoint.Client.dll

C. Microsoft.SharePoint.Client.Runtime.dll

D. Microsoft.SharePoint.Client.Silverlight.Runtime.dll

Correct Answer: BC

Explanation/Reference:

MNEMONIC RULE: “Runtime and the parent”

SharePoint 2010: Introducing the Client Object Model http://www.chakkaradeep.com/post/SharePoint-2010-Introducing-the-Client-Object-Model.aspx

 

 

QUESTION 130

You need to delete the previous versions of all documents in a document library.

The deleted versions of the documents must be retained in the SharePoint Recycle Bin.

What should you do?

 

A. For the document library, call the Recycle method.

B. For the document library, call the Delete method.

C. For each document, call the DeleteAll method of the Versions property.

D. For each document, call the RecycleAll method of the Versions property.

 

Correct Answer: D

 

Explanation/Reference:

MNEMONIC RULE: “all previous versions to Recycle Bin = RecycleAll of the Versions”

Recycles the version collection except for the current version.

SPListItemVersionCollection.RecycleAll Method http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitemversioncollection.recycleall.aspx

 

Download Lates MCTS 70-573 Real Free Tests , help you to pass exam 100%.