Latest MCTS 70-573 Dumps Real Exam Download 11-20

Ensurepass

QUESTION 11

You have a Web page named ShowMessage.aspx.

You create a new Web page.

You need to display the content from ShowMessage.aspx in an IFRAME on the new Web page. You must achieve this goal by using the minimum amount of effort.

What should you do?

 

A. Add a FormView Web Part that displays ShowMessage.aspx.

B. Use Response.Write to write text to the browser.

C. Use SP.UI.ModalDialog.showModalDialog() to display a dialog.

D. Use Response.Redirect to send users to the ShowMessage.aspx page.

Correct Answer: C

Explanation/Reference:

MNEMONIC RULE: “SP.UI will get you IFRAME”

html property of SP.UI.DialogOptions can render an IFRAME tag pointing to the appropriate URL.

Using the Dialog framework in SharePoint 2010

http://www.chaholl.com/archive/2010/11/17/using-the-dialog-framework-in-sharepoint-2010.aspx

 

 

QUESTION 12

You create a modal dialog that displays a list of items. You need to capture the items selected by a user. Which code segment should you use?

 

A. SPItem item = SPContext.Current.Item;

B. var items = SP.ListOperation.Current.Item();

C. var items = SP.ListOperation.Selection.getSelectedItems();

D. var item = SPContext.Current.Item[“Selected”];

 

Correct Answer: C

Explanation/Reference:

MNEMONIC RULE: “getSelectedItems”

SP.ListOperation.Selection.getSelectedItems() Method http://msdn.microsoft.com/en-us/library/ff409526.aspx

 

 

QUESTION 13

You need to add a modal dialog box to a SharePoint application. What should you use?

 

A. the Core.js JavaScript

B. the Microsoft.SharePoint assembly

C. the Microsoft.SharePoint.Client assembly

D. the SP.js JavaScript

Correct Answer: D

Explanation/Reference:

MNEMONIC RULE: “SP.js”

SP.UI namespace is defined in SP.Core.js, SP.js, SP.UI.Dialog.js files. ModalDialog is a part of SP.UI namespace.

JavaScript Class Library http://msdn.microsoft.com/en-us/library/ee538253.aspx

 

clip_image002

 

QUESTION 15

You are creating an application page that will open a dialog box.

The dialog box uses a custom master page. You write the following code segment. (Line numbers are included for reference only.)

01 <script type=”text/javascript”>

02 function DialogCallback(dialogResult, returnValue)

03 {

04 }

05 function OpenEditDialog(id)

06 {

07 var options = {

08 url:”http://intranet/_layouts/MsgToShow.aspx,

09 width: 300,

10 height: 300,

11 dialogReturnValueCallback: DialogCallback

12 };

13 SP.UI.ModalDialog.showModalDialog(options);

14 }

15 </script>

You need to ensure that the code opens the dialog box.

What should you do?

 

A. Add a script link that references SP.js.

B. Add a script link that references SharePoint.Dialog.js.

C. At line 13, change showModalDialog to openDialog.

D. At line 13, change showModalDialog to commonModalDialogOpen.

 

Correct Answer: A

Explanation/Reference:

MNEMONIC RULE: “SP.js”

SP.UI namespace is defined in SP.Core.js, SP.js, SP.UI.Dialog.js files.

JavaScript Class Library http://msdn.microsoft.com/en-us/library/ee538253.aspx

 

 

QUESTION 16

You plan to add a custom tab to the Ribbon in a SharePoint Web application.

You create a custom Feature that contains an Elements.xml file.

You need to ensure that the custom tab only appears in the document libraries of the Web application.

Which code segment should you add to the Custom Action node of the Elements.xml file?

 

A. Location=”DocumentLibrary”

B. RegistrationId=”101″

C. RegistrationType=”List”

D. ShowInLists=”false”

 

Correct Answer: B

Explanation/Reference:

MNEMONIC RULE: “document libraries 101”

SharePoint: RegistrationId List Template Type IDs

http://techtrainingnotes.blogspot.com/2008/01/sharepoint-registrationid-list-template.html

Work with the SharePoint 2010 Ribbon User Interface http://msdn.microsoft.com/en-us/library/ff630938.aspx

 

 

QUESTION 17

You have one Web application that contains several SharePoint site collections.

You need to create a Feature that adds a custom button to the Documents tab on the Ribbon of one site

collection only.

What should you do?

 

A. Create a new Feature. In a new <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.

B. Create a new Feature. In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children.

C. Modify the CMDUI.xml file. In a new <CommandUIDefinition> node, specify the location of Ribbon.Tabs._children.

D. Modify the CMDUI.xml file. In a new <CommandUIDefinition> node, specify the location of Ribbon.Documents.Manage.Controls._children.

 

Correct Answer: B

 

Explanation/Reference:

MNEMONIC RULE: “create a new feature … Documents”

You are interested in the group, so search for a group that matches close to the group name “Manage” and also should be present in a tab named “Document”. Here you go, the group name location “Ribbon.Documents.Manage”

Now, since you got your groupname… you have to specify that you are going to add a child control… the syntax is “Controls._children”. Hence your complete location is “Ribbon.Documents.Manage.Controls._children”

SharePoint 2010 Ribbon customization: Basics http://howtosharepoint.blogspot.com/2010/06/ribbon-basics.html

 

 

QUESTION 18

You have a SharePoint site that contains 10 lists.

You need to prevent a list named List1 from appearing on the Quick Launch navigation bar.

What should you configure?

 

A. the Hidden property of List1

B. the Navigation.QuickLaunch.Parent.IsVisible property of the site

C. the OnQuickLaunch property of List1

D. the QuickLaunchEnabled property of the site

 

Correct Answer: C

Explanation/Reference:

MNEMONIC RULE: “Do you want to see the list on Quick Launch?”

Gets or sets a Boolean value that specifies whether the list appears on the Quick Launch area of the home page.

SPList.OnQuickLaunch Property http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splist.onquicklaunch.aspx

 

 

QUESTION 19

You create a Feature receiver.

You need to hide the Quick Launch navigation bar of a SharePoint site.

What should you use?

 

A. the Hidden property of each list

B. the Navigation.QuickLaunch.Parent.IsVisible property

C. the OnQuickLaunch property of each list

D. the QuickLaunchEnabled property

 

Correct Answer: D

Explanation/Reference:

MNEMONIC RULE: “hide Quick Launch = QuickLaunchEnabled”

SPWeb.QuickLaunchEnabled Property http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.quicklaunchenabled.aspx

 

 

QUESTION 20

You create a Feature.

You need to add an item to the context menu of a list.

Which type of element should you use?

 

A. a CustomAction

B. a ListInstance

C. a ListTemplate

D. a Module

Correct Answer: A

Explanation/Reference:

MNEMONIC RULE: “context menu item = CustomAction”

A custom action can be added inside a secondary XML file, part of a normal feature. It is defined by a “CustomAction” element type.

How to add a custom action to list elements context menu http://www.dev4side.com/community/technical-articles/sharepoint-2007/how-to-add-a-custom-action-to-list-elements-context-menu.aspx

 

 

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