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 need to create a Web Part that displays all of the content created by a specific user. You write the following code segment. (Line numbers are included for reference only.) 01private?void?FullTextQueryExecute(string?searchAuthor) 02{ 03FullTextSqlQuery?qry?=?new?FullTextSqlQuery (ServerContext.GetContext(SPContext.Current.Site)); 04qry.ResultTypes?=?ResultType.RelevantResults; 05? 06qry.QueryText?=?strQuery; 07ResultTableCollection?results?=?qry.Execute(); 08} Which code segment should you add at line 05?


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


3) You are creating an event receiver. The event receiver will have a field named Title and a field named Priority. You write the following code segment for the event receiver. (Line numbers are included for reference only.) 01public?override?void?ItemUpdating(SPItemEventProperties?prop) 02{ 03 base.ItemUpdating(prop); 04? 05? 06} You need to ensure that when the Title field is changed to include the word IMPORTANT, the Priority field is set to URGENT. Which code segments should you add at lines 04 and 05?


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


5) You create a Microsoft .NET Framework console application that uses a Representational State Transfer (REST) API to query a custom list named Products.The application contains the following code segment. AdventureWorksDataContext?codc?=?new?AdventureWorksDataContext (new?Uri("http://contoso/_vti_bin/listdata.svc")); codc.Credentials?=?CredentialCache.DefaultCredentials; You need to read all items in Products into an object. Which method should you use?


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


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


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


9) You create a custom Web Part.You need to verify whether the Web Part causes any memory leaks.Which tool should you use?


10) You are creating an application.You develop a custom control that renders a contextual tab.The control contains the following code segment. (Line numbers are included for reference only.) 01protected?override?void?OnPreRender(EventArgs?e) 02 { 03 SPRibbon?curRibbon?=?SPRibbon.GetCurrent(this.Page); 04 05 curRibbon.MakeContextualGroupInitiallyVisible ("SP.Ribbon.ContextualGroup",?string.Empty); 06 base.OnPreRender(e); 07 }You need to ensure that when the custom control is rendered, the custom contextual tab appears in the Ribbon. Which code segment should you add at line 04?
Page 1 of 10
Home | Register for Job Updates | Contact Us