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 _

  • 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).

  • 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.

  • 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.

  • 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

  • Question 276:

    You create a Web Part.

    You need to display the number of visits to a SharePoint site collection in a label named LblVisits.

    You write the following code segment. (Line numbers are included for reference only.)

    01 SPSecurity.RuntfithElevatedPrivileges (delegate()

    02 {

    03 try

    04 {

    06 LblVisits.Text = site.Usage.Visits.ToString () ;

    07 }

    08 finally

    09 {

    11 }

    12 }

    13 );

    Which code segment should you add at line 05?

    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 );

  • 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

  • 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.

  • 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(); }

  • 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

Tips on How to Prepare for the Exams

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.