Microsoft 70-573 Online Practice
Questions and Exam Preparation
70-573 Exam Details
Exam Code
:70-573
Exam Name
:TS: Office SharePoint Server, Application Development (available in 2010)
Certification
:Microsoft Certifications
Vendor
:Microsoft
Total Questions
:280 Q&As
Last Updated
:Feb 06, 2022
Microsoft 70-573 Online Questions &
Answers
Question 181:
You create a Business Connectivity Services (BCS) object model in Microsoft Visual Studio 2010. The model connects to an XML file.
You create an external list that displays the BCS entity.
You need to ensure that users can delete items from the external list.
What should you do?
A. Create a custom method and specify the method as a Deleter method instance. B. Call the SPListItem.Delete() method. C. Call the SPList.Delete() method. D. Create a custom method and specify the method as a Disassociator method instance.
A. Create a custom method and specify the method as a Deleter method instance.
MNEMONIC RULE: "Deleter method" XML Snippet: Modeling a Deleter Method http://msdn.microsoft.com/en-us/library/ff464327.aspx Code Snippet: Execute the Deleter Method Instance of an External Content Type http://msdn.microsoft.com/en-us/library/ff464351.aspx
Question 182:
You create a custom page layout that contains code-behind. You need to identify whether the page is in Edit mode or in Display mode. What should you use?
A. SPContext.Current.FormContext B. SPContext.Current.ListItem.Properties C. this.Form D. this.Web.ASPXPageIndexMode
A. SPContext.Current.FormContext
MNEMONIC RULE: FormContext Possible values for SPContext.Current.FormContext.FormMode property are Display, Edit, Invalid, and New. SPFormContext.FormMode Property http://msdn.microsoft.com/enus/library/microsoft.sharepoint.spformcontext_properties.aspx
Question 183:
You create a Feature named Feature1. Feature1 is activated in a SharePoint site. You create a Web Part that contains the following code.
Dim site As New SPSite("http://intranet/site1")
Dim web As SPWeb = site.OpenWeb()
Dim feature As SPFeatureDefinition = SPFarm.Local.FeatureDefinitions("Feature1")
You need to modify the Web Part to activate Feature1 in Site1 only. Which code segment should you add to the Web Part?
A. site.Features.Add(feature.Id) B. site.WebApplication.WebService.Features.Add(feature.Id) C. web.Features.Add(feature.Id) D. web.Site.WebApplication.WebService.Features.Add(feature.Id)
C. web.Features.Add(feature.Id)
MNEMONIC RULE: "add feature to http://intranet/site1" This question is confusing. site object is a SharePoint site collection with http://intranet/site1 beingthe root site (or root web) of this collection. The statement "activate Feature1 in Site1
only" makes it unclear how to treat "Site1" -- as a site collection or asa root web.
However, the second sentence of this question states: "Feature 1 is activated in SharePoint site". Well,SPWeb class represents SharePoint website. That's why I picked Answer C, and you are free to disagree with me. It is possible that
Answer A is the correct one for this question.
Question 184:
You create a custom Web Part. You need to verify whether the Web Part causes any memory leaks. Which tool should you use?
A. SPDisposeCheck.exe B. SPMetal.exe C. Wca.exe D. WinDbg.exe
A. SPDisposeCheck.exe
MNEMONIC RULE: "memory leaks = SPDisposeCheck" SPDisposeCheck is a tool that helps developers and administrators check custom SharePoint solutions thatuse the SharePoint Object Model helping measure against known Microsoft dispose best practices. This toolmay not show all memory leaks in your code and may produce false positives which need further review bysubject matter experts. SharePoint Dispose Checker Tool http://archive.msdn.microsoft.com/SPDisposeCheck
Question 185:
You have a SharePoint list named Assets that contains 1,000,000 items. The list contains a column named Urgent. Approximately 100 items have a value of True in their Urgent column.
You use the following line of code to retrieve the Assets list.
SPList assetsList = currentUeb.Lists ["assets"];
You need to retrieve all of the items in the list that have a value of True in their Urgent column.
You must retrieve the items in the minimum amount of time.
What should you do?
A. Iterate through the assetsList .Fields collection. B. Call assetsLists. Getltems and specify theSPQuery parameter. C. Call assetsList. Items.GetDataTable ( ) and retrieve DataRowCollection . D. Iterate through the assetsList .Items collection.
B. Call assetsLists. Getltems and specify theSPQuery parameter.
MNEMONIC RULE: "SPQuery for minimum time"
SPQuery Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spquery.aspx Spquery in Sharepoint 2010 ?Tutorial
You create a client application that remotely calls the Business Connectivity Services (BCS) object model.
You need to create the context that will be used to request a cache refresh.
Which code segment should you use?
A. BdcService cCtx = SPFarm.Local.Services.GetValue(string.Empty); B. ClientContext cCtx = new ClientContext(string.Empty); C. RemoteOfflineRuntime cCtx = new RemoteOfflineRuntime(); D. RemoteSharedFileBackedMetadataCatalog cCtx = new RemoteSharedFileBackedMetadataCatalog();
C. RemoteOfflineRuntime cCtx = new RemoteOfflineRuntime();
MNEMONIC RULE: "cache = RemoteOfflineRuntime"
Code Snippet: Programmatically Request a Cache Refresh on the Client http://msdn.microsoft.com/en-us/library/ee559351.aspx
Question 187:
You create and deploy a custom Web Part. You add the Web Part to a page and receive a run-time error.
You need to display the detailed information of the error on the page. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
A. In the web.config file, set CallStack="True". B. In the web.config file, set customErrors="RemoteOnly". C. In the registry, set the EnableDebug value to 1. D. In the registry, set the DisableLoopbackCheck value to 1.
A. In the web.config file, set CallStack="True". B. In the web.config file, set customErrors="RemoteOnly".
MNEMONIC RULE: "Check all with web.config"
Turning off custom errors in _layouts Web.Config for debugging mode in SharePoint 2010 http://www.khamis.net/blog/Lists/Posts/Post.aspx?ID=12
Question 188:
You are creating an application page that will open a dialog box. The application page 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, retumValue ){>
03 function OpenEditDialog (id){
04 var options = {
url:" http://intranet/Jayouts /MsgToShow.aspx,
width: 300,
05 height: 300,
06 dialogReturnValueCallback : DialogCallback
07 };
08 SP.UI.ModalDialog.showModalDialog (options);
09 }
10 < /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. At line 08, change showModalDialog to commonModalDialogOpen. C. At line 08, change showModalDialog to openDialog. D. Add a script link that references SharePoint.Dialog,js .
A. Add a script link that references SP.js .
Question 189:
You create a user control named MySearchBox.ascx. You plan to change the native search control in SharePoint to MySearchBox.ascx. You implement a Feature that contains the following code segment.
You discover that the MySearchBox.ascx control fails to appear. You need to ensure that the MySearchBox.ascx control appears. What should you do?
A. Add the ControlClass attribute. B. Add the ControlAssembly attribute. C. Modify the Sequence attribute value. D. Remove the ControlSrc attribute value.
C. Modify the Sequence attribute value.
MNEMONIC RULE: "Sequence to appear"
ControlSrc is necessary for user control, whereas ControlClass and ControlAssembly are needed for servercontrols.
Sequence property specifies the sequence number for the control, which determines whether the control isadded to the control tree for a page. The control with the lowest sequence number is added to the tree.
You need to create a timer job that queries a list.
What should you do?
A. Create a class that inherits SPJobDefinition and override the Execute method. B. Create a class that inherits SPServiceApplicationand override the Provision method. C. Create a class that inherits SPServiceApplicationand override the Provisionlnstances method. D. Create a class that inherits SPJobDefinition and override the Provision method.
A. Create a class that inherits SPJobDefinition and override the Execute method.
MNEMONIC RULE: "Execute timer job"
Next, and the most important thing, is to override Execute() method. This method is called each time when thejob is fired, so it should contain all the logic to accomplish what You expect from the job.
SPJobDefinition as the way to create scheduled tasks http://tomaszrabinski.pl/wordpress/2010/05/27/spjobdefinition-as-the-way-to-create- scheduled-tasks/
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Microsoft exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your 70-573 exam preparations
and Microsoft certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.