.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Interview Question >> .NET Framework >> Post New Question Subscribe to Interview Questions

What is strong-typing versus weak-typing? Which is preferred? Why?

Posted By :Muthu     Posted Date :November 02, 2010    Points :10   Category :.NET Framework 
Strong typing implies that the types of variables involved in operations are associated to the variable, checked at compile-time, and require explicit conversion; weak typing implies that they are associated to the value, checked at run-time, and are implicitly converted as required. (Which is preferred is a disputable point, but I personally prefer strong typing because I like my errors to be found as soon as possible.)

You can also find related Interview Question to What is strong-typing versus weak-typing? Which is preferred? Why?  below: 

What is strong typing and weak typing?

  
Strong type is checking the types of variables at compile time and weak type is checking the types of system as late as possible which is nothing but run time. (More...)

What is Weak Entity set?

  
An entity set may not have sufficient attributes to form a primary key, and its primary key compromises of its partial key and primary key of its parent entity, then it is said to be Weak Entity set. (More...)

NET Remoting Versus Web Services?

  
With the advent of .NET and the .NET Framework, Microsoft introduced a set of new technologies in the form of Web services and .NET remoting. .NET remoting and ASP.NET Web services are powerful technologies that provide a suitable framework for developing distributed applications. It is important to understand how both technologies work and then choose the one that is right for your application.

The Web services technology enables cross-platform integration by using HTTP, XML and SOAP for communication thereby enabling true business-to-business application integrations across firewalls. Because Web services rely on industry standards to expose application functionality on the Internet, they are independent of programming language, platform and device.

Remoting is .a technology that allows programs and software components to interact across application domains, processes, and machine boundaries. This enables your applications to take advantage of remote resources in a networked environment.

Both Web services and remoting support developing distributed applications and application integration, but you need to consider how they differ before choosing one implementation over the other. In this article, I will show the differences between these two technologies. I will present samples for each type of implementation and identify when to use which technology. (More...)

what is strong name in .net

  
A strong name in .NET framework is the combination of following information.

a) Name of the assembly
b) version number
c) culture identity
d) public key token. (More...)

What's a strong name , and What it includes ?

  
A strong name includes the name of the assembly, version number, culture identity, and a public key token. (More...)

How to install a strong named assembly to GAC at command prompt?

  
We can use a developer tool called the Global Assembly Cache tool (Gacutil.exe), provided by the .NET Framework SDK or Use Windows Explorer to drag assemblies into the cache.

To install a strong-named assembly into the global assembly cache at the command prompt, type the following command:
gacutil I Asembly_name

In this command, assembly_name is the name of the assembly to be installed in the GAC. (More...)

What is strong name and what is the purpose of strong name ?

  
strong names are same as GUID in com.strong names are used
to deploy assembly in global assembly cache(GAC).

A name that consists of an assembly's identity-its simple
text name, version number, and culture information (if
provided)-strengthened by a public key and a digital
signature generated over the assembly.

Strong name is the identification of an assembly. To avoid
DLL heal we are using the string name. Syntex for creating
a strong name SN (More...)

What is strong name?

  
Signing an Assembly with a strong name is nothing but associating the assembly with a pair of 1,024-bit cryptographic public and private keys. So in general your strong name will contains both the private & public keys.

Folloiwng is an example

sn.exe -k PublicPrivateKeyFile.snk (More...)

What is strong name?

  
Strong name helps GAC(Global assembly cache) to differentiate between two versions.It is only needed when we deploy the assembly with GAC. It uses public key cryptocrophy to ensure that no one spoof it. (More...)

What is strong name?

  
A name that consists of an assembly's identity-its simple text name, version number, and culture information (if provided)-strengthened by a public key and a digital signature generated over the assembly. Because the assembly manifest
contains file hashes for all the files that constitute the assembly implementation, it is sufficient to generate the digital signature over just the one file in the assembly that contains the assembly manifest. Assemblies with the same strong name are expected to be identical
(More...)


How do you generate a strong name?

  
.NET provides an utility called strong name tool. You can run this toolfrom the VS.NET command prompt to generate a strong name with an option "-k" and providing the strong key file name. i.e. sn- -k < file-name >
What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
The Debug build is the program compiled with full symbolic debug information and no optimization. The Release build is the program compiled employing optimization and contains no symbolic debug information. These settings can be changed as per need from Project Configuration properties. The release runs faster since it does not have any debug symbols and is optimized.
(More...)

What is the concept of strong names ?

  
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 helps GAC to differentiate between two versions. Strong names use public key cryptography
(PKC) to ensure that no one can spoof it.PKC use public key and private key concept. (More...)

What is a Strong Name?

  
Strong name is to identify the assembly in the GAC. When we think to put assembly in GAC instead of project folder,we have to give unique name to the assembly which contains assembly name, version etc. Because in GAC we can have more than 1 assembly with the same name bt they will differ in their version. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

 
Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.


Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend