SharePoint Developer Interview Questions

Q. What is a Delegate control?
Ans.
A Delegate Control is a good a way to override the existing controls\components in Out-of-Box SharePoint. SharePoint specify some important components like search box, SharePoint Page header, GlobalNavigation etc as Delegate controls. These Delegate controls are based on numbered sequences which can be overridden while specifying your own control. So for example you want to add a new search control on your SharePoint site, you can override tag in your elements.xml with sequence number greater than the original search input box.

Q. What is the difference when using Using() Vs Dispose() Vs Try / finally while developing SharePoint Components.
Ans.
By "Using" you can automatically dispose of SharePoint objects. You use try - catch and finally blocks when you need to handle exceptions.

Q. How would you know the Potential memory leaks?
Ans.
You can check in Log files or can use the SharePoint Dispose Checker Tool.

Q. Do you about User Information List in SharePoint?
Ans.
This is a Hidden List in SharePoint accessible by Site/_catalogs/users/simple.aspx.You can query this list with User ID for user's Name, Picture Url etc.

Q. What is the difference between targeting Audience Vs SharePoint Group.
Ans.
With Audience group you can set rules but with SharePoint groups you can just target with the whole list.

Q. How do add Jquery or JavaScript in your SharePoint Site?
Ans.
You can use Delegate Control "AdditionalPageHead" to add JavaScript or Jquery to all SharePoint Pages.
example,
<SharePoint:DelegateControl runat="server" ControlId="AdditionalPageHead"
AllowMultipleControls="true"/>

Q. How do you Change the Datasource for Global and Quick Launch Navigation?
Ans.
You can Change the DataSourceID for the Global and QuickLaunch navigation with a custom Navigation source.

Q. How do you Override the Navigation For example Quick Launch with your Own control.
Ans.
In SharePoint, you can override Navigation Providers with your own Custom Providers.

Q. Can you add left navigation in your Custom aspx page which you deployed in SharePoint?
Ans.
Yes, You need to add the master Page tags in your custom aspx page and add the content of aspx page in MainContent area.

3 comments:

Disclaimer

This is a personal weblog. The opinions expressed here represent my own and not those of my employer or anyone else. Should you have any questions or concerns please e-mail me at sharepointprogrammingblogger@gmail.com .

Copyright (c) 2010 @ myshaepointwork.blogspot.com. All rights are reserved.Do Not Copy.

@ Learning SharePoint.com