.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Post New Question Subscribe to Interview Questions
Quick Links For Interview Questions Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  OOPs  JQuery  JavaScript/VBScript
NetworkingAptitudeOthers  All    

Interview Questions And Answers

What is .mdf and .ldf file in SQL Server

Author: abhays          Posted Date: April 14, 2014    Category: Sql Server     Points: 40

The .mdf and .ndf are the data files of the database, where all of the tables, indexes (other than fulltext catalogs), stored procedures, etc. are stored. The .mdf is the primary data file and the .ndf only exists if a new file group is created.

The ldf is the transaction log. The transaction log is where all transactions are wirtten to. Upon a checkpoint the contents of the transaction log, .ldf is written to the appropriate .mdf and/or .ndf.

Difference between IEnumerable and IComparable

Author: abhays          Posted Date: April 10, 2014    Category: .NET Framework     Points: 40

IComparable is implemented by types that you wish to give them the ability to compare themselves to other instances of the same type, when sorting for example.

IComparer is implemented by a type that you wish to use as a sorting predicate when sorting a collection. This allows you to create several classes that will compare the same two instances in different ways thus creating a different sort order.

Array.Sort will use each element's IComparable implementation to sort the values or it can receive an IComparer to choose the order.

For more information read How to use the IComparable and IComparer interfaces in Visual C#

IEnumerable is an interface that represents the ability to iterate through the collection using an iterator. For example, anything that implements IEnumerable can be iterated through using a for-each loop. Both the Array and List<T> classes implement the interface, and so can be used in a for-each loop.

It isn't a collection in itself, it just represents a behaviour that actual collections may (and usually do) have.

The generic equivalent of IEnumerable (IEnumerable<T>) also serves as the source of many LINQ extension methods also, as LINQ extensions usually require the ability to enumerate over collections, and anything that implements IEnumerable<T> will have that behaviour.

What is difference between build and rebuild

Author: abhays          Posted Date: April 07, 2014    Category: .NET Framework     Points: 40

Build means compile and link only the source files that have changed since the last build, while Rebuild means compile and link all source files regardless of whether they changed or not. Build is the normal thing to do and is faster. Sometimes the versions of project target components can get out of sync and rebuild is necessary to make the build successful. In practice, you never need to Clean.

A build compiles only the files and projects that have changed. This is generally pretty fast. A rebuild rebuilds all projects and files in the solution irrelevant of whether they have changed or not. You normally do a rebuild when many files have changed (especially outside the IDE) and you want to ensure that all the changes are rebuilt. A rebuild can take a while for large projects so normally is only used periodically in the IDE. However for automated builds a rebuild is normally the only type of build done since you always want all the source rebuilt.

Difference between View Permission and Read Permission

Author: abhays          Posted Date: April 02, 2014    Category: SharePoint     Points: 40

View Permission - Users with Read only permissions can view the content using Client side application like Excel or InfoPath. It allows users to open a Web site, list, or folder in order to access items inside that container. View items in lists, documents in document libraries, and view Web discussion comments.

Read Permission - Users with View only permissions cannot view the content using Client side application like Excel or InfoPath. Like they can view only Server side rendering items.It allows Users to View items in lists, documents in document libraries, and view Web discussion comments. Open Items and View the source of documents with server-side file handlers.

What permissions do you need to install a webpart or any custom solution in SharePoint 2010 using PowerShell ?

Author: abhays          Posted Date: March 31, 2014    Category: SharePoint     Points: 40

For using Windows PowerShell for SharePoint 2010 Products, a user must be a member of the SharePoint_Shell_Access role on the configuration and content database. In addition to this, the user must also be a member of the WSS_ADMIN_WPG local group on the computer where SharePoint 2010 Products is installed. See Details
Permissions for Windows PowerShell - SPShellAdmin

How to list all the commands in PowerShell ?

Author: abhays          Posted Date: March 31, 2014    Category: SharePoint     Points: 40

We can list all the commands in PowerShell Get-Command * commands

What is a document workspace in SharePoint?

Author: abhays          Posted Date: March 31, 2014    Category: SharePoint     Points: 40

Document workspaces in SharePoint consists of information about a single or multiple documents.

ConcurrencyMode in WCF.

Author: Ashutosh Jha          Posted Date: March 31, 2014    Category: WCF     Points: 40

This property indicates how service supports thread. This property has three values the default is PerSession.
1. Single
2. Multiple
3. Reentrant

In which event are the controls fully loaded

Author: Ashutosh Jha          Posted Date: March 31, 2014    Category: ASP.Net     Points: 40

Page load event guarantees that all controls are fully loaded. Controls are also accessed in Page_Init events but you will see that view state is not fully loaded during this event.

What is ContentPresenter in WPF?

Author: Ashutosh Jha          Posted Date: March 31, 2014    Category: WPF     Points: 40

We genrally use the ContentPresenter in the ControlTemplate of a ContentControl to specify where the content is to be added. Every ContentControl type has a ContentPresenter in its default ControlTemplate.

« Previous12345678910….438439Next »

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend