Practice Test - yimg.com

7 downloads 272 Views 9MB Size Report
The information in TemplatePassGuide.xsd must be read. The following property should be used. Answer: Microsoft 70-573: Practice Exam. "Pass Any Exam.
Microsoft 70-573

TS: Microsoft SharePoint 2010, Application Development

Practice Test Version: 10.2

Microsoft 70-573: Practice Exam QUESTION NO: 1 A site definition has been purchased from another company. It is used to created SharePoint sites. Now there is a request to modify the home page for the site definition by adding a Web Part. What actions need to be taken? Select two. A. Add.. B. Uninstall.. C. Remove… D. Modify.. E. Install… F. ..the file CSTemplate.xsd G. ..the file Onet.xml H. ..a Feature receiver I. ..a Feature dependcy J. ..the file config.web K. ..the file web.config Answer: D,G Explanation:

QUESTION NO: 2 A customized Site Featured need to be made. There is customized site definition. The Feature of this site definition must be activated for all additional sites which are created using it. What actions need to be taken? Select two. A. Add.. B. Uninstall.. C. Remove… D. Modify.. E. Install… F. ..the file CSTemplate.xsd G. ..the file Onet.xml H. ..a Feature receiver I. ..a Feature dependcy J. ..the file config.web K. ..the file web.config

"Pass Any Exam. Any Time." - www.actualtests.com

2

Microsoft 70-573: Practice Exam Answer: D,G Explanation:

QUESTION NO: 3 DRAG DROP There is third party site definition named PASSGUIDE. A file named TemplatePassGuide.xsd is included in PassGuide. TemplatePassGuide.xsd contains configuration date. There is a provision handler for PassGuide. The information in TemplatePassGuide.xsd must be read. The following property should be used.

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

3

Microsoft 70-573: Practice Exam

QUESTION NO: 4 There is a specialized program to import data into SharePoint sites. There is a specialized site definition named PassGuide created by MS Visual Studio 2010. The specialized program code must be run whenever a new site is created by using PassGuide. What should be done to ensure this? Select three. A. Modify.. B. Add… C. Delete… D. ..file.. E. ..class.. F. ..feature.. G. .. CSTemplate.xsd H. ..SPItemEventReceiver I. .. Onet.xml J. .. receiver K. .. SPChangeFile L. .. SPWebEventReceiver M. .. dependcy N. .. SPWebProvisioningProvider O. ..config.web P. .. web.config Answer: B,E,N Explanation:

QUESTION NO: 5 There is a specialized Web Part named PassGuideWebpart. There must be a test to check if PassGuideWebpart generates leaks in the RAM. What should be done to ensure this? Select two. A. Modify.. B. Add… C. Run.. D. Delete… "Pass Any Exam. Any Time." - www.actualtests.com

4

Microsoft 70-573: Practice Exam E. .. WinDbg.exe F. .. CSTemplate.xsd G. ..SPItemEventReceiver H. .. Onet.xml I. .. SPDisposeCheck.exe J. .. SPChangeFile K. .. SPWebEventReceiver L. .. SPMetal.exe M. .. SPWebProvisioningProvider N. ..config.web O. .. web.config Answer: C,I Explanation:

QUESTION NO: 6 There is a web part named PassGuideWebPart. PassGuideWebPart is launched in a sandboxed release. PassGuideWebPart saves debugging data into SharePoint trace log files. What should be done to the logging component to ensure this? Select three. A. Add… B. Inherit.. C. Run.. D. Delete… E. ..file.. F. ..class.. G. ..feature.. H. .. WinDbg.exe I. .. SPLog J. .. SPProxyOperation K. .. CSTemplate.xsd L. ..SPItemEventReceiver M. .. Onet.xml N. .. SPDisposeCheck.exe O. .. SPPersistedObject P. .. SPChangeFile Q. .. SPDelegate R. .. SPWebEventReceiver S. .. SPMetal.exe T. .. SPWebProvisioningProvider "Pass Any Exam. Any Time." - www.actualtests.com

5

Microsoft 70-573: Practice Exam U. ..config.web V. .. web.config Answer: B,F,J Explanation:

QUESTION NO: 7 DRAG DROP There is a solution validator named PassGuideValidator. All SharePoint solutions are to be validated after that they are run in the future. What should be done to ensure this?

Answer:

QUESTION NO: 8 DRAG DROP "Pass Any Exam. Any Time." - www.actualtests.com

6

