PrepAway - Latest Free Exam Questions & Answers

Category: 70-573 (v.1)

Exam 70-573: TS: Microsoft SharePoint 2010, Application Development (update October 30th, 2015)

You need to ensure that the clickButton button appears

You create a Web Part that contains the following code segment. (Line numbers are included for

reference only.) 01 public class HebPart1: WebPart 02 { 03 public VebPart1() {} 04 05 protected
override void CreateChildControlst) 06 { 07 Button clickButton = new Button(); 08 09
base.CreateChildControls(); 10 ] 11 12 protected override void BenderContents(HtrolTextWriter
writer) 13 { 14 15 base.RenderContents(writer); 16 } 17 } You discover that the clickButton button
does not appear. You need to ensure that the clickButton button appears. What should you do?

Which line of code should you identify?

You are creating a Web Part for SharePoint Server 2010. The Web Part contains the following
code segment. (Line numbers are included for reference only.) 01 protected override void
CreateChildControls () 02 { 03 base.CreateChildControls (); 04
SPSecurity.FunWithElevatedPrivileges ( 05 delegate 06 { 07 Label ListCount = new Label (); 08
ListCount.Text = String.Format (“There are {0> Lists”, SPContext.Current.Heb.Lists.Count ); 09
Controls.Add ( ListCount ) ; 10 }} 11 } You need to identify which line of code prevents the Web
Part from being deployed as a sandboxed solution. Which line of code should you identify?

Which element should you configure in the Feature definition file?

You have a Feature that contains an image named ImageVl.png. You plan to create a new
version of the Feature. You need to ensure that when the Feature is upgraded, the image is
renamed as ImageV2.png. You must achieve this goal by using the minimum amount of
development effort. Which element should you configure in the Feature definition file?

Which class should you use in FeatureReceiver1?

You have a Web application named WebApp1. You have a Feature receiver named
FeatureReceiver1. FeatureReceiver1 stores a connection string in the web.config file of
WebApp1. You need to ensure that when FeatureReceiver1 makes configuration changes to
web.config, the changes are automatically replicated to all Web servers in the farm. Which class

should you use in FeatureReceiver1?

Which code segment should you add at line 04?

You need to disable the CriticalExceptionCount measure for all sandboxed solutions. You write
the following code segment. (Line numbers are included for reference only.) 01
SPUserCodeService userCode = SPUserCodeSecvi.ee. Local; 02 SPResourceHeasureCollection
measures = userCode.ResourceHeasures ; 03 SPResourceHeasure measure = measures [“
CriticalExc eptionCounc “] ; 04 05 measure.Update (); Which code segment should you add at line
04?


Page 9 of 24« First...7891011...20...Last »