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 151:

    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.Properties
    B. SPContext.Current.Web.Permissions
    C. SPContext.Current.Web.RoleAssignments
    D. SPContext.Current.Web.RoleDefinitions

  • Question 152:

    You have a Feature named Feature1. You plan to create a new version of Feature1 that will upgrade the existing version of Feature1. You need to ensure that when Feature1 is upgraded, additional configuration data is added to the property bag of the site. What should you do?

    A. Add a element and increase the Version number of the Feature.
    B. Add a element and increase the UIVersion number of the Feature.
    C. Add an element and increase the Version number of the Feature.
    D. Add an element and increase the UIVersion number of the Feature.

  • Question 153:

    You have a custom user profile property named MyProperty.

    You need to create a Web Part that displays the value of MyProperty for the current user.

    Which code segment should you use?

    A. string profile = SPContext.Current.Web.Properties("CurrentUser/MyProperty");
    B. string profile = SPContext.Current.Web.Users["MyProperty"].ToString();
    C. UserProfileManager profileManager = new UserProfileManager(SPServiceContext. Current); UserProfile userProfile = profileManager.GetUserProfile(SPContext.Current.Web. CurrentUser.LoginName); string profile = userProfile["MyProperty"].ToString();
    D. UserProfileManager profileManager = new UserProfileManager(SPServiceContext. Current); UserProfile userProfile = profileManager.GetUserProfile(SPContext.Current.Web. CurrentUser.LoginName); string profile = userProfile.Properties.GetPropertyByName("MyProperty").ToString ();

  • Question 154:

    You plan to develop a Web Part that displays a SharePoint list.

    The Web Part will verify the list permissions when users access by using the web.CurrentUser.

    DoesUserHavePermissions method.

    You need to ensure that when users do not have permissions to the list, the Web Part displays the company's logo.

    Which code segment should you add to the Web Part?

    A. RunWithElevatedPrivileges
    B. web.AllowUnsafeUpdates= true;
    C. web.CurrentUser.RequireRequestToken = false;
    D. web.ValidateFormDigest();

  • Question 155:

    You need to add a new field to a provisioned content type. You must propagate the field to child lists and child content types. What should you use?

  • Question 156:

    You create custom code to import content to SharePoint sites.

    You create a custom site definition by using Microsoft Visual Studio 2010.

    You need to ensure that when a new site that uses the custom site definition is created, the custom code executes after the site is created.

    Which class should you add to the project?

    A. SPEmailEventReceiver
    B. SPWebProvisioningProvider
    C. SPItemEventReceiver
    D. SPChangeFile

  • Question 157:

    You create a Visual Web Part.

    You need to add an image to the Web Part. The image must be deployed to the 14\TEMPLATE\IMAGES folder.

    What should you do in Microsoft Visual Studio?

    A. Add a SharePoint Layouts mapped folder and create a subfolder named Images.
    B. Create a folder named Images.
    C. Add a SharePoint Images mapped folder.
    D. Create a folder named_Layouts and a subfolder named Images.

  • Question 158:

    You create a Web Part that queries a list.

    The Web Part contains the following code segment. (Line numbers are included for reference only.)

    01 protected override void Render( HtmlTextWriter writer)

    02 {

    03 SPUserToken spInToken = GetTheContext ( SPContext.Current.Site ) ;

    04 using (SPSite aSite = nera SPSite ( curSiteCtx.ID , spInToken ) ) 05 {

    07 }

    08 }

    09 private SPUserToken GetTheContext ( SPSite nUeb )

    10 <

    11 nWeb.CatchAccessDeniedException = false;

    12 SPUserToken spToken = null;

    13 try

    14 {

    15 spToken = nWeb.SystemAccount.UserToken ;

    16 }

    17 catch ( UnauthorizedAccessException )

    18 { 19

    20 }

    21 return spToken;

    22 }

    You need to ensure that users without permissions to the list can view the contents of the list from the Web Part.

    Which code segment should you add at line 19?

    A. SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite eSite = new SPSite(nWeb.ID)) { spToken = nWeb.SystemAccount.UserToken; } }
    B. SPSecurity.RunWithElevatedPrivileges(delegate() { using (SPSite eSite = new SPSite(nWeb.ID)) { spToken = SPContext.Current.Web.CurrentUser.UserToken; } }
    C. spToken = nWeb.RootWeb.AllUsers[SPContext.Current.Web.Name].UserToken;
    D. spToken = nWeb.RootWeb.AllUsers[WindowsIdentity.GetCurrent().Name].UserToken;

  • Question 159:

    You need to create a Web Part that adds a term set to the current SharePoint site collection's term store. You write the following code segment. (Line numbers are included for reference only.)

    01 System.Web.UI.WebControls.TextBox txtBoxTermSetToAdd = new System.Web.UI.

    WebControls.TextBox();

    02 TaxonomySession session = new TaxonomySession(SPContext.Current.Site);

    03 TermSet addedTerm = session.TermStores[0].Groups["MyNewTermStore"].

    CreateTermSet(txtBoxTermSetToAdd.Text);

    Which code segment should you add at line 04?

    A. addedTerm.Export();
    B. addedTerm.TermStore.CommitAll();
    C. SPContext.Current.Site.WebApplication.Update();
    D. SPContext.Current.Web.AllowUnsafeUpdates = true;

  • Question 160:

    You need to create a Web Part that verifies whether a user who accesses the Web Part page is a member of a group named Group1.

    Which code condition should you use?

    A. SPContext.Current.Web.Groups("Group1").ContainsCurrentUser
    B. SPContext.Current.Web.SiteUsers (SPContext.Current.Web.CurrentUser.ID).Groups ("Group1") null
    C. SPContext.Current.Web.SiteUsers (SPContext.Current.Web.CurrentUser.ID).Groups ("Group1") = null
    D. SPContext.Current.Web.Users("Group1").IsDomainGroup

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.