ASP.NET Flashcards
ASP.NET
What are the namespace available in .net?
Namespace is a logical grouping of class.
■System ■System.Data ■System.IO ■System.Drawing ■System.Windows.Forms ■System.Threading
ASP.NET
What are the two main parts of the .NET Framework?
There are the two main parts of the .NET Framework are :
■The common language runtime (CLR). ■The .NET Framework class library.
ASP.NET
Describe the compilation process for .NET code?
Source code is compiled and run in the .NET Framework using a two-stage process. First, source code is compiled to Microsoft intermediate language (MSIL) code using a .NET Framework-compatible compiler, such as that for Visual Basic .NET or Visual C#. Second, MSIL code is compiled to native code.
ASP.NET
How do you create threading in .NET? What is the namespace for that?
System.Threading.Thread
What is the difference between static or dynamic assemblies?
Assemblies can be static or dynamic.
Static assemblies :
can include .NET Framework types (interfaces and classes), as well as resources for the assembly (bitmaps, JPEG files, resource files, and so on).Staticassemblies are stored on disk in portable executable (PE) files.
Dynamic assemblies :
which are run directly from memory and are not saved to disk before execution.
You can save dynamic assemblies to disk after they have executed.
How many languages .NET is supporting now?
When .NET was introduced it came with several languages. VB.NET, C#, COBOL and Perl, etc. 44 languages are supported.
How many .NET languages can a single .NET DLL contain?
Many
What is metadata?
Metadata means data about the data i.e., machine-readable information about a resource, . Such information might include details on content, format, size, or other characteristics of a data source. In .NET, metadata includes type definitions, version information, external assembly references, and other standardized information.
How many types of Transactions are there in COM + .NET ?
There are 5 transactions types that can be used with COM+.
■Disabled ■Not Supported ■Supported ■Required ■Required New
How many namespaces are in .NET version 1.1?
124
What is the root class in .Net?
system.object is the root class in .net .
What is managed code execution?
The .Net framework loads and executes the .Net applications, and manages the state of objects during program execution. This also provides automatically garbage collections.
What is the strong name in .net assembly?
■Strong Name is similar to GUID (It is supposed to be unique in space and time).
■In COM components. Strong name is only needed when we need to deploy assembly in GAC.
■Strong names use public key cryptography (PKC) to ensure that no one can spoof it. PKC use public key and private key concept. Following are the step to generate a strong name and sign an assembly:
What are the assembly entry points?
An assembly can have only one entry point from DllMain, WinMain or Main.
What are remotable objects in .NET Remoting?
.NET Remoting is a mechanism for communicating between objects which are not in the same process. It is a generic system for different applications to communicate with one another. .NET objects are exposed to remote processes, thus allowing inter process communication. The applications can be located on the same computer, different computers on the same network, or on computers across separate networks.
Microsoft .NET Remoting provides a framework that allows objects to interact with each other across application domains. Remoting was designed in such a way that it hides the most difficult aspects like managing connections, marshaling data, and reading and writing XML and SOAP. The framework provides a number of services, including object activation and object lifetime support, as well as communication channels which are responsible for transporting messages to and from remote applications.
ASP.NET
What namespaces are necessary to create a localized application?
■System.Globalization
■System.Resources
ASP.NET
Which namespaces are used for data access?
■System.Data
■System.Data.OleDB
■System.Data.SQLClient
ASP.NET
What is a SESSION and APPLICATION object?
Session object store information between HTTP requests for a particular user.
Session variables are used to store user specific information where as in application variables we can’t store user specific information.
while application object are global across users.
What is ASP.NET?
ASP.NET is a server side scripting technology that enables scripts (embedded in web pages) to be executed by an Internet server.
ASP.NET provides increased performance by running compiled code.
What is the difference between Classic ASP and ASP.Net?
ASP is Interpreted language based on scripting languages like Jscript or VBScript.
■ASP has Mixed HTML and coding logic.
■Limited development and debugging tools available.
■Limited OOPS support.
■Limited session and application state management.
ASP.Net is supported by compiler and has compiled language support.
■Separate code and design logic possible.
■Variety of compilers and tools available including the Visual studio.Net.
■Completely Object Oriented.
■Complete session and application state management.
■Full XML Support for easy data exchange.
ASP.NET
What is Difference between Namespace and Assembly?
A namespace is just a grouping of related classes. It’s a method of putting classes inside a container so that they can be clearly distinguished from other classes with the same name.The physical grouping is accomplished by an assembly, which equates most directly to a dynamic link library (DLL), COM object, or OCX module.
The .NET CLR contains multiple namespaces, which are spread across many assemblies. For example, ADO.NET is the set of classes located in the System.Data namespace, and ASP.NET is the set of classes located in the System.Web namespace.
In Visual Studio .NET, code is physically organized and structured in assemblies. An assembly is almost identical to a DLL, although one assembly consists of one or more DLL or EXEs.
one assembly can contain one or more namespaces, and one namespace can be contained by one or more assemblies. Each assembly can be configured with a root namespace. If the root namespace value is left blank, the root namespace value defaults to the assembly name.
Differences: 1) A namespace is logically groups classes.An assembly is physical grouping of logical units. 2) An Assembly contains one or more namespaces.
ASP.NET
What is the difference between early binding and late binding?
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.
ASP.NET
What is the difference between ASP Session State and ASP.Net Session State?
ASP session state relies on cookies, Serialize all requests from a client, does not survive process shutdown, Can not maintained across machines in a Web farm.
What is the difference between ASP Session and ASP.NET Session?
Asp.net session supports cookie less session & it can span across multiple servers