Microsoft 70-573: Practice Exam A web part named PassGuideWP is created. PassGuideWP is used in a SharPoint subsite with URL http://www.PassGuide.com/PG. PassGuideWP must not allow RAM leaks to occur when it is activates a Site Feature in the subsite. How can you achieve this?

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

7

Microsoft 70-573: Practice Exam

QUESTION NO: 9 Code Exhibit: Protected Sub SiteCreation_Click.. … End Sub There is a Web Part named PGPart. PGPart creates a SharePoint site when the button PGButton is clicked. The button works fine for user1, the person who has written the code. The program code for the button is defined partly as in the code exhibit. However, user2 receives the error “Access Denied” when he uses PGPart to create a new site. How should you avoid the error message? "Pass Any Exam. Any Time." - www.actualtests.com

8

Microsoft 70-573: Practice Exam A. Modify the security of PGPart. B. Modify the security of the SiteCreation_Click code. C. Run the code SiteCreation_Click within a delegate SPSecurity.RunWithElevatedPrivileges D. Add the following code to SiteCreation_Click: web.ValidatesFormDigest() Answer: C Explanation:

QUESTION NO: 10 DRAG DROP There is a SharePoint site collection named PassGuideSiteC. PassGuideC includes 50 subsites. There is a Web Part named PassGuideWP. PassGuideWP must be deployed in all subsites of PassGuideC. PassGuideWP must retrieve all files from the current root directory of the current subsite. Which code segment refers to these files? Select two.

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

9

Microsoft 70-573: Practice Exam

QUESTION NO: 11 DRAG DROP A web part named PassGuideWP is created. PassGuideWP is used in a SharPoint site with URL http://www.PassGuide.com/PG. A reference to the current subsite of PassGuideWP will be created. How can the reference be created and at the same time avoid being forced to delete any returned objects?

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

10

Microsoft 70-573: Practice Exam

QUESTION NO: 12 DRAG DROP There is Feature named PassGuideFeature. PassGuideFeature is activated in site PassGuideSite. A Web Part, PassGuideWP, is created through VB commands SPSite, Site.OpenWeb(), and SPFarm.Local.Features(“PassGuideFeature). What VB command can be used to add PassGuideFeature in PassGuideSite? Assumare that ft1 donotes a local feature variable.

"Pass Any Exam. Any Time." - www.actualtests.com

11

Microsoft 70-573: Practice Exam Answer:

QUESTION NO: 13 DRAG DROP There is SharePoint farm PassGuideFarm. PassGuideFarm has 40 custom Features. Many of PassGuideFarm features are upgrades. The site collection must used the most recent versions of the features. Which code should be used? Use code that only evaluates features that must be upgraded.

"Pass Any Exam. Any Time." - www.actualtests.com

12

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

13

Microsoft 70-573: Practice Exam

QUESTION NO: 14 DRAG DROP There is an application PassGuideApp. PassGuideApp has a contextual tab that is rendered in a custom control. The custom contextual tab must appear in the Ribbon when the custom control is rendered. What code should be used?

"Pass Any Exam. Any Time." - www.actualtests.com

14

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

15

Microsoft 70-573: Practice Exam

QUESTION NO: 15 DRAG DROP There is a Web Part PassGuideWP. The out-of-the-box Ribbon on the current page in PassGuideWP must be hidden. What VB command can achieve this?

"Pass Any Exam. Any Time." - www.actualtests.com

16

Microsoft 70-573: Practice Exam

Answer:

QUESTION NO: 16 DRAG DROP There is a third party themed named PassGuideTheme. PassGuideTheme is saved in the file PassGuideTheme.thmx. PassGuideTheme is to be applied to a SharePoint site through VB code. Which could do this?

"Pass Any Exam. Any Time." - www.actualtests.com

17

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

18

Microsoft 70-573: Practice Exam QUESTION NO: 17 DRAG DROP There is a Web Part named PassGuideWP. PassGuideWP displays a list. Only users with proper permissions should be allowed to access the list. Which VB codes should you add to PassGuideWP?

Answer:

QUESTION NO: 18 DRAG DROP There is a web Part named PassGuideWP. You need to create code that creates a button named PassGuideButton.

"Pass Any Exam. Any Time." - www.actualtests.com

19

Microsoft 70-573: Practice Exam Which code should you use?

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

20

Microsoft 70-573: Practice Exam

