Categories-:
Asp.net Interview Questions And Answers
C#.Net Interview Questions And Answers
The .NET Framework is divided into an
almost painstaking collection of functional parts, with a staggering
total of more than 7,000 types (the .NET term for classes,
structures, interfaces, and other core programming ingredients). Before
you can program any type of .NET application, you need a basic
understanding of those parts—and an understanding of why things are
organized the way they are.
The massive collection of functionality that the .NET Framework provides is organized in a way that traditional Windows programmers will see as a happy improvement. Each one of the thousands of classes in the .NET Framework is grouped into a logical, hierarchical container called a namespace. Different namespaces provide different features. Taken together, the .NET namespaces offer functionality for nearly every aspect of distributed development from message queuing to security. This massive toolkit is called the class library.
The massive collection of functionality that the .NET Framework provides is organized in a way that traditional Windows programmers will see as a happy improvement. Each one of the thousands of classes in the .NET Framework is grouped into a logical, hierarchical container called a namespace. Different namespaces provide different features. Taken together, the .NET namespaces offer functionality for nearly every aspect of distributed development from message queuing to security. This massive toolkit is called the class library.
One of the major reasons for performance degradation in classic ASP
pages is its use of interpreted script code. Every time an ASP page is
executed, a scripting host on the web server needs to interpret the
script code and translate it to lower-level machine code, line by line.
This process is visibly slow.
ASP.NET applications are always compiled - in fact, it’s impossible to
execute C# or Visual Basic code without it being compiled first.
Fact 3: ASP.NET Is Multilanguage
With ASP.NET there is no matter what language you use to develop
your application, as the code is compiled in IL (Intermediate Languge).
IL is a stepping stone for every managed application. (A managed
application is any application that’s written for .NET and executes
inside the managed environment of the CLR.) In a sense, <u>IL is the language of .NET, and it’s the only language that the CLR recognizes
Fact 4: ASP.NET Is Hosted by the Common Language Runtime
Automatic memory management and garbage collection
:
Every time your application instantiates an object, the CLR allocates space on the managed heap for
that object. However, you never need to clear this memory manually. As
soon as your reference to an object goes out of scope (or your
application ends), the object becomes available for garbage collection.
The garbage collector runs periodically inside the CLR, automatically
reclaiming unused memory for inaccessible objects. This model saves you
from the low-level complexities of C++ memory handling and from the
quirkiness of COM reference counting.
Type safety:
When
you compile an application, .NET adds information to your assembly that
indicates details such as the available classes, their members, their
data types, and so on. As a result, your compiled code assemblies are
completely self-sufficient. Other people can use them without requiring
any other support files, and the compiler can verify that every call is
valid at runtime. This extra layer of safety completely obliterates
low-level errors such as the infamous buffer overflow.
Fact 5: ASP.NET Is Object-Oriented
Fact 6: ASP.NET Is Multi-device and Multi-browser
For example:
Fact 7: ASP.NET Is Easy to Deploy and Configure
Extensible metadata:
The information about classes and members is only one of the types of metadata that .NET stores in a compiled assembly. Metadata describes
your code and allows you to provide additional information to the
runtime or other services. For example, this metadata might tell a
debugger how to trace your code, or it might tell Visual Studio how to
display a custom control at design time. You could also use metadata to
enable other runtime services (such as web methods or COM+ services).
Structured error handling:
If you’ve ever written any moderately useful Visual Basic or VBScript
code, you’ll most likely be familiar with the limited resources these
languages offer for error handling. With structured exception handling,
you can organize your error-handling code logically and concisely. You
can create separate blocks to deal with different types of errors. You
can also nest exception handlers multiple layers deep.
Multithreading:
The
CLR provides a pool of threads that various classes can use. For
example, you can call methods, read files, or communicate with web
services asynchronously, without
Fact 5: ASP.NET Is Object-Oriented
Asp provides a relatively feeble object model, On the other hand Asp.net is truly object oriented.
Not only does your code have full access to all objects in the .NET
Framework, but you can also exploit all the conventions of an OOP
(object-oriented programming) environment. For example, you can create
reusable classes, standardize code with interfaces, extend existing
classes with inheritance, and bundle useful functionality in a
distributable, compiled component.
Fact 6: ASP.NET Is Multi-device and Multi-browser
One of the greatest challenges web developers face is the wide variety
of browsers they need to support. Different browsers, versions, and
configurations differ in their support of HTML. Web developers need to
choose whether they should render their content according to HTML 3.2,
HTML 4.0, or something else entirely.
ASP.NET addresses this problem in a remarkably intelligent way.
Although you can retrieve information about the client browser and its capabilities in an .
Asp.Net page.For example:
ASP.NET’s validation controls, which use JavaScript
and DHTML (Dynamic HTML) to enhance their behavior if the client
supports it. This allows the validation controls to show dynamic error
messages without the user needing to send the page back to the server
for more processing.
Fact 7: ASP.NET Is Easy to Deploy and Configure
ASP.NET simplifies deployment process as :- Every installation of the
.NET Framework provides the same core classes. As a result, deploying
an ASP.NET application is relatively simple. For no-frills deployment,
you simply need to copy all the files to a virtual directory on a
production server (using an FTP program or even a command-line command
like XCOPY). As long as the host machine has the .NET Framework, there
are no time consuming registration steps.
No comments:
Post a Comment