16 :: What is the difference between ADO and ADO.NET?
ADO uses Recordsets and cursors to access and modify data. Because of its inherent design, Recordset can impact performance on the server side by tying up valuable resources. In addition, COM marshalling - an expensive data conversion process - is needed to transmit a Recordset. ADO.NET addresses three important needs that ADO doesn't address:1. Providing a comprehensive disconnected data-access model, which is crucial to the Web environment
2. Providing tight integration with XML, and
3. Providing seamless integration with the .NET Framework (e.g., compatibility with the base class library's type system). From an ADO.NET implementation perspective, the Recordset object in ADO is eliminated in the .NET architecture. In its place, ADO.NET has several dedicated objects led by the DataSet object and including the DataAdapter, and DataReader objects to perform specific tasks. In addition, ADO.NET DataSets operate in disconnected state whereas the ADO RecordSet objects operated in a fully connected state.
In ADO, the in-memory representation of data is the recordset. In ADO.NET, it is the dataset. A recordset looks like a single table. If a recordset is to contain data from multiple database tables, it must use a JOIN query, which assembles the data from the various database tables into a single result table. In contrast, a dataset is a collection of one or more tables.
|
17 :: What is the difference between VB and VB.NET?
Now VB.NET is object-oriented language. The following are some of the differences:Data Type Changes
The .NET platform provides Common Type System to all the supported languages. This means that all the languages must support the same data types as enforced by common language runtime. This eliminates data type incompatibilities between various languages. For example on the 32-bit Windows platform, the integer data type takes 4 bytes in languages like C++ whereas in VB it takes 2 bytes. Following are the main changes related to data types in VB.NET:
. Under .NET the integer data type in VB.NET is also 4 bytes in size.
. VB.NET has no currency data type. Instead it provides decimal as a replacement.
. VB.NET introduces a new data type called Char. The char data type takes 2 bytes and can store Unicode characters.
. VB.NET do not have Variant data type. To achieve a result similar to variant type you can use Object data type. (Since every thing in .NET including primitive data types is an object, a variable of object type can point to any data type).
. In VB.NET there is no concept of fixed length strings.
. In VB6 we used the Type keyword to declare our user-defined structures. VB.NET introduces the structure keyword for the same purpose.
Declaring Variables
Consider this simple example in VB6:
Dim x,y as integer
|
18 :: What is a Strong Name in .NET?
A strong name consists of the assembly's identity its simple text name, version number, and culture information (if provided) plus a public key and a digital signature. It is generated from an assembly file (the file that contains the assembly manifest, which in turn contains the names and hashes of all the files that make up the assembly), using the corresponding private key. Assemblies with the same strong name are expected to be identical.Strong names guarantee name uniqueness by relying on unique key pairs. No one can generate the same assembly name that you can, because an assembly generated with one private key has a different name than an assembly generated with another private key.
When you reference a strong-named assembly, you expect to get certain benefits, such as versioning and naming protection. If the strong-named assembly then references an assembly with a simple name, which does not have these benefits, you lose the benefits you would derive from using a strong-named assembly and revert to DLL conflicts. Therefore, strong-named assemblies can only reference other strong-named assemblies.
There are two ways to sign an assembly with a strong name:
1. Using the Assembly Linker (Al.exe) provided by the .NET Framework SDK.
2. Using assembly attributes to insert the strong name information in your code. You can use either the AssemblyKeyFileAttribute or the AssemblyKeyNameAttribute, depending
|
19 :: What is a Manifest in .NET?
An assembly manifest contains all the metadata needed to specify the assembly's version requirements and security identity, and all metadata needed to define the scope of the assembly and resolve references to resources and classes. The assembly manifest can be stored in either a PE (Portable Executable) file (an .exe or .dll) with Microsoft intermediate language (MSIL) code or in a standalone PE (Portable Executable) file that contains only assembly manifest information. The following table shows the information contained in the assembly manifest. The first four items the assembly name, version number, culture, and strong name information make up the assembly's identity.Assembly name: A text string specifying the assembly's name.
Version number: A major and minor version number, and a revision and build number. The common language runtime uses these numbers to enforce version policy.
Culture: Information on the culture or language the assembly supports. This information should be used only to designate an assembly as a satellite assembly containing culture- or language-specific information. (An assembly with culture information is automatically assumed to be a satellite assembly.) Strong name information: The public key from the publisher if the assembly has been given a strong name. List of all files in the assembly:
|
20 :: Creating a Key Pair in .NET?
You can create a key pair using the Strong Name tool (Sn.exe). Key pair files usually have an .snk extension. To create a key pair At the command prompt, type the following command:sn k
In this command, file name is the name of the output file containing the key pair. The following example creates a key pair called sgKey.snk.
sn -k sgKey.snk
|




Webmaster Said:
Thank you.
cherri Said:
Answer:
is yes these questions are copy right you can read and use in your theses and projects but cant use on other sites.
Regards,
Webmaster http://www.globalguideline.com
shiv Said:
Govind Lakal Said:
Pawan Lodwal Said:
good work
Cherukuri Venkateswarlu Said:
Rajan Said:
harika Said:
kiruba Said:
chiri Said:
Dharmendra K. Singh Said:
sumitha Said:
shivani rusiya Said:
BASHA Said:
Subhash Said:
Rituraj Said:
shubha Said:
Ramya Said:
shweta Said:
Sukhpreet Kaur Said:
You can try the test here: http://www.wiziq.com/online-tests/9121-microsoft-net-framework-asp-net-interview
keyur Said:
sai kumar Said:
swati Said:
RAZESH Said:
jwala Said:
Its helps a lot for interviews....
manya Said:
Jagdeep Mankotia Said:
Helps lot.
== Jagdeep Mankotia
siva271987@yahoo.com Said:
ramuk Said:
thirumala Said:
somarajusravan Said:
santhiraju Said:
mahitha Said:
Pratik Said:
Jayanth Said:
pushpa Said:
Suchithra PS Said:
ranjeeth kumar pathi Said:
You people have done excellent job for all over the world...
Keep give us useful materials...
We will always with you...
Harsh Said:
I think these questions are more than enough for fresher jobs. Am I correct? Please confirm because Im a fresher and just started to learn from this.
Also is it needed to join any institutes for .net course? or this stuff is enough?
I request anyone to give the answer and will be more thankful....
thank you,
Ankit Said:
it is very helpful to me.
vilas Said:
hamilam Said:
ANOOJ KRISHNAN Said:
aTuL Said:
Thankyou.
aTuL DHiMAN,
dot net developer.
Kumar Said:
kotha madhava reddy Said:
Anil Said:
Shija Said:
abhay Said:
lohith kumar Said:
Chandrasekhar.Matcha Said:
S. Suresh Said:
S. Suresh
Krishna Patel Said:
sandhya Said:
I am unable to copy the questions content.
sandhya Said:
SEND ME THESE QUESTIONS TO MY MAIL-ID.
SOTHAT I CAN PREPARE AS AM FRESHER.
perireddy Said:
sarala Said:
Hazra Said:
Raji Said:
p.krishna veni Said:
chitranjan Said:
http://globalguideline.com
venki Said:
MAMTHA Said: