Question - Define access modifiers.
Answer - Access modifiers are used to control the scope of type members.
There arefive access modifiers that p rovide varying levels of access.
Public (public), Friend (internal), Private (private), Protected (protected), and Protected Friend (protected internal).
Question - Write difference between overloading and overriding.
Answer - Overriding - Methods have the same signature as the parent class method.
Overloading - Methods have different parameters list or type or the return type.
Question - Write namespace for user locale in ASP.NET.
Answer - System.Web.UI.Page.Culture
Question - How do you implement inheritance in .NET?
Answer - In C#.NET, we implement using ":"
In VB.Net we implements using "Inherits" keyword.
Answer - System.Web.UI.Page.Culture
Question - How do you implement inheritance in .NET?
Answer - In C#.NET, we implement using ":"
In VB.Net we implements using "Inherits" keyword.
Question - Explain the differences between Server-side and Client-side code.
Answer - Server-side code executes on the server.
Client-side code executes in the client's browser.
Answer - Server-side code executes on the server.
Client-side code executes in the client's browser.
Server.Transfer and Response.Redirect.
Server.Transfer
Transfers page processing from one page directly to the next page.
No round-trip back to the client's browser.
Faster response with lesser overhead on the server.
Server.Transfer does not update the clients url history list or current url.
Response.Redirect
Used to redirect the user's browser to another page or site.
Performs a trip back to the client where the client's browser is redirected to the new page.
The user's browser history list is updated to reflect the new address.
Server.Transfer
Transfers page processing from one page directly to the next page.
No round-trip back to the client's browser.
Faster response with lesser overhead on the server.
Server.Transfer does not update the clients url history list or current url.
Response.Redirect
Used to redirect the user's browser to another page or site.
Performs a trip back to the client where the client's browser is redirected to the new page.
The user's browser history list is updated to reflect the new address.
Question - Define ADO.NET Dataset.
Answer - A Dataset can represent an entire relational database in memory, complete with tables, relations, and views. A dataset is designed to work without any continuing connection to the original data source.
You can use For Each loops to move through the data in the dataset.
Question - Define global.asax in ASP.NET.
Answer - The Global.asax is including the Global.asax.cs file.
You can implement application and session level events using global.asax.
Question - What are the Application_Start and Session_Start subroutines used for?
Answer - These subroutines set the variables for the Application and Session objects.
Question - Define inline code and code behind.
Answer - Inline code written along side the html in a page.
Code-behind is code written in a separate file and referenced by the .aspx page.
Question - What is MSIL?
Answer - MSIL is the Microsoft Intermediate Language.
.NET compatible application will get converted to MSIL on compilation.
MSIL gets converted into machine language or native code by JIT compiler.
Question - Name the class Web Forms inherit from.
Answer - The Page class.
Answer - A Dataset can represent an entire relational database in memory, complete with tables, relations, and views. A dataset is designed to work without any continuing connection to the original data source.
You can use For Each loops to move through the data in the dataset.
Question - Define global.asax in ASP.NET.
Answer - The Global.asax is including the Global.asax.cs file.
You can implement application and session level events using global.asax.
Question - What are the Application_Start and Session_Start subroutines used for?
Answer - These subroutines set the variables for the Application and Session objects.
Question - Define inline code and code behind.
Answer - Inline code written along side the html in a page.
Code-behind is code written in a separate file and referenced by the .aspx page.
Question - What is MSIL?
Answer - MSIL is the Microsoft Intermediate Language.
.NET compatible application will get converted to MSIL on compilation.
MSIL gets converted into machine language or native code by JIT compiler.
Question - Name the class Web Forms inherit from.
Answer - The Page class.
Explain different IIS isolation levels in ASP.NET- Low (IIS process A), Medium (Pooled), High (Isolated)
Answer - Low (IIS Process):
This is the fastest and the default IIS4 setting. ASP pages run in INetInfo.exe and so they are executed in-process. If ASP crashes, IIS too does and must be restarted.
Medium (Pooled):
This IIS setting is more reliable. In this if ASP crashes, IIS does not. In this, the ASP applications share the same process, so a web site can run with just IIS and ASP process. IIS5 supports this setting and is the default setting.
This IIS setting is more reliable. In this if ASP crashes, IIS does not. In this, the ASP applications share the same process, so a web site can run with just IIS and ASP process. IIS5 supports this setting and is the default setting.
High (Isolated):
This setting runs in MTS.EXE in IIS4 and in DLLHOST.EXE in IIS5. If one ASP application crashes, IIS or other ASP applications don’t crash. Each ASP application runs out-process in its own space.
This setting runs in MTS.EXE in IIS4 and in DLLHOST.EXE in IIS5. If one ASP application crashes, IIS or other ASP applications don’t crash. Each ASP application runs out-process in its own space.
Question - What is Shared (static) member?
Answer - Itbelongs to the type but not to any instance of a type.
Itcan be accessed without creating an instance of the type.
It can beaccessed using the type name instead of the instance name.
Itcan't refer to any instance data.
Answer - Itbelongs to the type but not to any instance of a type.
Itcan be accessed without creating an instance of the type.
It can beaccessed using the type name instead of the instance name.
Itcan't refer to any instance data.
Question - What is the transport protocol you use to call a Web service?
Answer - SOAP (Simple Object Access Protocol) is the preferred protocol.
Answer - SOAP (Simple Object Access Protocol) is the preferred protocol.
Question - What is Option Strict used for?
Answer - Option Strict On enables type checking at design time andprevents type mismatch bugs.
Answer - Option Strict On enables type checking at design time andprevents type mismatch bugs.
Question - Define Boxing and Unboxing.
Answer - Boxing allows you to treat a value type the same as a reference type.
Unboxing converts a boxed reference type back to a value type.
Question - What does WSDL stand for?
Answer - Web Services Description Language.
Question - Define ViewState in ASP.NET.
Answer - It allows the state of objects (serializable) to be stored in a hidden field on the page.
It is transported to the client and back to the server, and is not stored on the server or any other external source.
It is used to retain the state of server-side objects between postbacks.
Question - What does WSDL stand for?
Answer - Web Services Description Language.
Question - Define ViewState in ASP.NET.
Answer - It allows the state of objects (serializable) to be stored in a hidden field on the page.
It is transported to the client and back to the server, and is not stored on the server or any other external source.
It is used to retain the state of server-side objects between postbacks.

0 Comments:
Post a Comment