QUESTION NO: 19 There are two WebParts named PassGuide1 and PassGuide2 respectively. PassGuide1 sends PassGuideID to PassGuide2 through an Interface named PassGuideInterface. The VB code of PassGuideInterface are as follows Public Interface PassGuideInterface Property PassGuideID as String End Interface How can you ensure the communication between PassGuide1 and PassGuide2 through PassGuideInterface? Select two. A. Define PassGuideInterface… B. Create a public set-access-declaration… C. Create a neutral set-access-declaration… "Pass Any Exam. Any Time." - www.actualtests.com

21

Microsoft 70-573: Practice Exam D. Create a protected set-access-declaration… E. .. in PassGuide1. F. ..in PassGuide2 G. ..as a property to PassGuideID. Answer: A,E Explanation:

QUESTION NO: 20 Exhibit: Public Interface PassGuideInterface Property PassGuideParameter As String End Interface There are three Web Parts named PassGuideProvider, PassGuideConsumer1, and PassGuideConsumer2. PassGuideProvider is a provider. PassGuideConsumer1 and PassGuideConsumer2 are consumers. There is an interface named PassGuideInterface. Please refer to the exhibit. How should you ensure communications between the three web parts, i.e. the PassGuide1Consumer1 and PassGuide1Consumer2 must be able to receive data from PassGuideProvider? A. Implement PassGuideInterface in PassGuideConsumer1. B. Implement PassGuideInterface in PassGuideConsumer2. C. Implement PassGuideInterface in PassGuideConsumer1 and PassGuideConsumer2. D. Implement PassGuideInterface in PassGuideProvider. E. Add one additional interface and use it to communicate with PassGuideprovider. F. Implement IWebPartField in PassGuideConsumer1. G. Implement IWebPartField in PassGuideConsumer2. H. Implement IWebPartField in PassGuideConsumer1 and PassGuideConsumer2. I. Implement IWebPartField in PassGuideProvider. Answer: E Explanation:

QUESTION NO: 21

"Pass Any Exam. Any Time." - www.actualtests.com

22

Microsoft 70-573: Practice Exam There is a Web Part named PassGuideWebPart. In the Sharepoint the name of PassGuideWebPart must be shown as PassGuide. How can you ensure this? A. Through the Name property of the PassGuideWebPart.cs. B. Through the Title property of the PassGuideWebPart.cs. C. Through the Name property of the PassGuideWebPart.webpart. D. Through the Title property of the PassGuideWebPart.webpart. E. Through the Name property of the Elements.xml. F. Through the Title property of the Elements.xml. Answer: D Explanation:

QUESTION NO: 22 Exhibit: Try …* Missing code * Catch ex As Exception System.Diagnostics.EventLog.WriteEntry("Name of WebPart", ("Information of Exception: " + ex.Message), EventLogEntryType.Error) End Try There is a web part named PassGuidePart. In PassGuidePart there is logging code which is displayed in the exhibit. The line “System.Diagnostics.EventLog.WriteEntry("Name of WebPart",("Information of Exception: " + ex.Message), EventLogEntryType.Error) “ results in an error. What is the problem, and what should be done? A. There is a syntax error. B. There is a permission problem. C. There is a compilation error. D. Change the code to: "Pass Any Exam. Any Time." - www.actualtests.com

23

Microsoft 70-573: Practice Exam System.Diagnostics.EventLog.WriteEntry("Name of WebPart: ", " Information of Exception:", EventLogEntryType.Error) E. Use RunWithElevatedPrivileges delegate to run the code. F. Use RunWithAdministrationPrivileges delegate to run the code. Answer: B,E Explanation:

QUESTION NO: 23 DRAG DROP There is a Web Part named PassGuideWP. PassGuideWP calls a function PassGuideFn. The execution time of PassGuideFn should be displayed in the Developer Dashboard. How can this be achieved in VB?

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

24

Microsoft 70-573: Practice Exam

QUESTION NO: 24 DRAG DROP There is a Web Part Named PassGuideWP. PassGuideWP shows how many visitors the site has had. Which code should PassGuideWP have? Note: the label to used is named PassGuideNumberOfVisitors

"Pass Any Exam. Any Time." - www.actualtests.com

25

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

26

Microsoft 70-573: Practice Exam

QUESTION NO: 25 DRAG DROP An even receiver must be created. The operation must be canceled, and the user must redirected to the page “/_PassGuide/PassGuideErrorPage.aspx”, whenever the deleted field has the name PassGuide. What VB could should you use?

"Pass Any Exam. Any Time." - www.actualtests.com

27

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

28

Microsoft 70-573: Practice Exam

QUESTION NO: 26 DRAG DROP There is an Event Receiver named PassGuideEvRec. PassGuideEvRec has a field named Source and a field named Ogama. Whenever the Source field is altered and included the word JOKE then the Ogama field must be changed to FUNNY. What VB code achieves this?

