Sreejobs Logo
   For Latest Job Updates  
sreenutech.com Online Exams
Home Govt Jobs IT Fresher Jobs IT Exp Jobs IT Walk-Ins MBA Jobs BPO Jobs Register FAQ’s Post Job Contact Us
Search:
SreeJob Fees   Feeds
Hot Jobs
Welcome Guest
Login | Register
Total No Of Questions: 100.
1) You are creating a custom workflow action to be used in Microsoft SharePoint Designer reusable workflows. The action programmatically creates a SharePoint site named Site1 at a specific URL.The workflow actions schema file contains the following code segment. You need to ensure that users can specify the URL property of the action in SharePoint Designer.What should you add to the schema of the action?


2) You create a Web Part by using Microsoft Visual Studio 2010.You need to execute SPDisposeCheck.exe before the Web Part is deployed.What should you do?


3) You have a SharePoint site collection. The root Web of the site collection has the URL http://intranet.You plan to create a user solution that will contain a Web Part. The Web Part will display the title of the root Web. You write the following code segment for the Web Part. (Line numbers are included for reference only.) 01SPSite?currentSite?=?new?SPSite("http://intranet"); 02? 03Label?currentTitle?=?new?Label(); 04currentTitle.Text?=?currentSite.RootWeb.Title; You add the Web Part to a page in the root Web and receive the following error message: “Web Part Error:Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred.” You need to prevent the error from occurring.What should you do?


4) You need to create a Web Part that displays all content created by a specific user. You write the following code segment. (Line numbers are included for reference only.) 01private?void?keywordQueryExecute(string?searchAuthor) 02{ 03 KeywordQuery?kRequest?=?new?KeywordQuery(ServerContext.Current); 04? 05 kRequest.QueryText?=?strQuery; 06 ResultTableCollection?resultTbls?=?kRequest.Execute(); 07} Which code segment should you add at line 04?


5) You create a client application that remotely calls the Business Connectivity Services (BCS) object model.You need to create the context that will be used to request a cache refresh. Which code segment should you use?


6) You are creating a Business Connectivity Services (BCS) entity. You need to ensure that all data returned by the entity is available in search results. Which type of method instance should you implement?


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


8) You plan to create a custom approval workflow. The workflow approvers will enter their employee number in the edit task form.You need to ensure that the onTaskChanged1_Invoked method of the workflow retrieves the value of the employee number.Which object should you use?


9) You have a SharePoint site collection that has the URL http://contoso/sites/finance. You are creating a Microsoft .NET Framework console application that will use the SharePoint client object model to create a site in the site collection. The application contains the following code segment. (Line numbers are included for reference only.) 01ClientContext?cCtx?=?new?ClientContext("http://contoso/sites/finance"); 02Web?root?=?cCtx.Site.RootWeb; 03cCtx.Load(root); 04WebCreationInformation?webInfo?=?new?WebCreationInformation(); 05webInfo.Title?=?"site1"; 06webInfo.Url?=?"site1"; 07webInfo.WebTemplate?=?"MPS#2"; 08root.Webs.Add(webInfo); 09? 10cCtx.Dispose(); You need to ensure that the application creates the site.Which code segment should you add at line 09?


10) You create a Web Part that programmatically updates the description of the current SharePoint site.The Web Part contains the following code segment. (Line numbers are included for reference only.) 01SPSecurity.RunWithElevatedPrivileges(delegate() 02{ 03 SPSite?currSite?=?SPContext.Current.Site; 04 SPWeb?currWeb?=?SPContext.Current.Web; 05 using?(SPSite?eSite?=?new?SPSite(currSite.ID)) 06 { 07 using?(SPWeb?eWeb?=?eSite.OpenWeb(currWeb.ID)) 08 { 09 eWeb.AllowUnsafeUpdates?=?true; 10 currWeb.Description?=?"Test"; 11 currWeb.Update(); 12 eWeb.AllowUnsafeUpdates?=?false; 13 } 14 } 15} 16); Users report that they receive an Access Denied error message when they use the Web Part.You need to ensure that all users can use the Web Part to update the description of the current site.What should you do?
Page 1 of 10
Home | Register for Job Updates | Contact Us