Friday, 26 April 2013

Top 20 ASP.NET Interview Questions And Answers For Freshers/Experienced

2, 00,000+ Top Jobs Waiting For You – Submit Your Resume!!!

Top 20 ASP.NET Interview Questions And Answers

ASP.NET is the web developing language which is used in IT industries. Mostly web developer uses ASP.NET language to make attractive web page. There are also so many webs developing language but student mainly select this language because it is easy to grasp. 

Before making a web developer in ASP.NET candidate have to face an interview. Interview is just formal conversation between the Interviewee and Interviewer. Interviewer put some question to the candidate to check the basic knowledge regarding the subject.

Interview Question is the main problem for the candidate but we are here to help you by giving some interview question regarding ASP.NET

Some Important Question Regarding an Interview

Q1. What is ASP.NET?

Ans.) ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an Internet server.

Q2. What is Difference between Namespace and Assembly?

Ans.) Namespace is a collection of different classes. Whereas an assembly is the basic building blocks of the .net framework

Q3. What’ is the sequence in which ASP.NET events are processed?

Ans.) Following is the sequence in which the events occur:-
  • Page_Init
  • Page Load
  • Control events
  • Page- Unload event
Page_init event only occurs when first time the page is started, but Page Load occurs in subsequent request of the page.

Q4. Explain “AutoPostBack”?

Ans.) If we want the control to automatically post back in case of any event, we will need to check this attribute as true. Example on a Combo Box change we need to send the event immediately to the server side then set the “AutoPostBack” attribute to true.

Q5. How is .NET able to support multiple languages?

Ans.) A language should comply with the Common Language Runtime standard to become a .NET language. In .NET, code is compiled to Microsoft Intermediate Language (MSIL for short). This is called as Managed Code. This Managed code is run in .NET environment. So after compilation to this IL the language is not a barrier. A code can call or use a function written in another language.

Q.6 How can we identify that the Page is Post Back?

Ans.) Page object has an "IsPostBack" property, which can be checked to know that is the page posted back.

Q7. What is smart navigation? 

Ans.) The cursor position is maintained when the page gets refreshed due to the server side validation and the page gets refreshed.

Q8. What is the difference between early binding and late binding?

Ans.) Calling a non-virtual method, decided at a compile time is known as early binding. Calling a virtual method (Pure Polymorphism), decided at a runtime is known as late binding.

Q9. What is Common Type System?

Ans.) The common type system is a rich type system, built into the common language runtime, which supports the types and operations found in most programming languages.

Q10. How can you display all validation messages in one control?

Ans.) The Validation Summary control displays all validation messages in one control.

Ques.11) How information about the user's locale can be accessed?

Ans.) The information regarding a user's locale can be accessed by using the System. Web. UI. Page. Culture property

Ques. 12) What is the behavior of a Web browser when it receives an invalid element?

Ans.) The behavior of a Web browser when it receives an invalid element depends on the browser that you use to browse your application. Most of the browsers ignore the invalid element; whereas, some of them display the invalid elements on the page.

Ques.13) What are the advantages of the code-behind feature?

Ans.) The code-behind feature of ASP.NET offers a number of advantages:
  • Makes code easy to understand and debug by separating application logic from HTML tags
  • Provides the isolation of effort between graphic designers and software engineers
  • Removes the problems of browser incompatibility by providing code files to exist on the Web server and supporting Web pages to be compiled on demand.
Ques.14) What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

Ans.) When a browser requests an .aspx file then the server returns a response, which is rendered into a HTML string.

Ques.15) How can you display all validation messages in one control?

Ans.) The ValidationSummary control displays all validation messages in one control.

Ques.16) What is ViewState?

Ans.) The ViewState is a feature used by ASP.NET Web page to store the value of a page and its controls just before posting the page. Once the page is posted, the first task by the page processing is to restore the ViewState to get the values of the controls.

Ques. 17) How can you register a custom server control to a Web page?

Ans.) You can register a custom server control to a Web page using the @Register directive.

Ques.18) What does the Orientation property do in a Menu control?

Ans.) Orientation property of the Menu control sets the horizontal or vertical display of a menu on a Web page. By default, the orientation is vertical.

Ques.19) Differentiate between client-side and server-side validations in Web pages

Ans.) Client-side validations take place at the client end with the help of JavaScript and VBScript before the Web page is sent to the server. On the other hand, server-side validations take place at the server end.

Ques.20) Suppose you want an ASP.NET function (client side) executed on the MouseOver event of a button. Where do you add an event handler?

Ans.) The event handler is added to the Add() method of the Attributes property.

Interview Questions and Answers For

Top Companies Are Hiring On Monster.Com, Register Now To Apply!!!


Post a Comment

Don't Add Comment with Spam Purpose