"Pass Any Exam. Any Time." - www.actualtests.com

29

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

30

Microsoft 70-573: Practice Exam

QUESTION NO: 27 DRAG DROP There is a SharePoint list named BugBear. Users must not enter the word DOG in title of BugBear. Which VB code achieves this?

"Pass Any Exam. Any Time." - www.actualtests.com

31

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

32

Microsoft 70-573: Practice Exam

QUESTION NO: 28 DRAG DROP Exhibit: public PassGuideTimer () : base() { } public PassGuideTimer (SPWebApplication wApp)

There is a timer job named PassGuideTimer. PassGuideTimer must execute on the first free timer server only. PassGuideTimer has the two constructors displayed in the exhibit. How should you define the base class constructor?

"Pass Any Exam. Any Time." - www.actualtests.com

33

Microsoft 70-573: Practice Exam

Answer:

QUESTION NO: 29 There is a client application PassGuideClient. PassGuideClient remotely calls the BCS object model. A context is to be created. The context will request a cache refresh. What VB code should be used (in addition to line 1)?

"Pass Any Exam. Any Time." - www.actualtests.com

34

Microsoft 70-573: Practice Exam 1. DIM PassGuideContext As … 2. … A. New RemoteSharedFileBackedMetadataCatalog() B. New RemoteOfflineRuntime() C. New ClientContext(String.Empty) D. New ClientContext(String.Null) E. New RemoteOnlineRuntime() Answer: B Explanation: BCS - Business Connectivity Services

QUESTION NO: 30 DRAG DROP There is a group named PassGuideGroup. Using VB code you need to add a user PassGuideUser. Which code will achieve this?

"Pass Any Exam. Any Time." - www.actualtests.com

35

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

36

Microsoft 70-573: Practice Exam

QUESTION NO: 31 DRAG DROP There is a Web Part named PassGuideWP. PassGuideWP should create replica of the out-of-the box Contribute permission level. Which code should you use?

"Pass Any Exam. Any Time." - www.actualtests.com

37

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

38

Microsoft 70-573: Practice Exam QUESTION NO: 32 DRAG DROP There is a web Part named PassGuideWP. There is a group named PassGuideGroup. In the code you need to have a test to make sure that a user is a member of the PassGuideGroup. What code should you use?

Answer:

QUESTION NO: 33 There is a SharePoint list with the name of PassGuideList. PassGuideList has multiple columns, one of which is Joke. PassGuideList has 750,000 entries, out of which 150 has the value of MAYBE in the Joke column. These 150 items need to be accessed in the shortest time possible. Which steps do you need to take? Select three. A. Use code Dim PassGuideList1 As SPList = currentWeb.Lists("PassGuideList") B. Use code Dim PassGuideList1 As SPList = currentSite.Lists("PassGuideList") C. Use function PassGuideList1.GetItems and… D. Use function PassGuideList1.Items.GetDataTable() and… "Pass Any Exam. Any Time." - www.actualtests.com

39

Microsoft 70-573: Practice Exam E. Use collection PassGuideList1.Items and.. F. Use collection PassGuideList1.Fields and.. G. ..handle each item of it. H. ..retrieve the DataRowCollection I. ..use the SPQuery parameter. Answer: A,C,I Explanation:

QUESTION NO: 34 DRAG DROP There is a Web Part named PassGuideWP. PassGuideWP has a grid view named PassGuideGW. There is LINQ context named IntranetDataContext. PassGuideGW should only display data from Announcements where the data has an expire date greater than the current date. What code should be used?

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

40

Microsoft 70-573: Practice Exam

QUESTION NO: 35 DRAG DROP There is a SharePoint application named PassGuideWebApp. The URL of PassGuideWebApp is http://PassGuide. A MS .NET Framework application PassGuideApp will be run outside the SharePoint server. PassGuideApp will display the title of PassGuideWebApp. Within PassGuideApp you create a textbox textPassGuideTitle. What additional code is required?

"Pass Any Exam. Any Time." - www.actualtests.com

41

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

42

Microsoft 70-573: Practice Exam

QUESTION NO: 36 DRAG DROP There is a SharePoint site collection. The URL of this collection is http://PassGuide/employees. There is a MS :NET Framework console application PassGuideApp. PassGuideApp uses SharePoint client object model. Which code should be used for PassGuideApp for it to create a site?

"Pass Any Exam. Any Time." - www.actualtests.com

43

