|
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.
Question -
What is the transport protocol you use to call a Web
service? 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.
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 is the lifespan for items stored in
ViewState? Answer
- Items stored in the ViewState exist for the
life of the current page. This includes
postbacks (to the same page).
Question -
Define EnableViewState
property. Answer
- It allows the page to save the users input
on a form across postbacks. It saves the
server-side values for a given control into ViewState, which
is stored as a hidden value on the page before
sending the page to
the clients browser. When the page is
posted back to the server, the server control is
recreated with the state stored in
viewstate.
Question -
What are Delegates? Answer
- Delegates provide the functionality behind
events. A delegate is a
strongly typed function pointer. Invoke a method
without making an explicit call to that
method. In Visual Basic
.NET, the role of the delegate is largely behind the scenes
Question -
What are Classes?
Answer
- Classes are the blueprints for objects.
A
class acts as a template for any number of distinct objects.
Question -
What is Encapsulation? Answer
- The data of an object should never be made
available to other objects.
Question -
Different types of Session state management options
available with ASP.NET? Answer
- ASP.NET provides In-Process and
Out-of-Process state management. In-Process stores
the session in memory on the web server. Out-of-Process
Session state management stores data in an external data
source. The external data
source may be either a SQL Server or a State Server
service. Out-of-Process
state management requires that all objects stored in session
are serializable.
Question -
What methods are fired during the page
load? Answer
- Init() - when the page is
instantiated. Load() - when the
page is loaded into server memory. PreRender() - the
brief moment before the page is displayed to the user as
HTML Unload() - when
page finishes loading.
Question -
Explain ADO.NET.
Answer
- It is data-access technology, primarily
disconnected and designed to provide efficient, scalable
data
access. The disconnected
data is represented within a DataSet object. A data provider is
a set of classes that provide access to databases. The main
components of data provider are: Connection Command DataReader DataAdapter
Visual Studio .NET
includes two data providers: SQL Data Provider
OleDb Data
Provider
Two additional data
providers are included in Visual Studio .NET 2003:
ODBC Data Provider
Oracle Data
Provider
Part 1 | Part 2 | Part 3 | Part 4 | part
5
<<Previous Next>> |