Thursday, 25 December 2014

Few more interview Questions :

Asp.net :
RowDataBound.
what is Session ? Seesion[var] -- what does this mean..?
how do you store value inside a session.
HttpHandler -- Example
HttpModule -- Example
EnableSessionState -- pagewise and for the entire site.
Webfarms :  http://www.codeproject.com/Articles/114910/What-is-the-difference-between-Web-Farm-and-Web-Ga
webgarden :  http://www.codeproject.com/Articles/114910/What-is-the-difference-between-Web-Farm-and-Web-Ga
Windows authentication
FormsAuthentication
ViewState can store an object ? yes http://msdn.microsoft.com/en-us/library/ms178198(v=vs.85).aspx
Application Pool -- can one app pool have more than one application. What does this pool contain.
worker process
Threads
Find Control in the page.
FindControl of a master page
How will yoiu get the control of a master page inside your pageload
Can you create a server control?
Causes Validation
Dfference between a server control and user control.
In user control how too acces the page controls.
session state -- different modes.
IF you dont want to use the session in one particular page what will you do.
what happens when web.config is modified and the user is already logged in.
how many worker processa are there in Application pool :only 1

C# :
const -- uses
readonly -- uses
abstract class
interface
method overriding -- example. where to use when
method overloading -- example.where to use when
method hiding and example.where to use when
IEnumerable and IQueryable.[lazy loading] http://www.codeproject.com/Articles/732425/IEnumerable-Vs-IQueryable
why do we need abstract class
can a class have virtual methods.
string
how will you find the number of  vowels in a string. [http://stackoverflow.com/questions/18109890/c-sharp-count-vowels]
Factory pattern -- where do we use it.
Singleton-- where do we use it
can we instantiate an abstract class.
If not the what does classA a = new B(); will say ?
What are delegates 
What are multicast delegates.
If an exception occurs in multicastdelegates will the next delegates execute..?
what is an event..? 
xml serialisation
datacontract serialisation
Fault Exception.
why do we need datacontract serialisation
what is messagecontract.
What is shallow copy and deep copy
Memberwise clone 
how can you copy the data of an object into another object. http://msdn.microsoft.com/en-us/library/system.object.memberwiseclone(v=vs.110).aspx;
what is reflection
some example of the reflection in Page class.
What is serialization ?http://msdn.microsoft.com/en-IN/library/ms233843.aspx
what is the difference between properties and methods.?when to choose what ? http://msdn.microsoft.com/en-us/library/vstudio/ms229054(v=vs.100).aspx

SQL Server :
What is a Function?
What is a Stored procedure?
Different types of functions : Scalar and Table valued functions?
How to remove the duplicate entries in the table.?
Ans: http://www.besttechtools.com/articles/article/sql-query-to-delete-duplicate-rows
What is a Cursor?
Alternate for a cursor?
Distinct rows in a table without using distinct ?.-- Group by
What is rowcount


JQuery :
Differences Windows.Onload and $.Document.Ready function : Ans:http://www.dotnetbull.com/2013/08/document-ready-vs-window-onload.html
How to get the list of all the divs in a page ?
How to set alternate colors for the divs in the page ?



Tuesday, 23 December 2014

Interview Questions : PART I 

I have consolidated all the interview questions which were asked in the recent times. Just have a quick glance at this list before you go for any interview. This will help you for sure. All the very best !!!


1) Difference bewtween functions and storedprocedures in SQL Server ?
2) Can we update/insert./delete rows in views ?
3) Where is the explain plan in sqlserver ?
4) What is webapi..?
5) What is wcf..?
6) Which one is used where.?
7) MVC and webforms differences
8) What is dependency injection ?
9) What is REST?
10) jquery ajax ? how to handle success and errors ? 
11) How do you throw exceptions in Jquery?
12) MVC -- explain what are the advantages of using mvc?
13) I have a html table which has 5 rows . i dont have ids for either table or any other contents inside the table.. each row is having a button and a textbox. when click on one button you have to fill the textbox with that row number. How can you do that.
14) How to get the list of divs in the page ?
15) How do you improve the performance of a query in sql server ?
16) Advantage of using char over varchar ?