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 271:
You create a Web Part. The Web Part contains a grid view named GridView1 and the following code segment. (Line numbers are included for reference only.)
01 Dim dc As New IntranetDataContext("http://intranet")
02 MyGridView.DataSource = From announce In dc.Announcements _ 04 Select announce IntranetDataContext is a LINQ context.
You need to ensure that GridView1 only displays items from Announcements that have an expiry date that is greater than or equal to the current date. What should you do?
A. Change line 04 to the following code segment. Select Not announce.Expires.HasValue B. Change line 04 to the following code segment. Select announce.Expires.Value.CompareTo(DateTime.Now) >= 0 C. Add the following line of code at line 03. Where announce.Expires.Value.CompareTo(DateTime.Now) >= 0 _ D. Add the following line of code at line 03. Order By announce.Expires.Value.CompareTo(DateTime.Now) >= 0 _
C. Add the following line of code at line 03. Where announce.Expires.Value.CompareTo(DateTime.Now) >= 0 _
Question 272:
You create a Visual Web Part in SharePoint Server 2010.
You need to ensure that the Web Part can access the local file system on the SharePoint server. You must minimize the amount of privileges assigned to the Web Part.
What should you do?
A. Elevate the trust level to Full. B. Elevate the trust level to WSS_Medium. C. Create a custom code access security (CAS) policy. D. Deploy the Web Part to the Global Assembly Cache (GAC).
C. Create a custom code access security (CAS) policy.
MNEMONIC RULE: "access the local file system = custom code access" WSS_Medium will give you access to System.Security.Permissions.FileIOPermission, but it'll also give youaccess to a few other assemblies/namespaces. If the goal is to minimize the amount of privileges, then CAS is the way to go. Securing Web Parts in SharePoint Foundation http://msdn.microsoft.com/en-us/library/cc768613.aspx
Question 273:
You have a custom Web Part.
You need to create a custom user interface for modifying the Web Part properties.
What should you do?
A. Create a new Master Page. Implement the IControlBuilderAccessor interface. B. Create a new tool part for the custom Web Part. C. Modify the [ToolBox] attribute of the custom Web Part. D. Create a new Web Part. Implement the IControlBuilderAccessor interface.
B. Create a new tool part for the custom Web Part.
MNEMONIC RULE: "Tool part for the Web Part"
What is a custom tool part?
The Custom tool part is part of the web part infrastructure, that helps us to create a custom user interface forthe web part properties that goes beyond the capabilities of the default property pane.
When do we need a custom tool part?
Let's say, If we need to create a web part property of type dropdown, we need to create a custom tool part.This is not supported out-of-box in the web part framework. I've the similar requirement of creating a customweb part property of type
drop-down.
Create Custom Tool Parts for SharePoint Web Parts https://msmvps.com/blogs/sundar_narasiman/archive/2009/09/02/create-custom-tool-parts- for-sharepoint-webparts.aspx
Question 274:
You create a Web Part named WP1.
You need to ensure that the name of the Web Part displays as Corporate in SharePoint.
What should you do?
A. Rename WP1.webpart as Corporate.webpart. B. In WP1.webpart, change the Title property to Corporate. C. In the constructor of WP1.cs, add the following line of code: Page.Title="Corporate"; D. In the Elements.xml file, change the Name property of the element to Corporate.
B. In WP1.webpart, change the Title property to Corporate.
MNEMONIC RULE: "Title property to Corporate" Web Parts Control Description Files http://msdn.microsoft.com/en-us/library/ms227561.aspx
Question 275:
You have a SharePoint solution that contains a custom site column and a custom content type.
You need to add the custom site column as a lookup field for the custom content type.
What should you create?
A. a Feature activation dependency B. a new module C. a new Feature event receiver D. a new SharePoint mapped folder
A. SPSite site - SPContext.GetContext (HttpContext.Current ).Site; B. SPSite site = new SPSite (SPContext.Current.Site.ID ); C. SPSite site = SPContext.Current.Site ; D. SPSite site - SPControl.GetContextSite (HttpContext.Current );
B. SPSite site = new SPSite (SPContext.Current.Site.ID );
Question 277:
You are creating a Web Part that will be deployed as a sandboxed solution. You need to ensure that the Web Part can write debugging information to the SharePoint trace logs. Which class should the logging component inherit?
A. SPDelegate B. SPLog C. SPPersistedObject D. SPProxyOperation
D. SPProxyOperation
MNEMONIC RULE: "sandboxed solution needs SPProxyOperation" You can implement your full-trust functionality in classes that derive from the SPProxyOperation abstract classand deploy the assembly to the global assembly cache. These classes expose a full-trust proxy that you cancall from within the sandbox environment. Full-trust proxies can provide a useful way to expose logging and configuration functionality to sandboxedapplications. Hybrid Approaches http://msdn.microsoft.com/en-us/library/ff798433.aspx
Question 278:
You create a workflow named WF1. WF1 is attached to a list named List1. You need to receive an e-mail notification if WF1 is postponed. What should you do?
A. Use a HandleExternalEvent activity in WF1. B. Attach an SPWorkflowEventReceiver event receiver to List1. C. Attach an SPItemEventReceiver event receiver to List1. D. Use a ReceiveActivity activity in WF1.
B. Attach an SPWorkflowEventReceiver event receiver to List1.
MNEMONIC RULE: "Workflow = SPWorkflowEventReceiver" The SPWorkflowEventReceiver class handles workflow events throughout the lifetime of a workflow. Starting: Occurs when a workflow is starting Started: Occurs when a workflow is started Postponed: Occurs when a workflow is postponed Completed: Occurs when a workflow is completed You can register the SPWorkflowEventReceiver with any site, list, or content type. Apress - SharePoint 2010 as a Development Platform (book)
Question 279:
You create a Web Part that calls a function named longCall.
You discover that longCall takes a long time to execute.
You need to display in the Developer Dashboard how long it takes to execute longCall.
Which code segment should you use?
A. DateTime startTime = DateTime.Now; longCall(); Trace.Write("Long Call " + DateTime.Now.Subtract(startTime).Seconds); B. DateTime startTime = DateTime.Now; longCall(); Trace.TraceWarning("Long Call " + DateTime.Now.Subtract(startTime).Seconds); C. Monitor.Enter("Long Call"); if (true) { longCall(); } Monitor.Exit("Long Call"); D. using (SPMonitoredScope monitoredScope = new SPMonitoredScope("Long Call")) { longCall(); }
D. using (SPMonitoredScope monitoredScope = new SPMonitoredScope("Long Call")) { longCall(); }
MNEMONIC RULE: "Developer Dashboard = SPMonitoredScope" Monitors performance and resource use for a specified scoped block of code. SPMonitoredScope Class http://msdn.microsoft.com/enus/library/microsoft.sharepoint.utilities.spmonitoredscope.aspx
Question 280:
You create a Web Part that calls a function named long Call. You discover that long Call takes a long time to execute. You need to display in the Developer Dashboard how long it takes to execute long Call. Which code segment should you use?
A. Dim startTime As DateTime = DateTime.Now longCall() Trace.Write("Long Call " and DateTime.Now.Subtract(startTime).Seconds) B. Dim startTime As DateTime = DateTime.Now longCall() Trace.TraceWarning("Long Call " and DateTime.Now.Subtract(startTime).Seconds) C. Monitor.Enter("Long Call") If True Then longCall() End If Monitor.[Exit]("Long Call") D. Using monitoredScope As New SPMonitoredScope("Long Call") longCall() End Using
D. Using monitoredScope As New SPMonitoredScope("Long Call") longCall() End Using
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.