Friday 31 October 2014

ASP.Net Interview Questions

Did you use user controls.

Yes, I used user controls. I can modify the original control behavior according to the requirement. You can then treat the user control as a unit and define properties and methods for it.

What is JavaScript?

JavaScript is used for client side validation and interact with user. It is better performance than passing into server. 

Rate yourself out of 10 in C#, ASP.NET, SQL SERVER, JavaScript; query in which 10 is highest?

I told 6 for all the technologies. But they asked what about remaining 4 I told that these technologies are evolving as you know often new versions are released so I need to update the latest version.

How you will handle exception in sql? Whether you will save the exception in log files or any other ways which you give exceptions details to team member for anlaysing?

As I told my role is team lead in project handling they asked this question how you give the exceptions details to your team member. I told through log files we used to catch the error exceptions.

What design patterns you are using? Like three-tier architecture or MVC?

I told that I used three tier architecture. 

Explain about the three tier architecture?

Three tier architecture contains three layer – presentation layer, Business Logic Layer, Data Access Layer. 

Which framework are using in your project?

I told that I am using .Net framework 4.0 and visual studio 2010.

Did you have knowledge in jquery?

jQuery is a multi-browser JavaScript library designed to simplify the client-side scripting of HTML. It is designed to make it easier to navigate a document, select DOM elements, create animations, handle events, and develop Ajax applications.

For project handling did you used any software or any other software to handle the project?

I told that i have inhouse software in which we will update the status of the project.

How to close the sqldatareader?

sqldatareader.close();

If i forgot to close the sqlconnection. What error it will show to the user?

Max pool size reached error will display.

Did you use webservices or WCF?

I told I used werbservice in my project.

Did you have direct client interaction for getting the requirement or updating in requirement?

Yes, I have direct client interaction to get the requirement and updating from the client.

What is partial class?

Partial class is a split of single class. Very large classes difficult to navigate in an editor for a single file. Allowing multiple developers to work on a single class at the same time. Allowing separation between class interface and the implementation-related definitions.

Diffence between DataReaderand Dataset


DataReader is connected architecture and dataset is disconnected architecture.
DataReader is better performance and dataset is lower performance.
DataReader able to fetch record in single direction (forward only) whereas dataset able to fetch in bi-direction.
Using DataReader records are readonly whereas dataset records can able to add, update and delete.


What is Managed code?

The code that targets CLR is known as Managed code.

What is common Language Runtime (CLR)?

Common Language Runtime is used to run the application and compile the code into intermediate language. It provides exception handling, enhanced security, versioning and deployment support, a simplified model for component interaction, and debugging and profiling services.

How many web.config file an application can contain?

For each application only one web.config file will be present.

What are types of Authentication?
Three type of Authentication. They are Windows, Forms, Passport authentication.

What is Windows Authentication?

Windows Authentication method uses Windows accounts for validating users' credentials. This type of authentication is very good for intranet Web sites where we know our users. 

Difference between List and Arrays?

Array is a collection of homogeneous elements. List is a collection of heterogeneous.
Array memory allocation is static and continuous whereas list memory collection is dynamic random.
Array size has to be specified while creating whereas list size cannot be determine at dynamic.
User need not keep track of next memory allocation for arrays. User has to keep track of location where next memory is allocated.

What is view state?

View State is client side state management mechanism. It can store the page value at the time of post back (Sending and Receiving information from Server) of your page. ASP.NET pages provide the ViewState property as a built-in structure for automatically storing values between multiple requests for the same page.

What is session?

Session object is used to store and retrieve information about particular user session. It is used to persist information throughout the user session.

Difference between Response.Redirect and server.transfer.

Response.Redirect() will redirect to a new page, update the address bar and add it to the Browser History. On your browser you can click back.

Server.Transfer() does not change the address bar, you cannot hit back.


What is server.exceute()?

When Server.Execute is used, a URL is passed to it as a parameter, and the control moves to this new page. Execution of code happens on the new page. Once code execution gets over, the control returns to the initial page, just after where it was called. However, in the case of Server.Transfer, it works very much the same, the difference being the execution stops at the new page itself.


What is Normalization?

It is used for effective organizing and binding of data is called normalization. Two goal of normalization. Eliminate redundant data and ensure relational data.

Difference between query and stored procedure?

In stored procedure you don't have to recompile your C# app whenever you want to change some SQL and better performance. You end up reusing SQL code. Using query, it will take more time to execute than stored procedure.


What is boxing and unboxing?

Boxing is the process of converting a value type to the reference type object whereas unboxing is converting reference type to a value type. 

What are types of Access Specifiers?

Private, public, protected and internal


what are the types of polymorphism?

There are two types of polymorphism.
1, Compile time polymorphism.
2, Run time polymorphism.

What are generics?

Generics are used to design classes and methods. It is used to maximize code, reuse, type safety and performance. It is used to create collection of classes.

Left outer join in Sql server?

Left outer join is used to retrieve all the data from first table and unmatched table of the second table.

How you will bind the data using SqlDataReader?

Creating an object for the sqldatareader then calling object with read method through which we can bind the data. 

What is your achievement in your company?

I told I received best performer award from my managing director and everyone respect me in my office. 

What is ADO.NET?

ADO.NET is used to access data and data services based on dataset or datareader. It is commonly used by programmers to access and modify data stored in relational database systems.

What is caching in asp.net?

Caching is used to store data temporarily where data will be static. So that it will reduce the overhead of the application and boost the performance of the application.

What is difference between session and caching?


Cache will always be in memory even if you use a separate Session State Server or SQL Server, and thus retain its performance advantages.

0 comments:

Post a Comment