Barclays ASP.Net Interview Questions and Answers



1- What is the diff between User Control and Custom Control?
2 -I want to design a control that will be used across the team considering the time constraint
   what will you prefer
3- I want to design a custom control that will be a text box when the user type in the text box the value displayed should be
   in ##,##,### format but when he tab out the actual value should be displayed eg AA, BB, ABCD
4- What is the difference between serer.transfer and server.execute
5- I am having a grid view containing a textbox there is a button outside the gridview on click of the button
   i want to highlight the row for which the text box do not contain valid numbers.
6- How does http pipeline works
7- What are the different validation control
8- I am having a dropdown list containing city on which i am having validator set i do not want to fire validation on click of button
9- What is cross page posting
10- Diff technique used for cross page post back
11- I am having a GridView containing 5 rows in the last column i am having delete image on click of the image i want a confirmation popup
    if user select yes then the row should get deleted write the code for the same
12- Whats the diff bet Response.redirect and server.Transfer
13- How many web config files i can have in my project and how to access the specific config file?
14- What are HttpHandlers and HttpModules?
15- What are GenericHttpHandlers?
16- What is the difference bet WebFarm and WebGarden
17- What is AppPool and its use
18- How to increase the WorkerPorcess for a AppPool
19- Does increasing my WorkerProcess result in better response time?

C#


what is the difference between Metadata and  Manifest?

What is the difference between const and readonly field?
I am having static readonly field in the base class constructor can my derived class constructor change the value of readonly ppty in base class
What are delegate how do you declare a generic delegate?

Whats the output of the below program

public void Main()
{
                int i = 10;
                int j = 15;
                Print(ref i, out j)
                console.writeline(i,j);
}
Print(ref int i, out int j)
{
i = 100;
j = 200
}

Class A

{
               
}
Class B
{

}

Main()
{
A = new B() // Will it compile ??
}

How does Garbage Collector resolves circular reference issue.

What is IDispose pattern
what is difference between Dispose and Finalize
What is FrechableQueue
How did you implement singleton pattern in your project.
What is diff bet Delegate, Anonymous method and Lambda expression?

What is the difference between IEnumerable and IQueryable interface.
Can I use linq query for a type derived from IEnumerable?
How does Default.cs mappes on the server with the aspx page other then inherits page property
Can I have private constructor inside a static class (Static class do not support any constructor)
In which case you will be making the constructor private?
How to set a culture for a particular page?

In the below code you do not want to expose the DIV method to the outside world how will you do that not using private keyword
Interface ICAL
{
                Void ADD();
Void sub();
}
Class Math(): ICAL
{
                Void add()
                {
               
}
Void Sub()
{

}
Void DIV()
{

}             
}

How does AJAX work how did you implemented AJAX in your project?

SQL


Write a Query for which no department is associated with the exployee

Write a Query to get Second highest sal
What are clustered and non clustered index
What are Triggers and Type of triggers

3 comments: