Академический Документы
Профессиональный Документы
Культура Документы
Upload a Document
Search Documents
Explore
Documents
• Books - Fiction
• Books - Non-fiction
• Health & Medicine
• Brochures/Catalogs
• Government Docs
• How-To Guides/Manuals
• Magazines/Newspapers
• Recipes/Menus
• School Work
• + all categories
•
• Featured
• Recent
People
• Authors
• Students
• Researchers
• Publishers
• Government & Nonprofits
• Businesses
• Musicians
• Artists & Designers
• Teachers
• + all categories
•
• Most Followed
• Popular
• Sign Up
• |
• Log In
/ 30
}void Eat();
}Inherits Cemployee
Implements Iperson
Rule :- var of type Interface can point to Object of Class tat
implements tat Interface
I N T E R F A C E -> Within the same Project, add Class [PTR]
name ur class as “ all Interface names begin
with I ”
POLYMORPHISM
Multiple forms of the same entity
Eg. Door.Open() Book.Open() , Car.Run() Horse.Run() ……….
2 types –
P via Inheritance
P via Interfaces
-----------------------------------------------------
EVENTS - see presentation-study !!!
'we CAN have USE OF BOTH {WithEvents,Handles} &
{AddHandler,Invoke} in an eg. program
E V E N T => A notification from a class to the client.
Modus operandi for Events n Delegates ---
1. 1st ur Class shud have an Event defined
2. In client-appcn u must have some Event-Handler
3. Agreed syntax b/w these 2 [ === delegate ]
a Delegate - a type-safe funcn pointer.Events r instances of
Delegates.
Inside/within .NET f/w , Delegates r treated as Classes.
An Event-Delegate requires 3 things :-
1. Class with an event { publisher }
2. Class with an event-handler { subscriber }
3. Agreed syntax { delegate }
Event Publisher Event Subscriber
Declare a delegate tat represents Create eventhandler funcn
matching
Ans.10
for controlling table-to-table activity !!!
ODBC v OLEDB ? [ ODBC esp. for ]
Ans.11
OLEDB is most frequently used !
Specifics ---
ODBC - for DSN [Domain Server Name]; making any appcn
which has Driver !
OLEDB - for RDBMS .
Remoting - is it-------
[Distributed Appcns over n/w] OR
[among Heterogenous OS]
???
Ans.12
· What is Remoting?
The process of communication between different operating
system processes, regardless of whether they
16
.net interview questions
are on the same computer. The .NET remoting system is an
architecture designed to simplify
communication between objects living in different application
domains, whether on the same computer or
not, and between different contexts, whether in the same
application domain or not.
Remoting is Inter-Process communication/progmmg.Its different
from Socket[n/w] progmmg i.e. Tx & Rx
.Remoting - 2 protocols --- TCP & HTTP .
so, it is " ".
Remoting:
---------
A .NET technology that allows objects residing in different
application
domains to communicate. Objects in different application
domains are
said to be separated by a remoting boundary. Objects using
remoting may
be on the same computer, or on different computers connected
by a
network. Remoting is the .NET replacement for DCOM.
REMOTING :_ accessing anything on some other machine from
your
machine.
· Difference between web services & remoting?
ASP.NET Web Services .NET Remoting
Protocol Can be accessed only over HTTP Can be accessed over
any protocol (including TCP, HTTP, SMTP
and so on)
State Management Web services work in a stateless environment
Provide support for both stateful and
stateless environments through Singleton and SingleCall objects
Type System Web services support only the datatypes defined in
the XSD type system, limiting the number
of objects that can be serialized. Using binary
communication, .NET Remoting can provide support for rich
type system
Interoperability Web services support interoperability across
platforms, and are ideal for heterogeneous
environments. .NET remoting requires the client be built
using .NET, enforcing homogenous environment.
Reliability Highly reliable due to the fact that Web services are
always hosted in IIS Can also take advantage
of IIS for fault isolation. If IIS is not used, application needs to
provide plumbing for ensuring the reliability of
the application.
Extensibility Provides extensibility by allowing us to intercept
the SOAP messages during the serialization
and deserialization stages. Very extensible by allowing us to
customize the different components of the .NET
remoting framework.
Ease-of-Programming Easy-to-create and deploy. Complex to
program.
.asax mein kya kya primarily rehta hai [global .asax] ?
Ans.13
used to define Event Handlers - with application/session scope;
used to define Objects - with application/session scope.
this file may contain :- event handlers...........
application_start
application_end
session_start
session_end
application_beginrequest
application_endrequest
Web.Config mein System Settings hota hai kya
[present/possible] ???
Session,State ???
Ans.15
When a user requests a Page from ur Website, Session
starts;each user on ur website is given a
session.Session object is used to store info needed for a
particular user-session.Variables persist for the
entire user-session.
HTTP [stateless]:Web Server treats each http request for a page
as an independent request.
We can store values in the Session object;Info stored in the
session object is available thruout the session &
17
.net interview questions
has session scope.
Dataset cant have Tables other than those of Database -
True/False ?
Ans.19
Yes = True.
Web Service mein kya kya type-of-Parameters pass ho sakte
hain ?
3. What is a WebService and what is the underlying protocol
used in it?Why Web Services?
Web Services are applications delivered as a service on the
Web. Web services allow for programmatic
access of business logic over the Web. Web services typically
rely on XML-based protocols, messages, and
interface descriptions for communication and access. Web
services are designed to be used by other
programs or applications rather than directly by end user.
Programs invoking a Web service are called
clients. SOAP over HTTP is the most commonly used protocol
for invoking Web services.
There are three main uses of Web services.
1. Application integration Web services within an intranet are
commonly used to integrate business
applications running on disparate platforms. For example, a
.NET client running on Windows 2000 can
easily invoke a Java Web service running on a mainframe or
Unix machine to retrieve data from a legacy
application.
2. Business integration Web services allow trading partners to
engage in e-business leveraging the existing
Internet infrastructure. Organizations can send electronic
purchase orders to suppliers and receive
electronic invoices. Doing e-business with Web services means
a low barrier to entry because Web services
can be added to existing applications running on any platform
without changing legacy code.
3. Commercial Web services focus on selling content and
business services to clients over the Internet
similar to familiar Web pages. Unlike Web pages, commercial
Web services target applications not humans
as their direct users. Continental Airlines exposes flight
schedules and status Web services for travel Web
sites and agencies to use in their applications. Like Web pages,
commercial Web services are valuable only
if they expose a valuable service or content. It would be very
difficult to get customers to pay you for using a
Web service that creates business charts with the customers?
data. Customers would rather buy a charting
component (e.g. COM or .NET component) and install it on the
same machine as their application. On the
other hand, it makes sense to sell real-time weather information
or stock quotes as a Web service.
Technology can help you add value to your services and explore
new markets, but ultimately customers pay
for contents and/or business services, not for technology
4. Are Web Services a replacement for other distributed
computing platforms?
No. Web Services is just a new way of looking at existing
implementation platforms.
5. In a Webservice, need to display 10 rows from a table. So
DataReader or DataSet is best choice?
A: WebService will support only DataSet.
1 Namespace --- 1 dll ? OR this associativity [ 1 to 1 w.r.t
Namespace-dll associativity ] is not necessary ???
Ans.21
No, Not Necessary !!!
********** BEST OF LUCK/SUCCESS *********
50 .
Early & Late Binding:
---------------------
- Early binding is to know the type of an object at compile time.
The
compiler have all the needed element at compile time to build
the call
into the excutable code (resolution of calls at compile time)
- With late binding, the type of an object is known only at
runtime. It
will need extra instructions to find out where is the method to be
called (if it exists) before calling it (resolution of calls at
runtime)
***Early binding is when the actual object behind the pointer is
resolved at
compile time.
Late binding is when the actual object behind the pointer is
resolved at run
time.
U can also go to foll link for details n an example.
18
.net interview questions
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/vbcn7/html/vaconEarlyLateBinding.asp
51. Application Domain :
--------------------
The logical and physical boundary created around every .NET
application
by the Common Language Runtime (CLR). The CLR can allow
multiple .NET
applications to be run in a single process by loading them into
separate
application domains. The CLR isolates each application domain
from all
other application domains and prevents the configuration,
security, or
stability of a running .NET applications from affecting other
applications. Objects can only be moved between application
domains by the use
of remoting.
SAME is << CLR :: AppDomain >>
App Domain provides Memory Isolation .
U can also go to foll link for details n an example.
http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/cpguide/html/cpconapplicationdomainhosts.asp
Process:
--------
A process, in the simplest terms, is a running application. A
thread is
the basic unit to which the operating system allocates processor
time
for a process.
***A process is started by the Operating System to run any
program on the
computer.
When you run Notepad, internally, Windows starts a process
for the same.
52.
Remoting:
---------
A .NET technology that allows objects residing in different
application
domains to communicate. Objects in different application
domains are
said to be separated by a remoting boundary. Objects using
remoting may
be on the same computer, or on different computers connected
by a
network. Remoting is the .NET replacement for DCOM.
REMOTING :_ accessing anything on some other machine from
your
machine.
53. The difference between typed data set and untyped dataset:-
The difference between the two lies in the fact that a Typed
DataSet
has a schema and an Untyped DataSet does not have one. It
should be
noted that the Typed Datasets have more support in Visual
studio.
A typed dataset gives us easier access to the contents of the table
through strongly typed programming that uses information from
the
underlying data schema. A typed DataSet has a reference to an
XML
schema file:
Dim s As String
s = dsCustomersOrders1.Customers(0).CustomerID
In contrast, if we are working with an untyped DataSet, the
equivalent code looks like this:
Dim s As String
s=_
CType(dsCustomersOrders1.Tables("Customers").Rows(0).Item
("CustomerID"), String)
As the syntax is much simpler and more practical, using typed
Datasets is much more handy.
<< Typed DataSet :- when the full structure gets copied using
normal ado.net commands ;
Untyped DataSet :- Only getting data into dataset ;
19
.net interview questions
i.e. w.r.t typed dataset-working; we know Field –Type ; we can
use .separated & the Type automatically
p.
p.
p.
2.
p.
p.
p.
3.
p.
p.
p.
4.
p.
p.
p.
5.
p.
p.
p.
6.
p.
p.
p.
7.
p.
p.
8 p.
59 p.
59 p.
2.
28 p.
5 p.
4 p.
3.
5 p.
2 p.
47 p.
4.
30 p.
Recent Readcasters
Add a Comment
f897a04b065753
Submit
Characters: 400
document_comme
4gen
neilpraveenaleft a comment
Its perfect place to find any book
07 / 18 / 2008
Reply
Ads by Google
ASP.NET Ecommerce & Cart
shopping cart, shipping, currency
credit card processing for ASP.NET
www.dotnetecommerce.com
Windows 7 Programming
Video tips from MS insiders. Ribbon
Silverlight. Azure. IIS. More. Go!
www.drdobbs.com/
Database for .NET
Store .NET objects directly without
OR mapping and boost performance.
www.versant.com/
Category:
Description:
Save