Microsoft 70-573: Practice Exam Answer:

QUESTION NO: 37 DRAG DROP There is a SharePoint site collection. The URL of this collection is http://PassGuide/employees. There is a MS :NET Framework console application PassGuideApp. PassGuideApp uses SharePoint client object model. Which code should be used for PassGuideApp for it to query Shared Documents for the specific document with a name of PassGuideDoc.doc?

"Pass Any Exam. Any Time." - www.actualtests.com

44

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

45

Microsoft 70-573: Practice Exam

QUESTION NO: 38 DRAG DROP There is a document library named PassGuideDocs. Employee is a field of PassGuideDocs. Employee is a required field. When accounting staff is entering new posts they sometime forget to enter anything in the Employee field. In this case the document is checked out. These checked out documents must be deleted. Which code should be used?

"Pass Any Exam. Any Time." - www.actualtests.com

46

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

47

Microsoft 70-573: Practice Exam

QUESTION NO: 39 DRAG DROP There is document library named PassGuideLibrary. There is document named PassGuideDocument.docx. PassGuideDocument.docx will be added to PassGuideLibrary. Both major and minor version management can be used for PassGuideLibrary. Which code should be used for adding PassGuideDocument.docx to PassGuideLibrary? Note: all users of PassGuideLibrary need to access PassGuideDocument.docx.

"Pass Any Exam. Any Time." - www.actualtests.com

48

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

49

Microsoft 70-573: Practice Exam

QUESTION NO: 40 DRAG DROP There is a third party user profile property with the name of PassGuideProperty. PassGuideWP, a Web Part, must be created. PassGuideWP must show the current user PassGuideProperty value. Which code will achieve this?

"Pass Any Exam. Any Time." - www.actualtests.com

50

Microsoft 70-573: Practice Exam

Answer:

QUESTION NO: 41 DRAG DROP There is a Web Part named PassGuideWP. The SharePoint site collection that is current must be updated. A term set should be add to the collection’s term store. Which could will achieve this? "Pass Any Exam. Any Time." - www.actualtests.com

51

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

52

Microsoft 70-573: Practice Exam

QUESTION NO: 42 DRAG DROP There is a Web Part named PassGuideWP. PassGuideWP must show all social tags that has added by the end users. How should you implement this?

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

53

Microsoft 70-573: Practice Exam QUESTION NO: 43 DRAG DROP There is a customer application PassGuideApp. PassGuideApp provides end users with the possibility to add a managed property. args[5] is used to specify the name of the managed propery. What code should be used in PassGuideApp?

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

54

Microsoft 70-573: Practice Exam

QUESTION NO: 44 DRAG DROP There is a Web Part named PassGuideWP. PassGuideWP is displaying everything created by one particular user. Which code should PassGuideWP have?

"Pass Any Exam. Any Time." - www.actualtests.com

55

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

56

Microsoft 70-573: Practice Exam QUESTION NO: 45 DRAG DROP There is a Web Part named PassGuideWP. PassGuideWP is displaying everything created by one particular user. Which code should PassGuideWP have?

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

57

Microsoft 70-573: Practice Exam

QUESTION NO: 46 DRAG DROP There is list named PassGuideList. PassGuideList has field named Employee. A Web Part, PassGuideWP, must update the Employee field value to YES for every post in PassGuideList. Which code should be used?

"Pass Any Exam. Any Time." - www.actualtests.com

58

Microsoft 70-573: Practice Exam

Answer:

QUESTION NO: 47 DRAG DROP There is a Web Part named PassGuideWP. PassGuideWP queries a customized list. Users with no permissions to the list must be able display the content of the list through PassGuideWP. You build code that is accessing the list. You need to build code to handle UnauthorizedAccessException, ie unauthorized user trying to access the list.

"Pass Any Exam. Any Time." - www.actualtests.com

59

Microsoft 70-573: Practice Exam Which code should be used? Note: assume the content of the list is to be stored in a SPUserToken named PassGuide.

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

60

Microsoft 70-573: Practice Exam

QUESTION NO: 48 DRAG DROP There is a Web Part named PassGuideWP. PassGuideWP uses Visual Basic to change the description of the SharePoint site that is current. Which code should you use to ensure that all users can use this code?

"Pass Any Exam. Any Time." - www.actualtests.com

61

Microsoft 70-573: Practice Exam

Answer:

"Pass Any Exam. Any Time." - www.actualtests.com

62

Microsoft 70-573: Practice Exam

"Pass Any Exam. Any Time." - www.actualtests.com

63