• +91 9971497814
  • info@interviewmaterial.com

Computer Interview Questions Answers

DotNet Interview Questions Answers

Question - 21 : - What is the purpose of XML Namespaces?

Answer - 21 : -   An XML Namespace is a collection of element types and attribute names. It consists of 2 parts 1) The first part is the URI used to identify the namespace 2) The second part is the element type or attribute name itself. Together they form a unique name. The various purpose of XML Namespace are 1. Combine fragments from different documents without any naming conflicts. (See example below.) 2. Write reusable code modules that can be invoked for specific elements and attributes. Universally unique names guarantee that such modules are invoked only for the correct elements and attributes. 3. Define elements and attributes that can be reused in other schemas or instance documents without fear of name collisions. For example, you might use XHTML elements in a parts catalog to provide part descriptions. Or you might use the nil attribute defined in XML Schemas to indicate a missing value. < Department >      < Name >DVS1< /Name >      < addr:Address xmlns:addr="http://www.tu-darmstadt.de/ito/addresses" >         < addr:Street >Wilhelminenstr. 7< /addr:Street >         < addr:City >Darmstadt< /addr:City >         < addr:State >Hessen< /addr:State >         < addr:Country >Germany< /addr:Country >         < addr:PostalCode >D-64285< /addr:PostalCode >      < /addr:Address >      < serv:Server xmlns:serv="http://www.tu-darmstadt.de/ito/servers" >         < serv:Name >OurWebServer< /serv:Name >

Question - 22 : - How do you generate a strong name?

Answer - 22 : -   .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.

Question - 23 : - What’s Singleton activation mode?

Answer - 23 : - A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease.

Question - 24 : - Write a simple Windows Forms MessageBox statement.

Answer - 24 : - System.Windows.Forms.MessageBox.Show

Question - 25 : - What are possible implementations of distributed applications in .NET?

Answer - 25 : - .NET Remoting and ASP.NET Web Services. If we talk about the Framework Class Library, noteworthy classes are in System.Runtime.Remoting and System.Web.Services.

Question - 26 : - What is GUID and why we need to use it and in what condition? How this is created.

Answer - 26 : -   A GUID is a 128-bit integer (16 bytes) that can be used across all computers and networks wherever  a unique identifier is required. Such an identifier has a very low probability of being duplicated. Visual Studio .NET IDE has a utility under the tools menu to generate GUIDs.

Question - 27 : -   Changes to which portion of version number indicates an incompatible change?

Answer - 27 : -   Major or minor. Changes to the major or minor portion of the version number indicate an incompatible change. Under this convention then, version 2.0.0.0 would be considered incompatible with version 1.0.0.0. Examples of an incompatible change would be a change to the types of some method parameters or the removal of a type or method altogether. Build. The Build number is typically used to distinguish between daily builds or smaller compatible releases. Revision. Changes to the revision number are typically reserved for an incremental build needed to fix a particular bug. You'll sometimes hear this referred to as the "emergency bug fix" number in that the revision is what is often changed when a fix to a specific bug is shipped to a customer.

Question - 28 : -   Why do you need to serialize.?

Answer - 28 : -   We need to serialize the object,if you want to pass object from one  computer/application domain to another.Process of converting complex objects into stream of bytes that can be persisted or  transported.Namespace for serialization is System.Runtime.Serialization.The  ISerializable interface allows you to make any class Serializable..NET framework features 2 serializing method. 1.Binary Serialization 2.XML Serialization

Question - 29 : -   What platforms does the .NET Framework run on?

Answer - 29 : - The runtime supports Windows XP, Windows 2000, NT4 SP6a and Windows ME/98. Windows 95 is not supported. Some parts of the framework do not work on all platforms - for example, ASP.NET is only supported on Windows XP and Windows 2000. Windows 98/ME cannot be used for development. IIS is not supported on Windows XP Home Edition, and so cannot be used to host

Question - 30 : - How do you define the lease of the object?

Answer - 30 : - By implementing ILease interface when writing the class code.

Computer Contributors

krishan
Rajeev Katiyar
Yes Baroda

Share your email for latest updates

Name:
Email:

Our partners